Problem with simple Automation

Hi,

I've started with my most simple configuration to get som Automation done:

    group:
      sun_automation:
        - switch.ute_trappa
        - switch.allrum_tavla
        - switch.allrum_slinga

     automation:
      alias: 'Turn on light when sun sets'
      trigger:
        platform: sun
        event: sunset
        offset: '-01:00:00'
        
      action:
        service: homeassistant.turn_on
        entity_id: sun_automation

I get the following error in Logbook:
invalid config changed to The following components and platforms could not be set up: * [automation](https://home-assistant.io/components/automation/) Please check your config

Any suggestions on my issue?

entity_id: group.sun_automation

The states dev tool ( looks like < > in HASS sidebar) will show the correct entity_ids for everything you have set up.

1 Like

Try to change: entity_id: sun_automation to entity_id: group.sun_automation

1 Like

Thanks both of you! That were the problem.

As a side note, when trying to use Services menu to make a restart of HASS it stop at this:

This used to work before I upgraded to 0.34.0

I’ve not upgraded to .34 yet. You’ll want to open that as a separate thread to see if anyone else has the same issue.