1
0

Compare commits

..

2 Commits

2 changed files with 12 additions and 25 deletions

View File

@ -1,24 +0,0 @@
- id: bathroom-music-on
alias: '[Bathroom] Music On'
mode: restart
trigger:
- platform: state
entity_id: binary_sensor.shower_motion
from: 'off'
to: 'on'
- device_id: 4d5298037e93ba11438409bff01b5005
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
condition:
- condition: state
entity_id: media_player.bathroom
state: 'off'
action:
- service: media_player.play_media
target:
entity_id: media_player.bathroom
data:
media_content_id: https://open.spotify.com/playlist/71mXIu6HcdVj3fAMduaHop
media_content_type: music

View File

@ -10,3 +10,14 @@
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_50338b1ba19f
from: unavailable
to: 'off'
action:
- service: script.bathroom_mirror_lights_on