Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Door Window Sensors On/Off #794

Closed
DravenSA opened this issue May 1, 2022 · 8 comments
Closed

Door Window Sensors On/Off #794

DravenSA opened this issue May 1, 2022 · 8 comments
Labels
duplicate This issue or pull request already exists

Comments

@DravenSA
Copy link

DravenSA commented May 1, 2022

After updating to version 3.0.1
All my Door and window sensors now read Off and On instead of Open and Closed, Very confusing when a Door is closed it reads as Off.
Please I appreciate all he work, but can this get fixed :-)

@AlexxIT AlexxIT added the question Further information is requested label May 1, 2022
@AlexxIT
Copy link
Owner

AlexxIT commented May 1, 2022

You need to provide some logs
https://github.com/AlexxIT/SonoffLAN#debug-page

@DravenSA
Copy link
Author

DravenSA commented May 2, 2022

Log files dont show the problem

If a door sensor is open is it on, if it is closed it is off

It used to say Open or Closed on the frontend, now on the frontend it says On or Off.

@AlexxIT
Copy link
Owner

AlexxIT commented May 2, 2022

I even don't know what kind of sensor do you using. Log can show it :)

@DravenSA
Copy link
Author

DravenSA commented May 2, 2022

So there is absolutely nothing in the log file that pertains to Sonoff apart from

2022-05-01 18:18:41 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration sonoff 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

This is not an integration problem this is front end display problem
I am using SONOFF SNZB-04 window and door sensor,
Before the 3.0.1 update when i added the sensor to the dashboard ot would read either Open or Closed, depending on the state of the sensor, Now after the 3.0.1 Update it now displays at On or Off.

In the developer tools the "state" was always On or Off, depending on the state of the sensor, but at least before 3.0.1 on the front it showed the state to be open or closed, which make much more sense as to where a window or a door is open or closed, because it make no sense for a door or window to be on or off.

Can you fix it so if the state is Off it will show as Closed, and if the state is On it will show as Open on the frontend.

@DravenSA
Copy link
Author

DravenSA commented May 2, 2022

