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

28 lines
742 B
YAML
Raw Permalink Normal View History

- id: bathroom_toothbrush_on
2022-02-21 22:01:08 +00:00
alias: '[Bathroom] Toothbrush on'
mode: single
trigger:
2023-12-15 13:13:12 +00:00
- platform: state
to: running
entity_id: sensor.smart_series_7000_a19f_toothbrush_state
2022-02-21 22:01:08 +00:00
action:
- service: script.bathroom_mirror_lights_on
- choose:
- conditions:
- condition: time
2024-01-24 22:01:01 +00:00
after: "08:00:00"
before: "23:00:00"
sequence:
- service: script.bathroom_music_on
- id: bathroom_toothbrush_picked_up
alias: '[Bathroom] Toothbrush picked-up'
mode: single
trigger:
- platform: state
2023-12-15 13:13:12 +00:00
entity_id: sensor.smart_series_7000_a19f_toothbrush_state
from: unavailable
to: 'off'
action:
- service: script.bathroom_mirror_lights_on