Nick24
April 27, 2023, 5:33am
1
is that possible to reset entities attributes back to default value so that I can re-use the entities name back? The reason I want to do this because I have one utility meter behave strangely as no “unit_of_measurement” assign to it but if I create a new one with different name then the unit will come back. Or is that any other manual method to add back the “unit of measurement”?
I been try below method
Reset values of utility_meter - #76 by whoismoses
not working
manually delete the entities, restart HA, add back the entities with same name but previous value come back.
Energy dashboard displays "No statistics" despite working utility meters - #2 by Oliv
I use HA addon SQLlite to manually add the “kWh” but didnt show up in entities as well.
I use the developer states to set as below
this only work temporary, once restart HA, kWh unit will missing again from the entities.
1 Like
anyone have a fix for this?
Not quite:
homeassistant:
customize:
sensor.tasmota_zaehler_leistung:
unit_of_measurement: "W"
device_class: power
state_class: measurement
sensor.tasmota_zaehler_einspeisung:
unit_of_measurement: "kWh"
device_class: energy
state_class: total_increasing
sensor.tasmota_zaehler_verbrauch:
unit_of_measurement: "kWh"
device_class: energy
state_class: total_increasing
above solution solved my problem !
just need to customize the entities for add in the “unit of measurement” & “device class”
homeassistant:
customize:
sensor.current_kwh_month:
unit_of_measurement: "kWh"
device_class: energy
4 Likes
Hi! Same problem here, do you have any solution without customize since that?
so far “customize” method work great. I can’t find any other method at the moment
When customization is done and works, do we need to remove the yaml line in the config file ?
Or should the customize: lines stay ?
Thanks.
Nick24
August 1, 2023, 9:05am
7
didn’t notice your message, just remain extra line there, so far working fine.