From bac7c2f5b1b4b088dbebc339f6e49a4818018746 Mon Sep 17 00:00:00 2001 From: pgrondek Date: Mon, 10 May 2021 23:10:18 +0200 Subject: [PATCH] Add washing machine automations --- .../automations/bathroom-washing-machine.yaml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 automations/files/automations/bathroom-washing-machine.yaml diff --git a/automations/files/automations/bathroom-washing-machine.yaml b/automations/files/automations/bathroom-washing-machine.yaml new file mode 100644 index 0000000..2d488a3 --- /dev/null +++ b/automations/files/automations/bathroom-washing-machine.yaml @@ -0,0 +1,46 @@ +- id: washing-machine-notification + alias: '[Washing Machine] Washing notification' + mode: single + trigger: + - type: power + platform: device + device_id: 6abd174075f468c040ac51979dfd09af + entity_id: sensor.washing_machine_electrical_measurement + domain: sensor + below: 100 + for: + hours: 0 + minutes: 15 + seconds: 0 + milliseconds: 0 + action: + - service: switch.turn_off + entity_id: switch.washing_machine_on_off + - choose: + - conditions: + - condition: state + entity_id: device_tracker.przemyslaws_iphone + state: home + sequence: + - service: tts.google_translate_say + data: + entity_id: media_player.living_room + language: en + message: Washing machine has finished + - service: notify.notify + data: + title: 'Washing Machine' + message: 'Washing has finished' + - choose: + - conditions: + - condition: state + entity_id: media_player.samsung_qe55q6fam + state: 'on' + sequence: + - service: notify.shield + data: + title: 'Washing Machine' + message: 'Washing has finished' + data: + duration: 30 + color: black \ No newline at end of file