@Faramir wrote:
My next project is to include the opening and closing of our electrically controlled clerestory windows into HA. But I am not exactly sure how to include that into Lovelace / Frontend
The opening and closing of the windows will be controlled by Sonoff minis.
Basically to open the windows I have to give the “open window” sonoff mini the command to switch on, this in turn will start the electric actuators to open the windows. Within Tasmota I’ve set-it up so that the Sonoff mini will automatically switch off again after 20 seconds. (That’s how long it takes to actuate the windows.)To close the windows is very similar, but I give another sonoff mini (the “close window” one) the switch on command. Which again will automatically switch off and stop actuating the window after 20 seconds.
Where I am unsure on how to represent / control that in the HA fronted / Lovelace is that I’d like one button or maybe picture element that remembers if I’ve opened or closed the windows. Obviously in the resting state both the “open windows” and the “close windows” sonoff minis would report back that they are switched off, so the minis are not much use in determining if the windows are open or not.
My thinking is that I somehow have HA remember if I last opened or closed the windows without needing to check a sensor / switch. But how would I do that?
Any pointers to further reading or examples would be much appreciated.
Cheers
Posts: 7
Participants: 2