sophienyaa / NodeRenogy

Utility to retrieve data from Renogy solar controllers and publish it to MQTT, written in NodeJS
MIT License
60 stars 13 forks source link

Add new fields, correct some #9

Closed 1n5aN1aC closed 1 year ago

1n5aN1aC commented 1 year ago

I had need of reading the charging mode from my device, (Idle, MPPT, Boost, Float, etc) so I dug into the documentation, and extended your project.

Changes:

Notes: chargingState & loadStatus were tested very well. (They were my main goal in updating this) Faultcodes does not have any decoding done, just reports the raw number for now. 4 of the new fields use multiple registers of 2 bytes each to store the values, as they are long-term incrementing registers. My device is fairly new, so I cannot properly test if my combining of multiple registers is done correctly. If anyone has had a device for long enough that those total/cumulative fields require more than 2 bytes, I would appreciate your feedback to know if I am decoding those fields correctly or not.

sophienyaa commented 1 year ago

Thank you for this! to be honest i've been very busy with life and not really looked at this in ages, so appreciate the contribution!