Trouble triggering automation

I am trying to make a simple automation that will turn on some lights when someone in a group comes home but it will not trigger. I have 2 persons in that group. I have used the GUI editor to make the automation. any ideas?

- id: '1574166577964'
  alias: 'Lys på når noen kommer hjem '
  description: ''
  - entity_id: group.voksne
    from: 'not_home '
    platform: state
    to: 'home'
  - after: '12:00:00'
    condition: time
  - device_id: c556a5cbef824aee83426f227683ae7d
    domain: switch
    entity_id: switch.kjokken_lys
    type: turn_on
  - device_id: 568005fba9e64d0bb6d1cee63f483ebe
    domain: switch
    entity_id: switch.vindfang
    type: turn_on
  - device_id: 1de29ffed5eb49c6904f65d601e6e43b
    domain: light
    entity_id: light.gang
    type: turn_on

Remove the extra space inside the quotes from this state:

from: 'not_home '

Thank you. I overlooked that. I guess the extra space was added using the GUI editor. When testing now it works.

1 Like