Harmony automation wont load

I am struggling to get an automation for harmany hub to work:


- alias: lights harmony
    platform: state  
    entity_id: remote.den
    condition: template
    value template: '{{ trigger.to_state.attributes.current_activity == "Watch TV" }}'
    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.

It will be much easier to help if you format your code properly. Use three backticks at the beginning and end or use the </> button in the editor toolbar.

now updated