I have an automation that send a “turn on light” command which almost always works, but today it was triggered but the light didn’t turn on (I guess the MQTT command was somehow lost)
The solution would be to repeat the command until the status changes to the desired state (“light on”)
Is there a built-in command, or a common framework for such “verified actions”?