Closed kaczkalolo closed 3 years ago
So if the window is open, the expected state of the binary sensor is "on", if the window is closed, the expected state is "off". Is that the case with your sensors as well?
Entity binary_sensor.door_window_sensor_158d0004798c85 State: on This is the state when it is opened
Oh, I see the mistake; you need to tell hass-blinds that the window type is a door:
window_type: door
see the example in the README.md.
ahhh got it - thank You so much ;)
I have got this blind that is closing even though it has contact parameter set like below:
Entity binary_sensor.door_window_sensor_158d0004798c85 State on State attributes (YAML, optional) Open since: '300' voltage: 2.98 battery_level: 37 friendly_name: Patio Door Sensor device_class: door
Last changed: August 4, 2021, 6:56:42 PM Last updated: August 4, 2021, 7:01:41 PM
And piece of log when it was closed: 2021-08-04 20:42:45.451118 INFO blind_diningroom1: Changing position of blind cover.dining_room_blind_1 from 100 to 20 because: Down because of darkness
And history of that binary sensor:![image](https://user-images.githubusercontent.com/47222608/128240671-9b428c3f-6280-419b-b40a-a7dbeba3d895.png)