hn / ginlong-solis

Solis inverter ESP8266 data logger, S3 WiFi stick reverse engineering and ESPhome firmware
90 stars 16 forks source link

High values for Active Power #26

Closed ErwinP closed 8 months ago

ErwinP commented 8 months ago

Hi,

I have an Solis RHI-5K-48ES-5G, and I'm using a wifi stick flashed with the latest firmware (as discussed here), and I'm having these strange values for "Active Power": image.

I can try to templatize this to remove these peaks, but was wondering if anyone else has seen this as well?

Thanks, Erwin

hn commented 8 months ago

I do not have access to an ESINV inverter, so the yaml was written without any testing (likely I just copied it from the INV yaml).

From the spec one can see that register 33079 "Active Power" is a S32 value.

You might want to change

    name: Active Power
    device_class: power
    state_class: measurement
    unit_of_measurement: W
    register_type: read
    address: 33079
    value_type: U_DWORD

to an S_DWORD (docs here). Negative values with the high bits set might produce high values if casted to uint.

ErwinP commented 8 months ago

Hi, Sorry for my delayed response, it took some time before I could apply the update and after that, I wanted to take some time to monitor the effect. But I can confirm that 36f63b9 fixes the issue!

Thank you!