britkat1980 / giv_tcp

TCP connection (from inverter) and MQTT implementation
78 stars 37 forks source link

"Inverter Timeout" in GivEnergy portal when running GivTCP with HA. #170

Open roddypratt opened 6 months ago

roddypratt commented 6 months ago

I've got HA and GivTCP running on a RPi. When manually updating inverter settings from the GE portal, I frequently get a "Inverter Timeout" message displayed. This happens much less frequently if the HA machine is disconnected. (Gen 2 Hybrid inverter, LAN connection)

b8FAXGZM4I

I think the underlying cause is internal to the inverter, but wondering if you've investigated this at all, or looked at ways to mitigate? (The problem also happens occasionally if you're using 'home' mode in the GE Android app, so certainly not GivTCP-specific)

If it's any help, I've written a WireShark protocol dissector for the GivEnergy MODBUS variant. It handles basic packet decoding, but doesn't interpret registers yet. https://github.com/roddypratt/GivEnergy

There's also a couple of WireShark captures there showing traffic for failed and successful settings updates.

gcoan commented 6 months ago

What frequency have you got your GivTCP polling the inverters (the 'self run loop timer')?

If you set it to too low a value (i.e. too frequently) then the inverter will be busy responding to the Home Assistant GivTCP requests and may not be able to respond to commands entered in the portal/app.

If you are not actively using GivTCP for managing your inverters you can drop the frequency down.

I have mine set to 20 seconds.