While i’ m tryng to setup new energy feature in HA I cannot find my efergy energy power meter.
The setup is the default one… described in the HA documentation.
What else can I do?
Thanks in advance.
While i’ m tryng to setup new energy feature in HA I cannot find my efergy energy power meter.
The setup is the default one… described in the HA documentation.
What else can I do?
Thanks in advance.
I solved adding this in the config.yaml file but the measurement are completely wrong ( 50 Kwh per 2 hours ) !
homeassistant:
# Customization file
customize: !include customize.yaml
customize_glob:
sensor.efergy_*:
last_reset: '1970-01-01T00:00:00+00:00'
device_class: energy
state_class: measurement
unit_of_measurement: kWh
i’m facing the same problem.
have many devices that measure energy and can’t see any of them.
“No matching statistics found”
I think the efergy measurement is w not kW so you’re 1000 too much.
The default efergy measurement should be divided by 1000 to give the correct measurement so prob needs a template or the like to get the correct sensor for the new Energy feature.
I’ve used utility_meter to achieve this with efergy data
For efergy i got the device in list doing what i typed before…
for mqtt i added some rows to my sensors …
- platform: mqtt
name: "Tekin1 Energy Total"
state_topic: "tele/tekin1/SENSOR"
value_template: '{{ value_json["ENERGY"]["Total"] }}'
last_reset_topic: "tele/tekin1/SENSOR"
last_reset_value_template: "{{ value_json['ENERGY'].TotalStartTime }}"
qos: 1
unit_of_measurement : "kWh"
device_class: energy
state_class: measurement
I added the last 6 rows to the mqtt sensor and they appeared !
You need an entity with same details as in Marcos second post, so prob need to customise what you have
Yeah your customisation is right but the units are wrong…even though you’ve customised to say its kWh the underlying sensor is not in kWh but in W (so divide by 1000 to get what you need)
Or set the unit as Wh
, The Energy page can deal with that unit.
thanks
its working
i’m wondering why “last_reset” is needed (it doesn’t work without it)
I think it’s so the new Energy feature know when to start counting / tracking from, and so it can then reset every midnight / day.
(think that’s it anyway but might be wide of the mark)
Glad you got sorted
Hi, I set the unit to W again but know it isn’t collecting any data and the graph is empty… can you give me one example on how to set the utility_meter,please?
Many thanks.
if you set your Efergy measurement to Wh as Tom suggested that’ll work.
The customisation I have (that works) is
sensor.efergy_807018: #Efergy Energy Reading - Customised for Energy Features in 2021.8
friendly_name: Energy Consumption (Efergy)
last_reset: '1970-01-01T00:00:00+00:00'
device_class: energy
state_class: measurement
unit_of_measurement: Wh
If you don’t want to do that you can create an Utility Meter entity from the original Efergy Sensor.
Docs on how to create this are here Utility Meter - Home Assistant
The code I’m using for his is
electricity_usage_daily:
source: sensor.current_energy_usage_kwh #Efergy Sensor reporting in kWh
name: Electricity Usage Daily
cycle: daily
You can create similar sensors to “cycle” for whenever you want…daily, weekly, monthly, etc
There is a pul request waiting to be merged to fix the efergy sensors and make them work for the energy dashboard.
You will need an “Amount” type efergy sensor.
edit: Rework efergy for energy management by tkdrob · Pull Request #54210 · home-assistant/core · GitHub
I’m not getting this to work with none of my sensors. Energy, humidity, temp, light etc - they all return “no statistics found”. So I assume the rework is about this right? Or is there a fundamental step somewhere I am missing? (I have those running on custom-mini-graph cards perfectly)
been banging my head all day to get this to work. I have a Efergy sensor connected which is working fine and shows all the data. When I try add the device under the Energy setup i get “you dont have any statistics” and its not pulling through my sensors.
I changed all the state attributes to include device_class- energy
but they keep defaulting back
My config.yaml file:
homeassistant:
customize_glob:
sensor._energy:
unit_of_measurement: "kWh"
device_class: energy
state_class: measurement
last_reset: "1970-01-01T00:00:00+00:00"
sensor:
- platform: efergy
app_token: mytoken
utc_offset: 120
monitored_variables:
- type: current_values
- type: budget
- type: cost
period: day
currency: R
- type: amount
period: day
I was hoping that 2021.9 would have some changes that would assist with integrating the Efergy units but I didn’t see anything in the release notes. Has anyone tried since 2021.9 or have a standard working solution that generates accurate results?
Nop, on latest HA version Efergy still doesn’t integrates with HA Energy, even with customize_glob instructions like above.
No, it did not make it.
But you can add it from the PR to a custom component and that fixed it for me.
Once it is in the release, just remove the custom component.
Thank you, I’ll just want for it to roll up. Don’t feel like editing all my existing energy monitoring that works just to add the new graphs.