My windows are tilt and turn. They have 2 binary sensors each. One used to check if window is tilted. The second to check if the window is opened.
In summary:
Closed -> window_kitchen_tilt == off && window_kitchen_open == off
Tilted -> window_kitchen_tilt == on && window_kitchen_open == off
Open -> window_kitchen_tilt == on && window_kitchen_open == on
How can i combine those sensors to have a 3 state entity in my interface ?
Works perfectly, thanks.
Using lovelace, i manage to change the icon using this new sensor (window open or window closed), but how can i change the icon color using the state ?
Can you tell me what sensors you are using? I have tilt and turn doors and windows and want to be sure the doors are locked and not just closed when I leave the house.
I do not have locking sensors.
Only one sensor at the top of the window (for the tilt) and another one at the bottom (for the turn).
I used reed switches. It could also be possible to use a reed switch for the locking by adding a magnet to the bolt of the door. But that requires previous wiring in the doors frame. If you do not have this wiring, try to find a small enough sensor that whould fit inside the bolts chamber once the door is locked. Seems tricky since a battery is already to big to fit insideā¦
Good luck,
Would be nice to have an update since that gave me an idea of something new to addā¦
Sorry to open up the old thread again. But how did you mange to change the icon based on open / close?
And did you solve the issue of coloring the icon?
I have a similar sensor, but fail to achieve much with it, currently.
I have not quite, but almost the same questionā¦
Is there a native enum/type/whatever to say a window is tilted/open/closed?
Also for HomeKitā¦ Iād like to ask Siri if a window is open, and the should NOT include tilted ones.
Are there types for that yet (binary is not enough, as my windows have THREE states)? Or is it only something we can visualize in HA?
Anyone successful to show if a window is TILTED, in Homekit?/homebridge?
I have 2 BINARY SENSORS on each window one at the top, one at the bottom, they detect OPEN and CLOSE. I also have combined them to one āvirtualā SENSOR in home assistant to show OPEN, CLOSED and TILTED. Looks perfect in the Home Assistant UI but i have found no way to show the same in Homekit (via homebridge).
Why is that important?
When I leave my house i donāt want any window to be OPEN , but I donāt mind if 2 windows are tilted, since I have them alarm secured anyways and want to get a notification if the status changes from TILTED to OPEN and trigger the alarm when Iām awayā¦
Iād like to ask Siri
Because its 2021 and tilted windows in Homekit should be possibleā¦