diff --git a/packages/denon_avr_x1300w.yaml b/packages/denon_avr_x1300w.yaml index c5c8813..cbc65c3 100644 --- a/packages/denon_avr_x1300w.yaml +++ b/packages/denon_avr_x1300w.yaml @@ -47,10 +47,18 @@ automation: - condition: template value_template: "{{ trigger.from_state.state != 'playing' }}" action: - - service: media_player.select_source - entity_id: media_player.denon_avr_x1300w - data: - source: "Bluetooth" + - alias: "Turn on Bluetooth until the Receiver is really set to Bluetooth" + repeat: + sequence: + - service: media_player.select_source + entity_id: media_player.denon_avr_x1300w + data: + source: "Bluetooth" + until: + - condition: state + entity_id: media_player.denon_avr_x1300w + attribute: "source" + state: "Bluetooth" script: receiver_set_source_cbl_sat: sequence: