Change bathroom music based on shower motion
This commit is contained in:
parent
06f54cc982
commit
5b3ac327ec
1 changed files with 23 additions and 1 deletions
|
@ -8,6 +8,17 @@
|
||||||
to: 'on'
|
to: 'on'
|
||||||
action:
|
action:
|
||||||
- service: script.bathroom_shower_lights_on
|
- service: script.bathroom_shower_lights_on
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: state
|
||||||
|
entity_id: media_player.bathroom
|
||||||
|
state: playing
|
||||||
|
sequence:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.65
|
||||||
|
target:
|
||||||
|
entity_id: media_player.bathroom
|
||||||
|
|
||||||
- id: bathroom-shower-motion-off
|
- id: bathroom-shower-motion-off
|
||||||
alias: '[Bathroom] Shower Motion Off'
|
alias: '[Bathroom] Shower Motion Off'
|
||||||
|
@ -29,4 +40,15 @@
|
||||||
for: '0:02:00'
|
for: '0:02:00'
|
||||||
state: 'off'
|
state: 'off'
|
||||||
action:
|
action:
|
||||||
- service: script.bathroom_shower_lights_off
|
- service: script.bathroom_shower_lights_off
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: state
|
||||||
|
entity_id: media_player.bathroom
|
||||||
|
state: playing
|
||||||
|
sequence:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.30
|
||||||
|
target:
|
||||||
|
entity_id: media_player.bathroom
|
Loading…
Reference in a new issue