Trigger an automation using iOS shortcuts

hey guys,

right now i‘m using an iOS shortcut to call a script when i turn off an alarm (turning lights on when i wake up). however this also triggers the script when i‘m not home.

so i wanted to do an automation that only turns the light on when i‘m home.

i‘m calling automation.trigger using the shortcuts app, but does someone knows what i have to add as data?

is it only this?

target: 
  entity_id: automation.name

got it:

How did you set up your automation in Home Assistant? I’m trying to replicate your setup but my automation isn’t getting triggered :thinking:

Never mind, I had a typo in the automation ID :grimacing:

I have followed this process and I keep getting the error below. What am I doing wrong?


I figured out what I missed. You have to add the dictionary part above the action call