Closed OmgImAlexis closed 3 years ago
I'm guessing maybe I'm meant to use the _energy_price
instead? Issue with that is it throws an error when adding it.
The following entities do not have the expected units of measurement 'AUD/kWh' or 'AUD/Wh':
Correct - that _energy_price sensor is specifically for the Energy dashboard.
HASS expects $/kWh, Amber works in c/kWh.
This is a documentation issue - I'll make a note of it when I do the docs for the mainline component.
I'm confused, adding the _price gives me the wrong value and adding _energy_price gives me an error and doesn't work.
Which one am I meant to pick? 😕
These are the sensors I have:
For Grid consumption:
For return to grid:
What error are you getting?
Are you on the latest version of Home Assistant? 2021.9.4
?
No - 2021.8.3
. I'll update now and see what happens.
If that is the case, that is annoying. They explicitly called it the units out to be AUD.
Where are you getting that error? I just upgraded and I don't see the error anywhere?
Remove the energy consumption and re-add it. It shows on the energy settings page.
Fixed. I think - my Eagle decided to drop its connection with my meter, so I can't re-add it right now, but that error about the units is gone.
(Yeah, it's fixed)
I noticed my energy dashboard was showing the wrong price and dug into this a little. Should this not be
0.33
as the value instead of33.0
?I believe this section is responsible. https://github.com/madpilot/hass-amber-electric/blob/11d5352a6602ba454f4e7fcf61cea959fc91dbb9/custom_components/amberelectric/sensor.py#L131-L136