I got multiple KNX window binary sensors. They do all have the device_class window. Now I have grouped the sensors to an “all windows” group. I would like to have a button in the lovelace UI that is icon only and shows the current state of the windows via the window-open and window-closed MDI icons.
What is the best way to get that working in 2021 home assistant?
It doesn’t matter what the device class of the individual windows is, as long as all of them are binary sensors, the code works fine and rhe icon behaves accordingly.
I don’t know, I don’t use the UI editor. Just add the code to configuration.yaml.