1
0

Compare commits

..

No commits in common. "f2cb18c1e9316a656f7565e9b36c52180e54b158" and "3a066f3fbb540c9270156d8a6380f3564a03354b" have entirely different histories.

2 changed files with 25 additions and 12 deletions

View File

@ -0,0 +1,24 @@
- 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,14 +10,3 @@
action: action:
- service: script.bathroom_mirror_lights_on - service: script.bathroom_mirror_lights_on
- service: script.bathroom_music_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