I use a HA running in a VM on a Synology
I have two sets of solar panels ; the 2nd is integrated properly via the inverter however the first one has a broken API and cant integrate it easily via its inverter. So I have attached a power metering clamp on the cable directly
I have adjusted the sensor output via trial and error (I have good data on what is being generated and consumed on my grid) in configuration yaml as seen:
Though the values generated ending up in my power dashboard are quite accurate, there is an exception :
in the mornings , the first hour of the day, it generates a spike that makes no sense
You can’t just add attributes to a power sensor to make it an energy sensor. It needs to be integrated with respect to time. Feed your power sensor to this to get an energy sensor:
I had the integrator already in place, sorry i did not mention it.
So on the occasion of HACS not working after HAOS update to 2025.1, I had a look in the logs. I fixed HACS and I noticed my conversion to energy had a warning , I was using unit “W” while i had to use “Wh”. I changed this, I had multiple restarts due to 2025.1 updates and since then… it has been working excellently :