24 lines
650 B
YAML
24 lines
650 B
YAML
- id: bathroom_toothbrush_on
|
|
alias: '[Bathroom] Toothbrush on'
|
|
mode: single
|
|
trigger:
|
|
- type: powered
|
|
platform: device
|
|
device_id: 1f92942c1507740a4ecfae30fdb1889e
|
|
entity_id: binary_sensor.ble_toothbrush_toothbrush
|
|
domain: binary_sensor
|
|
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: binary_sensor.ble_toothbrush_toothbrush
|
|
from: unavailable
|
|
to: 'off'
|
|
action:
|
|
- service: script.bathroom_mirror_lights_on
|