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
69.03k stars 28.28k forks source link

Unifi integration power consumption sensor's entity category is diagnostic #116834

Open yuliwilliam opened 1 week ago

yuliwilliam commented 1 week ago

The problem

There are four sensors defined in the file homeassistant/components/unifi/sensor.py that have device_class=SensorDeviceClass.POWER, i.e. PoE port power sensor, Outlet power metering, SmartPower AC power budget and SmartPower AC power consumption.

The entity category of those sensors are entity_category=EntityCategory.DIAGNOSTIC. My understanding is with this sensor category statistic won't be collected, and therefore prevent user from adding the entities to the Energy dashboard or create a statistic graph card. (Would be good to have a power summation entity as well)

Screenshot 2024-05-05 at 00 28 22

What version of Home Assistant Core has the issue?

core-2024.5.1

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

Unifi

Link to integration documentation on our website

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

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 week ago

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

Code owner commands Code owners of `unifi` 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 unifi` 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)


unifi documentation unifi source (message by IssueLinks)