2023-06-12 21:56:22 +00:00
|
|
|
- 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
|
2024-01-19 00:10:56 +00:00
|
|
|
- choose:
|
|
|
|
- conditions:
|
|
|
|
- condition: time
|
|
|
|
after: "00:00:00"
|
|
|
|
before: "08:00:00"
|
|
|
|
sequence:
|
|
|
|
- service: script.bathroom_music_on
|
2022-02-21 23:54:36 +00:00
|
|
|
|
2023-06-12 21:56:22 +00:00
|
|
|
- id: bathroom_toothbrush_picked_up
|
2022-02-21 23:54:36 +00:00
|
|
|
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
|
2022-02-21 23:54:36 +00:00
|
|
|
from: unavailable
|
|
|
|
to: 'off'
|
|
|
|
action:
|
|
|
|
- service: script.bathroom_mirror_lights_on
|