MatterVN / ModbusTCP2MQTT

Sungrow & SMA Solar Inverter addon for Home Assistant using mobusTCP
MIT License
68 stars 50 forks source link

Sleeping until next scan loop #16

Closed bdog720 closed 1 year ago

bdog720 commented 2 years ago

I've been running into an issue (generally overnight) where the script fails to communicate with the inverter and displays the below message and then never seems to be able to reconnect. The only way I've been able to fix this is to restart the add-on

WARNING:root:Failed to scrape inverter, sleeping until next scan DEBUG:pymodbus.transaction:Current transaction state - TRANSACTION_COMPLETE DEBUG:pymodbus.transaction:Running transaction 1291 DEBUG:pymodbus.transaction:SEND: 0x5 0xb 0x0 0x0 0x0 0x6 0x1 0x4 0x13 0x88 0x0 0x64 DEBUG:pymodbus.client.sync:New Transaction state 'SENDING' DEBUG:pymodbus.transaction:Changing transaction state from 'SENDING' to 'WAITING FOR REPLY' DEBUG:pymodbus.transaction:Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY' DEBUG:pymodbus.transaction:RECV: DEBUG:pymodbus.framer.socket_framer:Processing: DEBUG:pymodbus.transaction:Getting transaction 1291 DEBUG:pymodbus.transaction:Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE' WARNING:root:Modbus connection failed WARNING:root:Failed to scrape inverter, sleeping until next scan

mattkerrison commented 2 years ago

I've got this issue too, anyone got a solution?

ttvt commented 1 year ago

Try the latest commit version.