johanmeijer / grott

Growatt inverter monitor
https://github.com/johanmeijer/grott/wiki
374 stars 103 forks source link

Strange PvSerial, how to force static PvSerial #522

Open Supered1967 opened 4 months ago

Supered1967 commented 4 months ago

Hi,

Already made an issue for this, but my inverter mostly sends a wrong PvSerial in its data. The "possible discovered PvSerial" is a bunch of strange characters. At some point in the scripts, it seems that those strange characters is translated to "XXXXXXXXXX". Is there a way in the script I can always force the PvSerial to its actually serial? CS01128882 for example?

Because of this behaviour, the GroWatt site doesn't record the data, because its doesn't know PvSerial "XXXXXXXXXX" and HA also has a device now called "XXXXXXXXXX". Sometimes the scripts actually gets the right PvSerial, so I have 2 devices now in HA.

I managed to "force" the deviceId to be always CS01128882 in the script, so the data to MQTT is always device CS01128882, and HA is now always seeing the same device. But the PvSerial is still "XXXXXXXXXX" and I want to force that also. In that way I hope HA and Growatt Site is getting the right readings.

Is there a way to force this?

Regards Ed