I can almost help…but I’m stuck too on figuring out how to tell who pushed the button.
script:
garage_auth_open:
# Pass this in, or figure out a way to look it up...
fields:
user:
description: 'person to check if home'
example: person.luis
sequence:
# Exit if person is not home
- condition: state
entity_id: "{{ user }}"
state: 'home'
- service: cover.open_cover
entity_id: cover.garage
I can get a user_id from the following…
states.script.garage_auth_open.context.user_id
But I have no idea how to map a user id to anything meaningful.
It would be easy enough to create a custom button for each user that only they would see on their views…but there’s got to be a better way.