The “platform: integration” allows us to take a sensor which only reports in “W” for power monitoring, to create a new sensor that can report “kWh” which allows it to be used in the Energy Usage Dashboard.
I want to define a friendly_name attribute such as “Coffee Maker” that can be displayed in the Energy Usage Dashboard, but the integration does not allow it. I want to give all of these a more useful name.
Feature request to allow the Integration integration to accept a friendly_name attribute.
Thanks for the response… I was keeping the name based on the sensor it was derived from, but I guess I can use the source attribute for that.
The negative to renaming is that it seems I have to start over with the power monitoring data. I think it would still be nice to have a friendly_name which could be changed in the front-end without loosing all the data associated with it.
Which when viewed in developer tools shows me, a friendly_name was automatically generated:
state_class: total
source: sensor.kitchen_coffee_pot_power_meter
unit_of_measurement: kWh
friendly_name: Kitchen Coffee Pot
icon: mdi:chart-histogram
device_class: energy
If I try to define my own friendly_name as such:
- platform: integration
source: sensor.kitchen_coffee_pot_power_meter
name: "Kitchen Coffee Pot"
friendly_name: "Kitchen test Coffee Pot"
unit_prefix: k
round: 3
Then do a Server Controls > Check Configuration, it’s invalid:
Is this more of a bug vs a request for something new?
@reefland - I managed to get the friendly_name changed using the customize entity method. If you use the UI, you can choose “Other” and type “friendly_name” as the attribute.