Good day everyone. I want to create a notification for my Washer/Dryer combo with reminder and this is my YAML code, but for some reason it’s not working. Please help me to create this automation properly. Thank you. I create 2 automations, identical, just different entities for Washer part and for Dryer part Bellow is one for Washer:
alias: Washer Reminder
description: ""
trigger:
- platform: state
entity_id: binary_sensor.washer_run_completed
to: "on"
id: Run Status Complete
- platform: state
entity_id: binary_sensor.washer_door_sensor_opening
to: open
id: Washer Door Open
condition:
- condition: state
entity_id: binary_sensor.washer_door_sensor_opening
state: closed
action:
- service: tts.google_translate_say
data:
cache: false
entity_id: media_player.masyanya
message: The Washing Machine has finished. You should remove clothes.
- delay: "00:15:00"
- service: tts.google_translate_say
data:
cache: false
entity_id: media_player.masyanya
message: Your clothes are still in the washer. Please take care of it.
- delay: "00:30:00"
- service: tts.google_translate_say
data:
cache: false
entity_id: media_player.masyanya
message: Your clothes will smell really bad if you don't take care of it.
- delay: "00:30:00"
- service: automation.turn_on
entity_id: automation.washer_complete_notification
mode: single
I disabled before posted a code , but for some reason paste original post
Here is a code without Door opened part, but still no luck
alias: Washer Reminder
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.washer_run_completed
- switch.washer_power
to: "off"
id: Run Status Complete
condition:
- condition: state
entity_id: binary_sensor.washer_door_sensor_opening
state: closed
action:
- service: tts.google_translate_say
data:
cache: false
entity_id: media_player.masyanya
message: The Washing Machine has finished. You should remove clothes.
- delay: "00:15:00"
- service: tts.google_translate_say
data:
cache: false
entity_id: media_player.masyanya
message: Your clothes are still in the washer. Please take care of it.
- delay: "00:30:00"
- service: tts.google_translate_say
data:
cache: false
entity_id: media_player.masyanya
message: Your clothes will smell really bad if you don't take care of it.
- delay: "00:30:00"
- service: automation.turn_on
entity_id: automation.washer_complete_notification
mode: single
I modified my Automation a little bit and looks like it’s working fine. Still tasting
alias: Dryer Notification-2
description: ""
trigger:
- platform: state
entity_id:
- switch.dryer_power
from: "on"
to: "off"
for:
hours: 0
minutes: 0
seconds: 10
alias: Dryer Power OFF
id: Dryer Power OFF
condition:
- condition: and
conditions:
- condition: state
entity_id: binary_sensor.dryer_door_sensor_opening
state: "off"
alias: Dryer Door is Closed
action:
- service: tts.google_translate_say
data:
cache: false
entity_id: media_player.masyanya
message: Your clothes is dry and ready for pickup.
- service: notify.mobile_app_sm_s918u
metadata: {}
data:
message: Your clothes is dry and ready for pickup.
- delay:
hours: 0
minutes: 15
seconds: 0
milliseconds: 0
alias: Wait for 15 minutes
- service: tts.google_translate_say
data:
cache: false
entity_id: media_player.masyanya
message: I said. Your clothes is dry and ready for pickup.
- delay:
hours: 0
minutes: 30
seconds: 0
milliseconds: 0
alias: Wait for 30 minutes
- service: tts.google_translate_say
data:
cache: false
entity_id: media_player.masyanya
message: >-
Did you heard what I said? Your clothes is dry and ready for
pickup!!!
mode: single