Not exact the same but I use such an alarm for my washing machine. When the job is done, the wm turns off but sets a state "completed". My alarm stop is a Shelly 2 Mini Gen4. If I switch on the light in the washing‑room, the alarm ends – until then it repeats every 15 mins.
I started with a helper (Boolean, input_boolean.waschi_wasch_fertig_flag).
First automation reacts on the complete message of the wm and sets the helper to on:
````yaml`
alias: WaMa Flag ON
triggers:
- trigger: state
entity_id: event.waschi_wasch_benachrichtigung
to: null
conditions:
- condition: state
entity_id: event.waschi_wasch_benachrichtigung
attribute: event_type
state: washing_is_complete
actions:
- action: input_boolean.turn_on
target:
entity_id: input_boolean.waschi_wasch_fertig_flag
mode: single
Second automation reacts on the Shelly and sets the helper to off:
````yaml`
alias: WaMa Flag OFF
triggers:
- trigger: state
entity_id: switch.shelly_licht
to: "on"
actions:
- action: input_boolean.turn_off
target:
entity_id: input_boolean.waschi_wasch_fertig_flag
mode: restart
---- End of part one ---