Home_Assistant_NeoSmartBlinds
Home_Assistant_NeoSmartBlinds copied to clipboard
multiple blinds issue
Hi - first ever time on GitHub and using Home Assistant. Also don't do any coding at all so this is very new. Managed to get the hub added, added a blind and it worked. added the 2nd blind which shows up in the dashboard but both blinds in HA operate the same blind. Can you let me know what i'm doing wrong here? changed the IP and HUB ID to paste here. Even if I change the order of the blind_code it still just controls the first blind that setup correctly. cover:
- platform: neosmartblinds name: Couch host: 192.168.86.X hub_id: qui-i0c_WleIACyHRXK protocol: http port: 8838 blind_code: 177.121-01 close_time: 14 rail: 1 percent_support: 1 motor_code: wt start_position: 50 parent_group: 177.121-15
- platform: neosmartblinds name: Road host: 192.168.86.X hub_id: qui-i0c_WleIACyHRXK protocol: http port: 8838 blind_code: 177.121-00 close_time: 14 rail: 1 percent_support: 1 motor_code: wt start_position: 50 parent_group: 177.121-15
I even removed the Couch blind code entirely and just had the Road blind code section and it still opens the Couch code
Comparing your configuration with mine the only difference I can see is that I don't have a parent_group entry.
You could try removing that and see if it makes a difference.
Agree, I think the parent group will not work correctly if you only have one blind configured. It counts blinds in the same group and if it sees all are controlled then it uses the parent. With only one blind, it will always control the group!
I will look in the code and see if there's somewhere to guard against this or maybe add a note to the documentation.
Regarding why only one blind seems to work when two are added to HA, I'm not sure as the config looks fine ... might need to see a log file.
Thanks for your time :)
Removed all blinds from the app on my phone and re-added. Changed the code (removed parent_group) to the following and when clicking either Couch or Road only opens the Couch blind. I have 4 blinds in total but these are the 2 i'm trying to automate for now. Can you let me know where/what log file I can copy and paste here - took a look but can't see which one will be helpful.
cover:
- platform: neosmartblinds name: Couch host: 192.168.86.110 hub_id: qui-i0c_WleIACyHRXKSMQ- protocol: http port: 8838 blind_code: 177.121-01 close_time: 14 rail: 1 percent_support: 1 motor_code: wt start_position: 50
- platform: neosmartblinds name: Road host: 192.168.86.110 hub_id: qui-i0c_WleIACyHRXKSMQ- protocol: http port: 8838 blind_code: 177.121-00 close_time: 14 rail: 1 percent_support: 1 motor_code: wt start_position: 50
Can you add:
logger:
default: error
logs:
custom_components.neosmartblinds: debug
to your configuration and repeat?
First clicked Road which ends 00 and then Couch which is 01. Both times only opened and closed Couch on 01.
2022-10-25 20:03:41.055 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration neosmartblinds which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2022-10-25 20:03:41.058 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2022-10-25 20:03:54.929 ERROR (SyncWorker_4) [homeassistant.components.plex.server] Resource connection failed to plex.tv: Chrome 2022-10-25 20:04:19.817 DEBUG (MainThread) [custom_components.neosmartblinds.neo_smart_blind] 177.121-00, issuing command 2022-10-25 20:04:20.121 DEBUG (MainThread) [custom_components.neosmartblinds.neo_smart_blind] 177.121-00, Tx: http://192.168.86.110:8838/neo/v1/transmit?id=qui-i0c_WleIACyHRXKSMQ-&command=177.121-00-up!wt&hash=0819076 2022-10-25 20:04:20.126 DEBUG (MainThread) [custom_components.neosmartblinds.neo_smart_blind] 177.121-00, Rx: 200 -
- id1 : b1 (177)
- id2 : 79 (121)
- ch : 0000 (0)
- key : b1790000 (2977497088)
- action : up
- position : 00 (0)
- motor : wt
- flags : 0000
- hash : 000c7f84
- counter : 1
- repeats : 0
- id1 : b1 (177)
- id2 : 79 (121)
- ch : 0000 (0)
- key : b1790000 (2977497088)
- action : dn
- position : 00 (0)
- motor : wt
- flags : 0000
- hash : 000795e0
- counter : 1
- repeats : 0
- id1 : b1 (177)
- id2 : 79 (121)
- ch : 0001 (1)
- key : b1790001 (2977497089)
- action : up
- position : 00 (0)
- motor : wt
- flags : 0000
- hash : 000d5b6a
- counter : 1
- repeats : 0
- id1 : b1 (177)
- id2 : 79 (121)
- ch : 0001 (1)
- key : b1790001 (2977497089)
- action : dn
- position : 00 (0)
- motor : wt
- flags : 0000
- hash : 000f1c57
- counter : 1
- repeats : 0
Based on that logging, I'm at a loss. Looks clear to me that the component is issuing commands to different blind codes as you describe. That the same blind is being controlled implies the hub is doing something "unexpected".
I think you might have to contact the support team for the hub to dig a little deeper. One of them is active on the discord channel for this component and might be able to help.
Thanks for looking into this. It's not the end of the world but would be awesome to get working. This and Hue lights are my first foray into home automation! Would you be able to let me know the discord channel you mentioned?
here is the discord: https://discord.gg/WBqgu4bz
Hi there - thanks for your assistance on this. I got it working in the end. Removed and cleaned up the app, re-added the code, realised the blind codes had changed -still no luck. Edited the Card and realised the entities were wrong! now all 4 blinds are added and i've set an automation that closes the lounge blinds when the tv is turned on between sunrise and sunset and opens when the tv is turned off. Nothing more satisfying than seeing that happen!