Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ilmantu opened this issue Aug 24, 2024 · 0 comments
Open

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

ilmantu opened this issue Aug 24, 2024 · 0 comments

Comments

@ilmantu
Copy link

ilmantu commented Aug 24, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant