What am i doing wrong?

I am trying to get the balcony lights to turn on at a certain time.
With below automation i get following error:
Invalid config for [automation]: required key not provided @ data[‘trigger’][1][‘platform’]. Got None.

- alias: 'twinkly_on'
  initial_state: on
  trigger:
  - platform: time
    at: '00:17:00'
  - condition: state
    entity_id: input_select.status_hemma
    state: 'Home'    
  action:
    - service: homeassistant.turn_on
      entity_id: switch.twinkly

I think you are missing a 'condition: ’ statement in there. Try this (and watch out for number of spaces you use)

- alias: 'twinkly_on'
  initial_state: on
  trigger:
    - platform: time
      at: '00:17:00'
  condition:
    - condition: state
      entity_id: input_select.status_hemma
      state: 'Home'    
  action:
    - service: homeassistant.turn_on
      entity_id: switch.twinkly
1 Like

Ah so true, when i did copy paste from another automation i have i was a bit quick.

Thank you :slight_smile: