Gradually lower bathroom player volume
This commit is contained in:
parent
c973bd7b16
commit
113d7c9207
@ -20,8 +20,7 @@
|
|||||||
target:
|
target:
|
||||||
entity_id: media_player.bathroom
|
entity_id: media_player.bathroom
|
||||||
|
|
||||||
- id: bathroom-shower-motion-off
|
- alias: '[Bathroom] Shower Motion Off'
|
||||||
alias: '[Bathroom] Shower Motion Off'
|
|
||||||
mode: restart
|
mode: restart
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
@ -47,8 +46,15 @@
|
|||||||
entity_id: media_player.bathroom
|
entity_id: media_player.bathroom
|
||||||
state: playing
|
state: playing
|
||||||
sequence:
|
sequence:
|
||||||
- service: media_player.volume_set
|
- repeat:
|
||||||
data:
|
until:
|
||||||
volume_level: 0.45
|
- condition: state
|
||||||
target:
|
entity_id: media_player.bathroom
|
||||||
entity_id: media_player.bathroom
|
attribute: volume_level
|
||||||
|
state: '0.45'
|
||||||
|
sequence:
|
||||||
|
- service: media_player.volume_down
|
||||||
|
target:
|
||||||
|
entity_id: media_player.bathroom
|
||||||
|
- delay:
|
||||||
|
seconds: 10
|
||||||
|
Loading…
Reference in New Issue
Block a user