Compare commits
2 Commits
3a066f3fbb
...
f2cb18c1e9
Author | SHA1 | Date | |
---|---|---|---|
f2cb18c1e9 | |||
74b6e25661 |
@ -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
|
|
@ -10,3 +10,14 @@
|
|||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user