Input select condition

Hi,
I want to turn on a switch, only if input_select is set to ‘Auto’.

automation:
- alias: Turn on light
  trigger:
    platform: state
    entity_id: binary_sensor.motion
    state: 'on'
  condition:
    condition: state
    entiny_id: input_select.light_mode
    state: 'Auto'
  action:
    service: homeassistant.turn_on
    entity_id: switch.plakat

error:

17-04-16 00:24:57 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: extra keys not allowed     @ data['condition'][0]['entiny_id']. Got None
extra keys not allowed @ data['condition'][0]['state']. 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. (See /home/homeassistant/.homeassistant/configuration.yaml, line 167).

There is something wrong with the condition, but I have no idea.
Thank you.

You misspelled entity_id in the condition…

Sebastian

1 Like

Oh… Thank you.