celsworth / lxp-bridge

A bridge to MQTT/InfluxDB/Postgres for communications with LuxPower inverters
MIT License
10 stars 14 forks source link

Add some handling of incorrect serials in configuration #78

Closed celsworth closed 2 years ago

celsworth commented 2 years ago

Part of #75

This is a first step, and will log warnings when we get a packet from the inverter that doesn't match the configuration datalog/serials. This should serve at least as a hint that the configuration is wrong.

There's more to do here, I've started a system to actually auto-correct it, but it needs more thought as wait_for_reply hangs and times out because its expecting a reply with the wrong serial numbers. Not really thought about how to fix this yet.