I was trying to follow the instructions on the Harmony component page but I was getting errors with {% raw %}
as it said I don’t have an {% endraw %}
. Im not sure what the purpose for this is so I tried it without but without success. Can someone point me in the right direction where I need to use raw or if there’s something else with my config to get it working. Thanks
Here’s my automation:
- alias: 'Ring Pause Media'
trigger:
platform: state
entity_id: binary_sensor.front_door_button_pressed
from: 'off'
to: 'on'
condition:
condition: and
conditions:
- condition: state
entity_id: input_boolean.ring_door_pause_media
state: 'on'
action:
- service: script.turn_on
data:
entity_id: script.pause_living_room_harmony
and my script:
pause_living_room_harmony:
sequence:
- service: remote.send_command
data_template:
entity_id: remote.living_room
command: Pause
# select device based upon the activity being undertaken.
device: >
{% if is_state("sensor.living_room_harmony_remote", "Watch Roku") %}
23481690
{% elif is_state("sensor.living_room_harmony_remote", "Listen To Music") %}
23424982
{% endif %}
Link to component page: