Motion Sensor Group State not firing

Hi all -

I’m a newbie to HA so please excuse my ignorance. I’m trying to create an automation that will be switched on by a motion group and switched off if no motion is detected after 10 mins. If I hit “run automation” in the automation section it works fine, but won’t trigger by itself. Here is the code and also how I set up the group.

Any help will be greatly appreciated.

Many thanks,
n.

Welcome to the forums, netleo!

First a little bit orga stuff: Please use the </> button to post code in a usable format, thanks!

Now let’s turn to your case:

Check the automation debug trace to see which errors are displayed.

Try

action:
- service: switch.turn_on
  target:
    entity_id: switch.YOUR_SWITCH

I found the error - thank you so much for the help. I’ve noted how to paste the YAML code moving forward.