I'm wondering what the best practices are to keep states as expected.
For example, I have a set of 3 smart lights bulbs and I also have a switch to toggle them. So I set up the button to toggle all three in an HA automation. However on the first time I tried it the lights ended up out of sync were 2 of the 3 were off. Every time I toggled them they stayed out of sync so I fixed it manually by changing the state to match.
This got me thinking what is the best way to handle this? I would guess binds but either I don't know enough or it would seem that my device doesn't support it.
One way of doing this might be to set a timer that runs every X number of seconds to check if the state matches a helper variable and if it does not to then make it match. I could then send the normal device changes but also toggle the state of that helper variable.