2022-02-21 22:01:08 +00:00
|
|
|
- id: bathroom-toothbrush-on
|
|
|
|
alias: '[Bathroom] Toothbrush on'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- type: powered
|
|
|
|
platform: device
|
|
|
|
device_id: 1f92942c1507740a4ecfae30fdb1889e
|
2022-04-21 19:48:04 +00:00
|
|
|
entity_id: binary_sensor.ble_toothbrush_toothbrush
|
2022-02-21 22:01:08 +00:00
|
|
|
domain: binary_sensor
|
|
|
|
action:
|
|
|
|
- service: script.bathroom_mirror_lights_on
|
2022-02-21 23:54:36 +00:00
|
|
|
- service: script.bathroom_music_on
|
|
|
|
|
|
|
|
- id: bathroom-toothbrush-picked-up
|
|
|
|
alias: '[Bathroom] Toothbrush picked-up'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
2022-04-21 19:48:04 +00:00
|
|
|
entity_id: binary_sensor.ble_toothbrush_toothbrush
|
2022-02-21 23:54:36 +00:00
|
|
|
from: unavailable
|
|
|
|
to: 'off'
|
|
|
|
action:
|
|
|
|
- service: script.bathroom_mirror_lights_on
|