1
0

Fix harmony deprecated switches

This commit is contained in:
Przemek Grondek 2023-12-15 14:30:32 +01:00
parent c7c65437dd
commit f1281d8215

View File

@ -2,8 +2,11 @@ tv_nintendo_switch:
alias: Nintendo Switch alias: Nintendo Switch
icon: mdi:nintendo-switch icon: mdi:nintendo-switch
sequence: sequence:
- service: switch.turn_on - service: select.select_option
entity_id: switch.harmonyhub_play_nintendo_switch target:
entity_id: select.harmonyhub_activities
data:
option: Nintendo Switch
- service: media_player.select_source - service: media_player.select_source
data: data:
source: TV source: TV
@ -18,8 +21,11 @@ tv_xbox:
alias: Xbox Series X alias: Xbox Series X
icon: mdi:microsoft-xbox icon: mdi:microsoft-xbox
sequence: sequence:
- service: switch.turn_on - service: select.select_option
entity_id: switch.harmonyhub_xbox target:
entity_id: select.harmonyhub_activities
data:
option: Xbox
- service: media_player.select_source - service: media_player.select_source
data: data:
source: TV source: TV
@ -34,8 +40,11 @@ tv_ps4:
alias: PlayStation 4 alias: PlayStation 4
icon: mdi:sony-playstation icon: mdi:sony-playstation
sequence: sequence:
- service: switch.turn_on - service: select.select_option
entity_id: switch.harmonyhub_play_ps4 target:
entity_id: select.harmonyhub_activities
data:
option: PlayStation
- service: media_player.select_source - service: media_player.select_source
data: data:
source: TV source: TV
@ -53,11 +62,14 @@ tv_atv:
- choose: - choose:
- conditions: - conditions:
- condition: state - condition: state
entity_id: switch.harmonyhub_shield_tv entity_id: select.harmonyhub_activities
state: 'off' state: 'Power Off'
sequence: sequence:
- service: switch.turn_on - service: select.select_option
entity_id: switch.harmonyhub_shield_tv target:
entity_id: select.harmonyhub_activities
data:
option: SHIELD TV
- service: media_player.select_source - service: media_player.select_source
data: data:
source: TV source: TV
@ -92,16 +104,19 @@ tv_f1tv_living_room:
- choose: - choose:
- conditions: - conditions:
- condition: state - condition: state
entity_id: switch.harmonyhub_shield_tv entity_id: select.harmonyhub_activities
state: 'off' state: 'Power Off'
sequence: sequence:
- service: input_select.select_option - service: input_select.select_option
data: data:
option: remote.shield option: remote.shield
target: target:
entity_id: input_select.tv_select entity_id: input_select.tv_select
- service: switch.turn_on - service: select.select_option
entity_id: switch.harmonyhub_shield_tv target:
entity_id: select.harmonyhub_activities
data:
option: SHIELD TV
- service: media_player.select_source - service: media_player.select_source
data: data:
source: TV source: TV
@ -122,8 +137,8 @@ tv_f1tv:
- choose: - choose:
- conditions: - conditions:
- condition: state - condition: state
entity_id: switch.harmonyhub_shield_tv entity_id: select.harmonyhub_activities
state: 'off' state: 'Power Off'
sequence: sequence:
- service: remote.send_command - service: remote.send_command
data: data: