Home Assistant : Q&A, Tips & Tricks, Your Configs

I just created utility meter for each device I want to add to the energy dashboard
I was lucky enough to already have utility meters set up for my other dashboards; so literally just used those as inputs to the energy dashboard and voila. It was a lot simpler than I thought it would be; took all of 2 mins to set up. Now I’ll use the linked energy card on my main dashboard to clean the graphs up a little
 
I was lucky enough to already have utility meters set up for my other dashboards; so literally just used those as inputs to the energy dashboard and voila. It was a lot simpler than I thought it would be; took all of 2 mins to set up. Now I’ll use the linked energy card on my main dashboard to clean the graphs up a little
I should admit I also had most ready. Only the individual sensors that I was lazy and didn't have all of them. Wish I had a way to easier template this out each time I add a new power sensor.
 
Sharing this here, as I thought it was a nice find to show a device which has multiple sensors/entities....

20797e3e4b6e108debf7094f642300447dc97410.png

Currently using the same way as the example for my docker images.
 
So a question. upgraded to 2021.8.3 to use Energy bits . I only had grid power but was expecting my efergy connected to DB to show up as total consumption etc has been tracked in inside HA since I started.

However, it appears it has not been configured to support long term statistics or something so I can't choose it.

1628321023290.png

Unsure if any of you are still using Efergy but is there a way around it. This is my config inside configuration.yaml

1628322097564.png
 
Last edited:
So a question. upgraded to 2021.8.3 to use Energy bits . I only had grid power but was expecting my efergy connected to DB to show up as total consumption etc has been tracked in inside HA since I started.

However, it appears it has not been configured to support long term statistics or something so I can't choose it.

View attachment 1122100

Unsure if any of you are still using Efergy but is there a way around it. This is my config inside configuration.yaml

View attachment 1122108
I updated the morning too. HA didn't immediately recognise my efergy, CBI Astute or Sonoff POW. Haven't tried to troubleshoot though
 
So a question. upgraded to 2021.8.3 to use Energy bits . I only had grid power but was expecting my efergy connected to DB to show up as total consumption etc has been tracked in inside HA since I started.

However, it appears it has not been configured to support long term statistics or something so I can't choose it.

View attachment 1122100

Unsure if any of you are still using Efergy but is there a way around it. This is my config inside configuration.yaml

View attachment 1122108
I got it working by pulling the efergy sensors into the Utility Meter. The graphs look pretty but they don't match on what the Efergy dashboard says. I'm just going to wait until its feature has had a few more updates. I expect a lot of breaking changes coming.
 
So a question. upgraded to 2021.8.3 to use Energy bits . I only had grid power but was expecting my efergy connected to DB to show up as total consumption etc has been tracked in inside HA since I started.

However, it appears it has not been configured to support long term statistics or something so I can't choose it.

View attachment 1122100

Unsure if any of you are still using Efergy but is there a way around it. This is my config inside configuration.yaml

View attachment 1122108
I added this under sensor:
sensor:
- platform: efergy
app_token: ""
utc_offset: -120
monitored_variables:
- type: instant_readings
- type: budget
- type: cost
period: day
currency: R
- type: amount
period: day
- type: current_values
- platform: integration
source: sensor.energy_consumed
name: "Energy Consumption"

then this:
utility_meter:
daily_energy:
source: sensor.energy_consumed
cycle: daily

This brings up the sensor under the energy tab. Strangely it is not a 100% match. Maybe someone more clever can point out the issue with the source code.
 
I added this under sensor:
sensor:
- platform: efergy
app_token: ""
utc_offset: -120
monitored_variables:
- type: instant_readings
- type: budget
- type: cost
period: day
currency: R
- type: amount
period: day
- type: current_values
- platform: integration
source: sensor.energy_consumed
name: "Energy Consumption"

then this:
utility_meter:
daily_energy:
source: sensor.energy_consumed
cycle: daily

This brings up the sensor under the energy tab. Strangely it is not a 100% match. Maybe someone more clever can point out the issue with the source code.
Thanks, will give that a shot.

Have a question. Why is your UTC offset -120. Shouldn't it be +120 as we are GMT+ 2?

Have to be honest , haven't actually paid to the daily consumption in HA Vs what efergy tells me, but I just checked mines now and maybe mines is wrong.

Efergy says I am 20kw for day but HA says it's 18kw.

Cheers
 
Thanks, will give that a shot.

Have a question. Why is your UTC offset -120. Shouldn't it be +120 as we are GMT+ 2?

Have to be honest , haven't actually paid to the daily consumption in HA Vs what efergy tells me, but I just checked mines now and maybe mines is wrong.

Efergy says I am 20kw for day but HA says it's 18kw.

Cheers
Maybe because efergy updates in real-time but HA only updates every hour. At least, I suspect that’s what’s happening. If I look at my dash during the day, the HA side lags the real-time one off my inverter. But if I go look at the end of day data, the results are the same.
 
Just eWelink.

Then the answer is no work around for that situation.

With other more advanced platforms many different ways to skin that cat.

Being this thread one would assume you are running Home Assistant in which case you could do it with that if the Sonoff integration works to turn it on and off, I haven’t followed that.

Alternatively Alexa could likely take over a routine for this, also not 100% sure but it’s likely a bit more clever than EWeLink.
 
I added this under sensor:
sensor:
- platform: efergy
app_token: ""
utc_offset: -120
monitored_variables:
- type: instant_readings
- type: budget
- type: cost
period: day
currency: R
- type: amount
period: day
- type: current_values
- platform: integration
source: sensor.energy_consumed
name: "Energy Consumption"

then this:
utility_meter:
daily_energy:
source: sensor.energy_consumed
cycle: daily

This brings up the sensor under the energy tab. Strangely it is not a 100% match. Maybe someone more clever can point out the issue with the source code.

Do you have an option to reference total_consumed instead? I know with Tasmota that solved this problem for me.

Utility meter then works out the necessary.
 
Thanks, will give that a shot.

Have a question. Why is your UTC offset -120. Shouldn't it be +120 as we are GMT+ 2?

Have to be honest , haven't actually paid to the daily consumption in HA Vs what efergy tells me, but I just checked mines now and maybe mines is wrong.

Efergy says I am 20kw for day but HA says it's 18kw.

Cheers

Good question about UTC. I can't remember why I set it up like that. Will have to google it.
 
Do you have an option to reference total_consumed instead? I know with Tasmota that solved this problem for me.

Utility meter then works out the necessary.

This is a higher grade question that I can't answer. I'm still figuring it out as I go.
 
This is a higher grade question that I can't answer. I'm still figuring it out as I go.

Well it might not be that exact value but I just one where the sensor provides the total consumed.

HA and utility would then just work out the difference over time.
 
I got a 12V battery charger and a 12v 17Ah battery for some backup power. Made a voltmeter using an ESP board and got it running in HA but only using voltages.
1628612688302.png

Any idea of how I can convert this to a percentage range? I have no idea what percentage will correspond to what voltage.
 

Thanks. Now how to I get that into HA? I was thinking a gauge like how I currently have it but with the percentages

1628663718505.png

For eg.
The green area must be when its charging. I think the charging voltage is always above 13V
The orange must be when discharging (between 100% and 50% DoD) and
The is the no go area below 50%.
 
Thanks. Now how to I get that into HA? I was thinking a gauge like how I currently have it but with the percentages

View attachment 1124118

For eg.
The green area must be when its charging. I think the charging voltage is always above 13V
The orange must be when discharging (between 100% and 50% DoD) and
The is the no go area below 50%.
Create a template sensor that converts the voltage to %. Then base your gauge on the template sensor instead.
 
Top
Sign up to the MyBroadband newsletter
X