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

22 lines
583 B
YAML

- id: bathroom_toothbrush_on
alias: '[Bathroom] Toothbrush on'
mode: single
trigger:
- platform: state
to: running
entity_id: sensor.smart_series_7000_a19f_toothbrush_state
action:
- service: script.bathroom_mirror_lights_on
- service: script.bathroom_music_on
- id: bathroom_toothbrush_picked_up
alias: '[Bathroom] Toothbrush picked-up'
mode: single
trigger:
- platform: state
entity_id: sensor.smart_series_7000_a19f_toothbrush_state
from: unavailable
to: 'off'
action:
- service: script.bathroom_mirror_lights_on