Hi @mvana, ah yes, you are correct, my apologies for the mix up
I was easily confused by HASS and I wrongly assumed you meant HACS.
HASS = Home Assistant (Native Integrations)
HACS = Home Assistant Community Store (3rd party repositories)
I’m quite novice on python code, so unfortunately I can’t help you find where the token is stored.
At the moment, I am using my own solution via the rest sensor, originally because the native integration didn’t support d7 at the time, but now mainly so I can have efficient 10 second updates instead of 60 second updates. The downside is that it is slightly more complicated to setup than the native implementation and I have to manually refresh my token once a year.
Now that the native implementation supports token authentication, I recommend my solution less than the native one for general use.
I still also use the native Enphase integration for recording sensors like “today_s_energy_production” and “today_s_energy_consumption” so I can verify my figures against what the Envoy reports and also check in on the functionality of the native implementation.
Mine is a bit more complicated as I have different costs at different times of the day but I recommend having at least an import (grid consumption) and export (return to grid) sensor as well as a production sensor.
The underlying issue I am fighting with is that I do not see the https://homeassistant.local/config/energy you have shown.
What I have related in the '“config” is http://homeassistant.local:8123/config/entities
and I can see Envoy in integrations or devices
but I didn’t find any configurable properties.
Either I do not know where to look or it isn’t there(?)
May be the time to delete this (native?) integration and install the custom one.
Thanks!
Is there anything there that looks like my screenshot?
I recommend you stick with the native integration, because none of the enphase integrations will automatically provide you with import and export sensors because the envoy doesn’t supply import and export readings. This is a gap that home assistant needs to fill using calculations.
The only exception to this statement is my own solution via the rest sensor which is not an integration, but simply a rest sensor that targets a different source of information than what the enphase integrations use.
For every enphase integration, native or hacs, the following needs to be done.
Hi @del13r , thank your for this awesome guide. Quick Question, I’m on latest everything. When I check my unit of measurement for _current_power_consumption and production, it is in kW by default.
Do I need to then change the unit_of_measurement in your template sensor to “kW”.?
If so, then do I also need to remove the unit_prefix of “k” in sensor platform?
Thanks, so that’s what I originally did.
Which is changed W to kW and left the prefix = k.
But then in the chart (graph), it would show kkW (it was adding that prefix).
So now, I just want to make sure I get correct calculus.
I can see the correct on enphase app.
Hi @del13r , Ok so I’ll let it collect for 24 hours, and then switch my energy dashboard. Hopefully, I would be able to see the perfect graph, and what I’m using myself VS what I’m exporting
I’ll revert back here with my screenshot.
Only worried if somewhere I need to divide or multiple by 1000
The long term statistics which energy dashboard uses as a data source used to be calculated at 12 mins past the hour for the previous hour which is why Energy Dashboard warns you with this message:
After setting up a new device, it can take up to 2 hours for new data to arrive in your energy dashboard.