2022-05-02 11:38:12 [D] SysInfo: {'installation_type': 'Home Assistant OS', 'version': '2022.4.7', 'dev': False, 'hassio': True, 'virtualenv': False, 'python_version': '3.9.9', 'docker': True, 'arch': 'x86_64', 'timezone': 'Africa/Johannesburg', 'os_name': 'Linux', 'os_version': '5.10.108', 'user': 'root', 'supervisor': '2022.04.0', 'host_os': 'Home Assistant OS 7.6', 'docker_version': '20.10.9', 'chassis': 'embedded', 'sonoff_version': '3.0.1'}
2022-05-02 11:38:20 [D] 12 devices loaded from Cloud
2022-05-02 11:38:21 [D] a48001d567 UIID 1000 | {'subDevId': '9cb1b223004b1200', 'parentid': '1000f60a07', 'battery': 82, 'trigTime': '1651160950510', 'key': 1, 'switch': 'off'}
2022-05-02 11:38:21 [D] a48002b653 UIID 3026 | {'subDevId': '68a81225004b1200', 'parentid': '100119ffce', 'lock': 0, 'trigTime': '1651483048095', 'battery': 100}
2022-05-02 11:38:21 [D] a48002b64f UIID 3026 | {'subDevId': '246d1025004b1200', 'parentid': '100119ffce', 'lock': 0, 'trigTime': '1651330526411', 'battery': 100}
2022-05-02 11:38:21 [D] a480013a0c UIID 3026 | {'subDevId': '0d1c4322004b1200', 'parentid': '1000f60a07', 'lock': 0, 'trigTime': '1651074015186', 'battery': 73}
2022-05-02 11:38:21 [D] a480021b62 UIID 2026 | {'subDevId': '0160b823004b1200', 'parentid': '1000f60a07', 'motion': 1, 'trigTime': '1651483097094', 'battery': 83}
2022-05-02 11:38:21 [D] a48001006d UIID 1770 | {'subDevId': 'c1a24222004b1200', 'parentid': '1000f60a07', 'battery': 100, 'trigTime': '1650519896431', 'temperature': '2072', 'humidity': '5958', 'switch': 'off'}
2022-05-02 11:38:21 [D] a4800148ce UIID 2026 | {'subDevId': '4ee84722004b1200', 'parentid': '100119ffce', 'motion': 0, 'trigTime': '1651471070184', 'battery': 55}
2022-05-02 11:38:21 [D] 100129c719 UIID 0014 | {'version': 8, 'only_device': {'ota': 'success'}, 'sledOnline': 'on', 'switch': 'on', 'fwVersion': '3.5.1', 'rssi': -35, 'startup': 'stay', 'init': 1, 'pulse': 'off', 'pulseWidth': 500}
2022-05-02 11:38:21 [D] 100146dd71 UIID 0001 | {'version': 8, 'only_device': {'ota': 'success'}, 'sledOnline': 'on', 'switch': 'off', 'fwVersion': '3.5.1', 'rssi': -83, 'startup': 'off', 'init': 1, 'pulse': 'off', 'pulseWidth': 500}
2022-05-02 11:38:21 [D] 100119ffce UIID 0066 | {'version': 7, 'subDevNum': 3, 'subDevMaxNum': 32, 'sledOnline': 'on', 'zled': 'off', 'fwVersion': '1.5.0', 'subDevices': [{'subDevId': '4ee84722004b1200', 'deviceid': 'a4800148ce', 'uiid': '2026'}, {'subDevId': '246d1025004b1200', 'deviceid': 'a48002b64f', 'uiid': '3026'}, {'subDevId': '68a81225004b1200', 'deviceid': 'a48002b653', 'uiid': '3026'}], 'rssi': -61, 'addSubDevState': 'off', 'addDevTime': 180, 'only_device': {'ota': 'success'}}
2022-05-02 11:38:21 [D] 1000f60a07 UIID 0066 | {'version': 7, 'subDevNum': 4, 'subDevMaxNum': 32, 'sledOnline': 'on', 'zled': 'off', 'fwVersion': '1.5.0', 'subDevices': [{'subDevId': 'c1a24222004b1200', 'deviceid': 'a48001006d', 'uiid': '1770'}, {'subDevId': '0160b823004b1200', 'deviceid': 'a480021b62', 'uiid': '2026'}, {'subDevId': '0d1c4322004b1200', 'deviceid': 'a480013a0c', 'uiid': '3026'}, {'subDevId': '9cb1b223004b1200', 'deviceid': 'a48001d567', 'uiid': '1000'}], 'rssi': -32, 'addSubDevState': 'off', 'only_device': {'ota': 'success'}, 'addDevTime': 180}
2022-05-02 11:38:21 [D] 1000e8d8d9 UIID 0034 | {'version': 8, 'sledOnline': 'on', 'init': 1, 'fwVersion': '3.5.0', 'rssi': -56, 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'configure': [{'startup': 'on', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'stay', 'outlet': 2}, {'startup': 'stay', 'outlet': 3}], 'only_device': {'ota': 'success'}, 'fan': 'on'}
2022-05-02 11:38:21 [D] AUTO mode start
2022-05-02 11:38:21 [D] 1000e8d8d9 <= Local3 | {'light': 'off', 'fan': 'off', 'speed': 1, 'startup_light': 'on', 'startup_fan': 'off', 'sledOnline': 'on'} | 68
2022-05-02 11:38:21 [D] 100146dd71 <= Local3 | {'switch': 'off', 'startup': 'off', 'pulse': 'off', 'sledOnline': 'on', 'pulseWidth': 500, 'rssi': -83} | 102
2022-05-02 11:38:21 [D] 100129c719 <= Local3 | {'switch': 'on', 'startup': 'stay', 'pulse': 'off', 'pulseWidth': 500, 'rssi': -35} | 5
2022-05-02 11:38:24 [D] CLOUD False => True

This is from the Debug page

@DravenSA
Copy link
Author

DravenSA commented May 2, 2022

Capture
where it says Off, It used to say Closed

@Ih8rain2
Copy link

Ih8rain2 commented May 3, 2022

I have the exact same issue with both SONOFF SNZB-04 and the DW2. Both binary sensors which before would say open/closed and now off/on. Confusing. I have tried to update the device class to door and window but no change. Still on and off.

@AlexxIT AlexxIT added duplicate This issue or pull request already exists and removed question Further information is requested labels May 3, 2022
@AlexxIT
Copy link
Owner

AlexxIT commented May 3, 2022

Duplicate #779

@AlexxIT AlexxIT closed this as completed May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants