bramstroker / homeassistant-powercalc

Custom component to calculate estimated power consumption of lights and other appliances
MIT License
896 stars 250 forks source link

"All standby power" / energy entities do not link back to Powercalc integration #2318

Closed igorsantos07 closed 1 week ago

igorsantos07 commented 1 week ago

System Health details

I'm skipping some mandatory boxes as these are probably unrelated to this minor issue

Checklist

Describe the issue

I'm creating a panel to better monitor live energy usage, and I saw an entity I didn't recognize: "all standby power". My usual trick is to open its details popup and go to "Related", but the only thing showing there was the generic "[[Groups]]" area I usually use for those things.

I thought it was probably from here, but found nothing on: DevTools, the docs, issue board... I even searched for "standby" in the translation files. Nothing mentioned the all_standby_power entity (as searching for "standby power" was way too generic). There's no specific "integration entry" for that on my Powercalc list either, but...

Reproduction steps

...I overlooked the "entities" button on the integration sidebar. I solved the issue by filtering the /config/entities list, that one showed the entity as pertaining to Powercalc.

Thus, while I see this as a definitely low priority issue, I wonder why other Powercalc entities list the integration in their "related" page, but "All standby power/energy" don't:

image image

Maybe some param for that entity is missing? Or is that because it's not related to a device, and maybe it could be a "bug" on HA itself for not allowing a strand entity to link to an Integration?

Debug logs

also skipped

Diagnostics dump or YAML config

No response

bramstroker commented 1 week ago

@igorsantos07 This is a sensor powercalc adds by default. It's a sum of all the known standby power of the devices powercalc tracks. i.e. the power when the device is off.

It's correct they don't have a corresponding integration entry, as these are only necessary for sensor setup with a GUI configuration flow.

There is no option currently to disable creation of this entity. But when you'd like to "remove" it from your system you can just disable it in the entity list.

igorsantos07 commented 6 days ago

I wasn't looking for a way to remove them, just identify where they come from - isn't it possible to link them to the integration, so Powercalc shows up in the "Related" box?

bramstroker commented 4 days ago

No, I can't "link" them to related, as they don't have a corresponding GUI configuration flow (integration entry). Similarly as all entities created with YAML configuration don't have a integration entry.