core: Esphome device identifiers missing
The problem
I noticed that in my setup the identifiers for an esphome athom plug are missing. All my other devices from various ui configurable integrations have them.
What version of Home Assistant Core has the issue?
Core 2024.5.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
Esphome
Link to integration documentation on our website
https://www.home-assistant.io/integrations/esphome/
Diagnostics information
No response
Example YAML snippet
This is the template call that doesn’t return any identifiers:
{{ device_attr(entity_id, 'identifiers') }}
It returns an empty set() instead. I guess this is an omission. Other devices return {(“integration name”, “unique id”)}
Example, template in dev tools:
Athom plug:
{{ device_attr('a05cbf2d7536349b1caefb4f8e65d4bx', 'identifiers') }}
Hue device:
{{ device_attr('720b81c19d128a2d4x9e7fa7d3383x61', 'identifiers') }}
Result:
Athom plug:
set()
Hue device:
{('hue', '52c9a654-47c8-4994-aa8a-00110be15d84')}
Anything in the logs that might be useful for us?
No response
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (7 by maintainers)
Once the arch discussion gets a green check mark its good to go.
@bdraco I created my first architecture discussion. Hope I did it in the right way. In the mean time, I managed to get the one method working in pyscript (cool):