Open oeiber opened 6 months ago
Hey there @phracturedblue, @tetienne, @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (template
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
template documentation template source (message by IssueLinks)
can anybody confirm the issue?
I can confirm this, having the same issue, but in this case referencing another entity. This is the test I did (based on this example):
- select:
- name: "Porch Camera Day-Night Mode"
unique_id: porch_camera_day_night_mode
state: "{{ state_attr('camera.buienradar', 'friendly_name') }}"
options: "{{ ['off', 'on', 'auto'] }}"
select_option:
- action: tts.google_say
data:
cache: false
entity_id: media_player.nestaudio
message: Test
This results in an unknown state:
The problem
Self referencing template select does not render its state during startup.
The entity‘s state will remain „unknown“ until rereading template yaml using developer tools.
What version of Home Assistant Core has the issue?
core-2024.5.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
template select
Link to integration documentation on our website
https://www.home-assistant.io/integrations/template/
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response