Skip to content

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

Open
@ilmantu

Description

@ilmantu

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:

  • name: modbus_hub
    type: rtuovertcp
    host: 10.1.18.109
    port: 502
    delay: 2
    message_wait_milliseconds: 3000
    timeout: 10
    retries: 3
    sensors:
    • name: "temperatura_ambiente_notte"
      slave: 8
      address: 0
      input_type: input
      data_type: string
      count: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions