Hi, I’m trying to add a simple switch for my main activity, but I can’t get it to work
Any ideas?
remote:
- platform: harmony
name: Lounge Room
activity: Watch Foxtel
switch:
- platform: template
switches:
watch_foxtel:
value_template: “{% if is_state(‘remote.lounge_room’, ‘on’) %}on{% else %}off{% endif %}”
turn_on:
service: remote.turn_on
entity_id: remote.lounge_room
turn_off:
service: remote.turn_off
entity_id: remote.lounge_room