Hey all, I’ve searched through similar topics, but nothing quite fits.
My use case is this: I’m using a fantastic state-monitoring appliance blueprint with my washing machine. The automation has the ability to trigger scripts at various points (the author suggests not to call any other automations that might get interrupted by his automation) - I have been trying to get something to successfully trigger on “job_completed”.
So this is my script:
alias: Washing Machine Trigger
sequence:
- service: script.turn_on
target:
entity_id: script.google_home_resume
data:
variables:
action:
- service: tts.google_cloud_say
data:
entity_id: media_player.speakers
message: >-
<speak> <break time="2s"/>The washing machine is finished. Time
to flip clothes to the dryer.</speak>
cache: true
- delay:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
mode: single
icon: mdi:washing-machine-off
And this is the subsequent automation that is stuck in a repeat loop:
alias: Washing Machine Complete
description: ""
trigger:
- platform: state
entity_id:
- script.washing_machine_trigger
to: "off"
for:
hours: 0
minutes: 0
seconds: 1
condition: []
action:
- repeat:
until:
- type: is_open
condition: device
device_id: 3dcd986900a48ca07d760d068d7f575e
entity_id: binary_sensor.washer_sensor_contact
domain: binary_sensor
sequence:
- service: script.turn_on
target:
entity_id: script.google_home_resume
data:
variables:
action:
- service: tts.google_cloud_say
data:
entity_id: media_player.speakers
message: >-
<speak> <break time="2s"/> The clothes are still sitting
in the washing machine. Flip them over to the dryer or
I'll keep annoying you!</speak>
cache: true
- delay:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
mode: single
Despite Z2M confirming to me that the Contact Sensor on the Washing Machine is opening (and subsequently closing), the automation doesn’t appear to be acknowleding the “is_open”.
Wash is running right now, but I’ve disabled the above pasted automation for now.
Definitely appreciate any thoughts or suggestions.