Skip to content

Instantly share code, notes, and snippets.

@samplec0de
Created March 8, 2023 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samplec0de/a08c9ff9320908180769478686ca29f5 to your computer and use it in GitHub Desktop.
Save samplec0de/a08c9ff9320908180769478686ca29f5 to your computer and use it in GitHub Desktop.
value_template: >-
{% set andrey_id = states.person.admin.attributes.user_id
%}
{% set nastya_id = states.person.nastya.attributes.user_id
%}
{% set who_stopped_id =
states.input_button.alarm_stopped.context.user_id %}
{% set andrey_stopped = who_stopped_id == andrey_id %}
{{ andrey_stopped }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment