Skip to content

states.update returns empty list inside trigger_variables on Home Assistant 2026.5.4 #23

@RF1705

Description

@RF1705

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:

installable_entities: []

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions