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

Thank you to the great ones who come before me.

A couple additional points to expedite others accomplishment who like me are just finding the shortcuts and their awesome power

The Dictionary item is part of the short cut universe not home assistant and it a way to create a label and a value. In my case it also was entity_id and the partner was then object id of an automation which I then used HA’s call automation.trigger with data and the refernce back to the entity_id and value