diff --git a/configuration/automations/bathroom-shower-motion.yaml b/configuration/automations/bathroom-shower-motion.yaml index fb29e79..752c7d1 100644 --- a/configuration/automations/bathroom-shower-motion.yaml +++ b/configuration/automations/bathroom-shower-motion.yaml @@ -20,8 +20,7 @@ target: entity_id: media_player.bathroom -- id: bathroom-shower-motion-off - alias: '[Bathroom] Shower Motion Off' +- alias: '[Bathroom] Shower Motion Off' mode: restart trigger: - platform: state @@ -47,8 +46,15 @@ entity_id: media_player.bathroom state: playing sequence: - - service: media_player.volume_set - data: - volume_level: 0.45 - target: - entity_id: media_player.bathroom \ No newline at end of file + - repeat: + until: + - condition: state + 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