Hello, I’ve tried a couple of different examples on setting how to select a Harmony Activity from an input select. I feel like I copied everything and changed it correctly but it’s not working. I’m not getting any errors in the log but it’s never successfully switched to the input after I select it from the drop down. If you have any ideas I would greatly appreciate it!
configuration.yaml:
script:
input_select_harmony:
alias: 'Start activity from input select'
sequence:
- service: remote.turn_on
data_template:
entity_id: remote.harmony_hub
activity: >
{% if is_state("input_select.harmony_hub", "Chromecast (Living Room)") %}
27373448
{% elif is_state("input_select.harmony_hub", "LGTV") %}
26485360
{% elif is_state("input_select.harmony_hub", "Pandora (Both Rooms)") %}
24749177
{% elif is_state("input_select.harmony_hub", "Chromecast (Bedroom)") %}
27019625
{% elif is_state("input_select.harmony_hub", "Radio") %}
22156022
{% elif is_state("input_select.harmony_hub", "TV (Living Room)") %}
22122950
{% elif is_state("input_select.harmony_hub", "Pandora (Living Room)") %}
22122546
{% elif is_state("input_select.harmony_hub", "Xbox 360 (Bedroom)") %}
27019330
{% elif is_state("input_select.harmony_hub", "Sleep") %}
24432945
{ % elif is_state("input_select.harmony_hub", "Netflix") %}
22726467
{% elif is_state("input_select.harmony_hub", "Xbox One (Living Room)") %}
22152858
{% elif is_state("input_select.harmony_hub", "TV (Bedroom)") %}
23209137
{% elif is_state("input_select.harmony_hub", "Spotify (Living Room)") %}
27373516
{% elif is_state("input_select.harmony_hub", "TV (Living Room)") %}
22122950
{% elif is_state("input_select.harmony_hub", "HTPC") %}
27663465
{% elif is_state("input_select.harmony_hub", "Receiver / USB") %}
24433259
{% elif is_state("input_select.harmony_hub", "Spotify (Bedroom)") %}
27373548
{% elif is_state("input_select.harmony_hub", "Amazon FireTV") %}
22122797
{% elif is_state("input_select.harmony_hub", "PowerOff") %}
-1
{% else %}
{% endif %}
# Input Select
input_select:
harmony_hub:
name: Harmony Activity
options:
- Select input
- LGTV
- HTPC
- TV (Living Room)
- TV (Bedroom)
- Netflix
- Radio
- Spotify (Living Room)
- Spotify (Bedroom)
- Chromecast (Living Room)
- Chromecast (Bedroom)
- Pandora (Both Rooms)
- Pandora (Living Room)
- Xbox One (Living Room)
- Xbox 360 (Bedroom)
- Receiver / USB
- Amazon FireTV
- Sleep
- PowerOff
initial: Select input
and I’ve tried it with both auto discovery on and off in config:
# Harmony Hub
remote:
- platform: harmony
name: Harmony Hub
host: 192.168.1.123
port: 5222
automation.yaml:
- id: Remote Update Harmony Hub
alias: 'Remote update Harmony Hub'
trigger:
platform: state
entity_id: remote.harmony_hub
action:
service: input_select.select_option
data_template:
entity_id: input_select.harmony_hub
option: >
{{ states.remote.harmony_hub.attributes.current_activity }}
and:
- id: Start Selected Activity
alias: 'Remote start activity from input select living room tv'
trigger:
platform: state
entity_id: input_select.harmony_hub
action:
service: script.turn_on
entity_id: script.input_select_harmony
Thank you to anyone who has any ideas!