You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create a blueprint and need to set the entity_id for some fields via template. When I try to create an automation using this template I get an error when saving it. I have created a minimal script that returns the same error when saving.
The error in red at the top when saving this script:
Message malformed: Entity {{ 'light.dining_room_light' }} is neither a valid entity ID nor a valid UUID for dictionary value @ data['sequence'][0]['entity_id']
Note that I'm using a template in both the condition and the service call, but if I set the condition entity_id directly instead of through a template, the service call entity_id template works without issue.
What version of Home Assistant Core has the issue?
core-2023.2.5
What was the last working version of Home Assistant Core?
Not a bug. The State Condition's entity_id option doesn't support a template.
Normally the documentation either explains or provides an example of what an option can do. In this case, there's nothing in the State Condition's documentation that suggests you can template entity_id
If you need to be able to template the entity, consider using a Template Condition.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The problem
I am trying to create a blueprint and need to set the
entity_id
for some fields via template. When I try to create an automation using this template I get an error when saving it. I have created a minimal script that returns the same error when saving.The error in red at the top when saving this script:
Note that I'm using a template in both the condition and the service call, but if I set the condition
entity_id
directly instead of through a template, the service callentity_id
template works without issue.What version of Home Assistant Core has the issue?
core-2023.2.5
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
No response
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: