Skip to content

Commit

Permalink
Turn on Bluetooth until the Receiver is really set to Bluetooth
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger committed Mar 29, 2021
1 parent 34371a6 commit 8578184
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions packages/denon_avr_x1300w.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8578184

Please sign in to comment.