I was setting up my Harmony Hub to be able to control it thru HA. Getting a couple errors and from some reading think it may be input_select related but no clue. Have another error now with another integration that was working fine up until the other day and it also has input_select as part of it. The errors I’m getting say when I turn on the TV with the remote are:
Unable to find referenced entities script.turn_on_watch_tv_activity
Unable to find referenced entities script.turn_off_activity
They seem to exist. Below is what I setup:
input_select.harmony_tv_source.yaml:
harmonytvsource:
name: Harmony Activities
options:
- Select Activity
- Watch TV
- Listen To Music
- PowerOff
initial: Select Activity
automations_harmony_tv_source:
- alias: TV Source Automation
trigger:
platform: state
entity_id: input_select.harmonytvsource
action:
- service: remote.turn_on
data_template:
entity_id: >
{% if is_state('input_select.harmonytvsource', 'Watch TV') %}
script.turn_on_watch_tv_activity
{% elif is_state('input_select.harmonytvsource', 'Listen To Music') %}
script.turn_on_listen_to_music_activity
{% elif is_state('input_select.harmonytvsource', 'PowerOff') %}
script.turn_off_activity
{% endif %}
# Update input_select for TV Source
- alias: Update Hub TV Source
trigger:
platform: state
entity_id: remote.familyroom_hub
condition:
condition: template
value_template: "{{ trigger.to_state.attributes.current_activity in state_attr('input_select.harmonytvsource', 'options') }}"
action:
service: input_select.select_option
data_template:
entity_id: input_select.harmonytvsource
option: "{{ trigger.to_state.attributes.current_activity }}"
scripts_harmony.yaml:
# ACTIVITIES
turn_on_watch_tv_activity:
alias: Watch TV
sequence:
- service: remote.turn_on
entity_id: remote.familyroom_hub
data:
activity: "Watch TV"
turn_off_watch_tv_activity:
alias: Turn Off Watch TV
sequence:
- service: remote.turn_off
entity_id: remote.familyroom_hub
data:
activity: "Watch TV"
turn_on_listen_to_music_activity:
alias: Listen To Music
sequence:
- service: remote.turn_on
entity_id: remote.familyroom_hub
data:
activity: "Listen to Music"
turn_off_listen_to_music_activity:
alias: Turn Off Listen To Music
sequence:
- service: remote.turn_off
entity_id: remote.familyroom_hub
data:
activity: "Listen to Music"
turn_off_activity:
alias: Turn Off Active Activity
sequence:
- service: remote.turn_off
entity_id: remote.familyroom_hub
data:
activity: "PowerOff"
# END ACTIVITIES
See anything I did wrong? As noted something is effecting an automation I did a while ago to notify me when my washer or dryer is done. The part it’s breaking is when it’s done if no one is home, it waits for someone to get home and only alerts them. Now it just alerts everyone when it’s done so assuming it’s tied to the above unless some of the recent HA updates is causing this.
Thoughts?
Thanks.
JR