zivillian / esp32-modbus-gateway

ESP32 Modbus RTU/TCP Gateway
GNU General Public License v3.0
138 stars 58 forks source link

unable to connect esp32 modbus gateway to home-assistant #31

Open ilmantu opened 3 months ago

ilmantu commented 3 months ago

hi! anyone was able to connect the gateway to home assistant? i've tried every type of connection configuration but i get this error:

2024-08-24 17:40:45.197 DEBUG (SyncWorker_1) [pymodbus.client.sync] Connection to Modbus server established. Socket ('10.1.18.2', 44817) 2024-08-24 17:40:45.197 DEBUG (SyncWorker_1) [pymodbus.transaction] Current transaction state - TRANSACTION_COMPLETE 2024-08-24 17:40:45.197 DEBUG (SyncWorker_1) [pymodbus.transaction] Running transaction 375 2024-08-24 17:40:45.198 DEBUG (SyncWorker_1) [pymodbus.transaction] SEND: 0x8 0x4 0x0 0x0 0x0 0x1 0x31 0x53 2024-08-24 17:40:45.198 DEBUG (SyncWorker_1) [pymodbus.framer.rtu_framer] Changing state to IDLE - Last Frame End - 1724514040.259194, Current Time stamp - 1724514045.198495 2024-08-24 17:40:45.198 DEBUG (SyncWorker_1) [pymodbus.client.sync] New Transaction state 'SENDING' 2024-08-24 17:40:45.199 DEBUG (SyncWorker_1) [pymodbus.transaction] Changing transaction state from 'SENDING' to 'WAITING FOR REPLY' 2024-08-24 17:40:55.211 DEBUG (SyncWorker_1) [pymodbus.transaction] No response received, Expected 7 bytes Recieved 0 bytes !!!! 2024-08-24 17:40:55.211 DEBUG (SyncWorker_1) [pymodbus.transaction] Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY' 2024-08-24 17:40:55.211 DEBUG (SyncWorker_1) [pymodbus.transaction] RECV: 2024-08-24 17:40:55.212 DEBUG (SyncWorker_1) [pymodbus.framer.rtu_framer] Frame - [b''] not ready 2024-08-24 17:40:55.212 DEBUG (SyncWorker_1) [pymodbus.transaction] Getting transaction 8 2024-08-24 17:40:55.213 DEBUG (SyncWorker_1) [pymodbus.transaction] Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE' 2024-08-24 17:40:55.213 DEBUG (SyncWorker_1) [homeassistant.components.modbus.modbus] Pymodbus: modbus_hub: Modbus Error: [Input/Output] No Response received from the remote unit/Unable to decode response

this is my home-assistant connection

modbus: