Hey all! One of the things I constantly strive for in my setup is to have everything Just Work, even though my setup is, uh, slightly more complex than “WiFi bulb”.
--------------------------
The two main issues that bug me (which thankfully only happen occasionally) are when:
- A device needs to react once to a changing state and it does not respond the first try. E.g blink an LED when something starts, turn something on when you walk in.
I fixed this one using a reusable script which accepts a list of entities and then repeats the action every X seconds up to X repeats or until the state matches the desired state.
- A device needs to be on when X=true. For example, consider a light that needs to be on from 17:00-22:00. But at 17:00, HA is restarting, Zigbee socket:// is offline, or the device is busy, or a power outage, etc.
This is the one currently stumping me. Of course, I can write it all out in my periodic checks automation using if statements that loop in parallel, but that sounds like mild torture for me.
--------------------------
The ideal implementation IMO is a state editor which allows you to say something like when x=y, make foo=bar. Of course, it would be very, very nice to have this natively, but there are more pressing things in HA development.
So I wanted to ask all of you folks: has anyone found a good way to do this either natively or in a custom app? If not, I might try to use AI to develop my own app so I can program easily and actually see visually what is set up to happen, but I wanted to ask first.
Thanks in advance!