Open konstantinwall opened 1 year ago
This is strange. The counters are read directly from the device. My inverter resets them every day. Probably at night when the device goes offline. Did you try to update the firmware? Maybe there is a bug in your current installed firmware.
If it doesn't help I could add an option calculate the daily values internally.
The counters in the device are normally reset by a remote server (which IP address can be seen or changed to a local address in the http://192.xxx.xxx.xxx/config_hide.html menu of the inverter). This seems to be done after a handshake, since the inverter sends recurring messages to this ip address (containing: serial number, wifi ssid, signal strength, logger firmware version and some more information that i could not decode so far). To prevent, that the inverter sends this information to the servers in china, I did block internet access from this device in my router (Fritzbox). Since that day the daily counter keeps adding up in my device (as can bee seen on the http://192.xxx.xxx.xxx/index_cn.html). Which supports my assumption that the server sends the reset command. Browsing through your source code briefly, I saw something with “reset” and assumed that your code is able to do this (reset the inverter register value) without the server. The inverter's logger is updated to the latest firmware: MW3_16U_5406_1.57.
I think the bahaviour of adding up counters ca be reproduced by blocking off internet access for the devices.
For my use-case the option to calculate the values internally would be awesome!
If you are interested to see what the inverter is sending to the remote server, you can change the remote ip on the config_hide.html page to your node-red server and then use a TCP listener to inspect the packets. I was hoping to get the output and counter information from these packets (inspired by: https://community.home-assistant.io/t/getting-data-from-solis-inverter/302189/13 and https://flows.nodered.org/flow/bf4e518f48eca5922ea3274680ac8692). Unfortunately the Deye Sun600 does not share this information without the handshake with the server in china.
Please let me know If I should provide some debug information or test something.
Cheers
Thank you for the great node!!!
Is there a way to reset the three daily counters (counters.totalEnergyToday, counters.pv1TotalEnergyToday, counters.pv2TotalEnergyToday) using this node? In my Setup (no access to Solarman Cloud) the counters keep adding up an never reset.
Kind regards