I try building my first Blueprint, and well… it’s not that easy i thought
How can i work with the {{ trigger.entity_id }} in Choose / Conditions?
Whatever i try to use, it always gives me an Error like this when i want to use that Blueprint:
There is an error in this Blueprint: Failed to load blueprint: invalid key: “{‘trigger.entity_id’: None}” in “/config/blueprints/automation/development/target03.yaml”, line 46, column 0
My Testing Code looks like that:
trigger:
- platform: state
entity_id: !input enitities_to_get_triggered
condition: []
action:
- service: notify.persistent_notification
data:
message: >-
{{ trigger.entity_id }}
- choose:
- conditions:
- condition: state
entity_id: {{ trigger.entity_id }}
state: "on"
sequence:
- service: notify.mobile_app_pixel_6a
data:
message: "Got the triggering entity_id"
Funnily enough, for the notify-Service above it works without any issues, and throws out the correct {{ trigger.entity_id }}
How can i use the entity_id that triggered the Automation, in Conditions?