I am struggling to get an automation for harmany hub to work:
automation.yaml
- alias: lights harmony
trigger:
platform: state
entity_id: remote.den
condition:
condition: template
value template: '{{ trigger.to_state.attributes.current_activity == "Watch TV" }}'
action:
service: switch.turn_on
entity_id: switch.sonoff_th
results in:
2019-05-27 17:05:21 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: extra keys not allowed @ data[‘condition’][0][‘value template’]. Got None
not a valid value for dictionary value @ data[‘condition’][0][‘condition’]. Got None
required key not provided @ data[‘condition’][0][‘entity_id’]. Got None.