1
0
ansible-home-assistant/configuration/automations/bathroom-washing-machine.yaml

40 lines
1.1 KiB
YAML

- 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
condition:
- condition: state
entity_id: switch.washing_machine_on_off
state: 'on'
action:
- service: switch.turn_off
entity_id: switch.washing_machine_on_off
- 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