I’m new to the HA platform, but it is moving forward - thanks for all your work. Keep it up.
My first automation project is to solve the situation when leaving the house .- ‘Are all the windows closed ?’.
The solution is to place windows sensors on all my windows, and then place a tablet next to the front door (at the inside ;-), which shows with a large ‘icon’ if all windows are close or if some are open.
I have used:
-Rasp with Hassio.
-Aeon Labs ZW090 Z-Stick Gen 5 (z wave)
-Cam NEO Coolcam door/window sensors (z wave)
-simple tablet browsing Lovelace.
And to get the sensors to work:
In the customize.yaml-
binary_sensor.neo_coolcam_window1_detector_sensor:
device_class: window
So with this config, they show up as ‘windows’ and with a blue icon and closed windows when closed, and a yellow icon and open window when open.
And with this in the group.yaml-
OpenWindows:
control: hidden
entities:
- binary_sensor.neo_coolcam_window1_detector_sensor
- binary_sensor.neo_coolcam_window2_detector_sensor
…
I have one group ‘definition’ - OpenWindows, that indicates if just one window is open. (with on/off - would like this to be Open/closed and a windows icon - how ?)
Using Lovelace as ui at the tablet.
So the base elements are working.
Now to the question:
I would like to have a ‘Card’ or other large icon in lovelace that is Red or Green depending on if the ‘OpenWindows’/group is on or off. Maybe with some ‘filter’ to list at the red ‘box’ the windows that are open.
What would you recommend ?
Looking forward to some good comments.
You might find this convenient as it shows only the windows/doors that are open.
Try it if you like. Just replace my entities with yours.
These are two cards. One entity-filter card that will filter the closed windows and hide them. And one glance card to show them in a very minimal view.
Thanks for responding.
And it works nice. I have a card that only shows the windows that are open. Thanks.
But, I would like to show something when all windows are closed (and the list is empty) - like a text ‘All windows are closed’, or a Green background… and is it possible to change the background to red when there are open windows (when the list contains elements) ?
Been looking at the ‘Conditional’ card, but can’t get it to work.