Hi perhaps someone can point me to what i am doing wrong here, but the below automation does not work. I have followed the syntax of the example here https://home-assistant.io/components/remote.harmony/
but I get an error when trying to parse?
2017-06-02 13:00:06 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: expected a dictionary for dictionary value @ data[‘action’][0][‘data_template’]. Got None
extra keys not allowed @ data[‘action’][0][‘command’]. Got None
extra keys not allowed @ data[‘action’][0][‘device’]. Got None. (See /root/.homeassistant/configuration.yaml, line 1318). Please check the docs at https://home-assistant.io/components/automation/
automation:
- alias: Someone is at the front door
trigger:
platform: state
entity_id: binary_sensor.ring_front_door_ding
state: 'on'
condition:
- condition: state
entity_id: group.people
state: 'home'
action:
- service: remote.send_command
data_template:
# using a data template to have if brances for relavant device
# Always the same entity_id - the harmony hub
entity_id: remote.lounge
# Always the same command - the Pause key
command: Pause
# select device based upon the activity being undertaken.
device: >
{% if is_state("sensor.living_room_remote", "Watch SKY") %}{% raw %}
20014676
{% raw %}{% elif is_state("sensor.living_room_remote", "Watch Media") %}
20009633
{% elif is_state("sensor.living_room_remote", "Watch a BluRay") %}
20009628
{% endif %}