Fix automation for lowering bathroom music volume
This commit is contained in:
parent
5cf22ba793
commit
305a009ac2
@ -20,7 +20,8 @@
|
|||||||
target:
|
target:
|
||||||
entity_id: media_player.bathroom
|
entity_id: media_player.bathroom
|
||||||
|
|
||||||
- alias: '[Bathroom] Shower Motion Off'
|
- id: bathroom-shower-motion-off
|
||||||
|
alias: '[Bathroom] Shower Motion Off'
|
||||||
mode: restart
|
mode: restart
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
@ -48,13 +49,18 @@
|
|||||||
sequence:
|
sequence:
|
||||||
- repeat:
|
- repeat:
|
||||||
until:
|
until:
|
||||||
- condition: state
|
- condition: numeric_state
|
||||||
entity_id: media_player.bathroom
|
entity_id: media_player.bathroom
|
||||||
attribute: volume_level
|
attribute: volume_level
|
||||||
state: '0.45'
|
below: '0.45'
|
||||||
sequence:
|
sequence:
|
||||||
- service: media_player.volume_down
|
- service: media_player.volume_down
|
||||||
target:
|
target:
|
||||||
entity_id: media_player.bathroom
|
entity_id: media_player.bathroom
|
||||||
- delay:
|
- delay:
|
||||||
seconds: 10
|
seconds: 10
|
||||||
|
- service: media_player.volume_set
|
||||||
|
data:
|
||||||
|
volume_level: 0.45
|
||||||
|
target:
|
||||||
|
entity_id: media_player.bathroom
|
Loading…
Reference in New Issue
Block a user