Bug: states.update evaluates to an empty list inside trigger_variables
Environment
- Home Assistant: 2026.5.4
- Blueprint version: Home Assistant Auto-update on a schedule
- Installation type: Home Assistant OS
Description
Automatic updates never start although update entities are available and in state on.
After investigating the automation trace, I found that installable_entities is always empty:
This causes the condition
states.update
| default([])
| selectattr("state", "eq", "on")
| selectattr("entity_id", "in", installable_entities)
| rejectattr("entity_id", "in", input_update_exclusions)
| list | count | int(0) > 0
to always evaluate to false.
Relevant blueprint code
trigger_variables:
installable_entities: >
{% set ns = namespace(list=[]) %}
{% for e in states.update | default([]) %}
{% if (e.attributes.supported_features | int(0)) | bitwise_and(1) %}
{% set ns.list = ns.list + [e.entity_id] %}
{% endif %}
{% endfor %}
{{ ns.list }}
Investigation
The exact same template works correctly in Developer Tools → Templates.
Template result:
[
"update.home_assistant_core_update",
"update.advanced_ssh_web_terminal_update",
"update.homematic_ip_local_for_openccu_update",
"update.battery_notes_update"
]
However, inside trigger_variables it evaluates to:
Minimal reproduction
alias: Test trigger_variables states.update
trigger_variables:
installable_entities: >
{% set ns = namespace(list=[]) %}
{% for e in states.update | default([]) %}
{% if (e.attributes.supported_features | int(0)) | bitwise_and(1) %}
{% set ns.list = ns.list + [e.entity_id] %}
{% endif %}
{% endfor %}
{{ ns.list }}
trigger:
- platform: state
entity_id: schedule.update_plan
to: "on"
action:
- action: persistent_notification.create
data:
title: Test trigger_variables
message: >
installable_entities = {{ installable_entities }}
Result:
installable_entities = []
Available update entities at the time of testing
update.home_assistant_core_update
update.advanced_ssh_web_terminal_update
update.homematic_ip_local_for_openccu_update
update.battery_notes_update
Question
Is states.update expected to be unavailable inside trigger_variables, or should this be considered a Home Assistant compatibility issue introduced in recent versions?
Bug:
states.updateevaluates to an empty list insidetrigger_variablesEnvironment
Description
Automatic updates never start although update entities are available and in state
on.After investigating the automation trace, I found that
installable_entitiesis always empty:This causes the condition
states.update | default([]) | selectattr("state", "eq", "on") | selectattr("entity_id", "in", installable_entities) | rejectattr("entity_id", "in", input_update_exclusions) | list | count | int(0) > 0to always evaluate to false.
Relevant blueprint code
Investigation
The exact same template works correctly in Developer Tools → Templates.
Template result:
However, inside
trigger_variablesit evaluates to:Minimal reproduction
Result:
Available update entities at the time of testing
Question
Is
states.updateexpected to be unavailable insidetrigger_variables, or should this be considered a Home Assistant compatibility issue introduced in recent versions?