WTH -- State & scene error checking/auto heal

State & scene error checking and maybe a means of auto healing.

It’d be nice if there were an easy way to confirm commands sent by HA were implemented properly. For example, if a command to turn on a light at a specific brightness were sent, wait some amount of time (i.e. 5 seconds) then confirm the state is correct (within some margin of error?). If the state isn’t right, do something; including maybe trying to set the state again (x number of times). Continuing on the example above, on multiple occasions I’ve run a series of light.turn_on commands, just to find one out of 5 didn’t actually execute the command. I’ve written a number of scripts to do this kind of auto-healing, but it’d be nice to see this as a core function.

It would be nice to see this in scenes as well–verify the devices in the scene are actually set how they were defined.