wimb0 / home-assistant-saj-r5-modbus

Home Assistant Component for reading data locally from SAJ R5 (and Zonneplan One) Inverters through modbus TCP.
MIT License
32 stars 14 forks source link

Improve Energy dashboard compatability #46

Closed wimb0 closed 3 years ago

wimb0 commented 3 years ago

I've been playing with the new Energy dashboard in Home Assistant 2021.8 and integration v1.5.0. Apparently for the Solar production sensor to work, a new sensor which outputs kWh instead of W is needed. It's not possible to select a live production value at the moment. Will add a new sensor to fix this. Other ideas welcome!

image

fsaris commented 3 years ago

The Total power generation works for me. It's in kWh

fsaris commented 3 years ago

Is the sensor active? Looks like it's disabled in your screenshot.

IMG_20210808_130012 Here it's correctly selectable

Named the integration zonneplan so the selected one is the one from the SAJ modbus

wimb0 commented 3 years ago

Yes, the sensor is active, but my Energy dashboard is weird. image

The Total power generation is the total of what the Inverter has generated over its lifetime. Maybe I'm wrong, but isn't the Energy dashboard based on live usage and production values?

My idea was to have high/low tariff values (From DSMR Reader via MQTT) as usage and Active power of inverter total output as production.

fsaris commented 3 years ago

Here the info you should see in the developers tool

Screenshot_2021-08-08-13-09-53-120_com android chrome

wimb0 commented 3 years ago

I guess I misunderstood how the Energy dashboard works, documentation is not really helpful. I think you also have the meter totals as usage values?

wimb0 commented 3 years ago

image

Think I've got it working. Thanks @fsaris for the replies, they sent me in the right way.

I'll close this issue, as does not seem to be needed.

(The value for Solar seems to be incorrect in the image, but the totals are correct. Must be an error in the Energy dashboard)