diff --git a/automation/events.yaml b/automation/events.yaml index bd047d1..1362522 100644 --- a/automation/events.yaml +++ b/automation/events.yaml @@ -50,6 +50,22 @@ - service: input_boolean.turn_on entity_id: input_boolean.washer_notification +- alias: Washer Emptied + trigger: + - platform: state + entity_id: binary_sensor.washer_door + from: 'off' + to: 'on' + condition: + - condition: state + entity_id: input_boolean.washer_notification + state: 'on' + action: + - service: homeassistant.turn_off + entity_id: script.washer_finished_notification + - service: input_boolean.turn_off + entity_id: input_boolean.washer_notification + - alias: Washer Notification trigger: - platform: state @@ -60,8 +76,9 @@ entity_id: sensor.family_status state: home action: - - service: script.washer_finished_notification - + - service: homeassistant.turn_on + entity_id: script.washer_finished_notification + - alias: Get Dressed Skylar trigger: - platform: time diff --git a/scripts/washer_finished_notification.yaml b/scripts/washer_finished_notification.yaml index 2f0b214..c1b8c8f 100644 --- a/scripts/washer_finished_notification.yaml +++ b/scripts/washer_finished_notification.yaml @@ -4,7 +4,7 @@ washer_finished_notification: entity_id: input_boolean.washer_notification state: 'on' - delay: - minutes: 3 + minutes: 45 - service: notify.all_ios data: message: "Washer is done"