I want an automation to trigger based on me dismissing my phone alarm in the morning and I can make all that happen (Tasker, Sleep as Android, MQTT Client). The part I’m not sure of is what the best way to reset the MQTT sensor for the next day.
My plan was to broadcast to something like /home/pixel_2/alarm_state
, create a binary_sensor that is normally ON and when I dismiss my alarm it switches to OFF and that sets off my automation. But what’s the best way to switch it back to ON for the next day? Have that be the last step of the automation?