Hi,
I normally find a way after many tries to get things right. But being new to Home Assistant I have failed to get the energy part working. I monitor my energy consumption with a 1-wire counter - a flash sensor on the meter box - one flash per Wh. (ie 1000/kWh). I access the counter value through a 1-wire integration that works fine - the counter value updates correctly. Since the counter is battery powered the value of the counter increases continuously - right now it is a about 134M.
What do I need to do to get a proper value to use in the energy dashboard? I have tried setting up ‘utility_meter’ with no success - reading (but apparently not understood) quite some documentation.
Anyone? Thanks a lot in advance! //M
Post your sensor attributes from Developer Tools / States page.
The sensor ID is:
sensor.1d_ed8a0c000000_counter_a
With attributes:
state_class: total_increasing
device_file: /1D.ED8A0C000000/counter.A
raw_value: 133401658
unit_of_measurement: count
icon: mdi:home-lightning-bolt
friendly_name: M10 - energi
OK. For the sensor to be used in the energy dashboard the unit_of_measurement
must be either kWh
or Wh
, not count
.
Also you need:
device_class: energy
Great! Thank you Tom! I put it in the customize.yaml and got the ‘device_class’ and ‘unit_of_measurement’ right. Now I will just have to wait to see when the Energy-dashboard picks it up.
Hello there,
I’m starting to use ha, I’ve 1wire bus working in my ubuntu server, now I should migrate all my sensors to ha, but I’ve problem how put the counter…
Can you help me?
I see the counter and of course it’s working but I would put them in the energy dashboard.
Thanks