home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.14k stars 29.81k forks source link

HDMI-CEC doesn't create devices or registers as an active integration #123153

Open sm-Fifteen opened 1 month ago

sm-Fifteen commented 1 month ago

The problem

I seem to be the latest of 60 or so people using the HDMI-CEC integration in their Home Assistant installation, and it has not been working very well so far. Having just enabled it 2 days ago, I notice that it only created a handful of entities with no parent device, no parent integration and no unique ID (meaning no stats can be tracked). I understand that HDMI-CEC provides no unique, immutable way of identifying other devices on the CEC network (most logical addresses are not stable, physical addresses may change over time, and no standard command exposes any sort of product ID/serial number), but that still makes the overall experience very unsatisfying compared to other integrations I've used.

At the very least, the CEC adapter should be registered as a device to regroup the related entities, and the entities themselves should try to have some unique IDs. The TV is easy, since it has both physical address 0.0.0.0 and logical address 0, and the AV reciever/soundbar can only be at logical address 5, so it too should be stable. The other devices would prove trickier, but having at least those two be stable would be a big improvement.

The doc mentions something about using the YAML config to map names for each device, but that doesn't seem to do anything with either IDs or entity names. I guess setting device IDs manually in the config can always be ok as a last resort.

What version of Home Assistant Core has the issue?

core-2024.7.4

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

hdmi_cec

Link to integration documentation on our website

https://www.home-assistant.io/integrations/hdmi_cec/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

Hey there @inytar, mind taking a look at this issue as it has been labeled with an integration (hdmi_cec) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `hdmi_cec` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign hdmi_cec` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


hdmi_cec documentation hdmi_cec source (message by IssueLinks)