When selecting TCP Server I can select either “ModbusTCP” or “NONE” as an additional parameter. I’ve chosen ModbusTCP as it looks like this will give me rtuovertcp functionality (but the manual is fuzzy here).
Naturally, the serial settings match the configuration of my sauna (baud rate, parity, stop bit). When setting up, my sauna also asked to configure an ‘address’ which defaulted to 247. I have left it at this setting, but I have not used this value anywhere.
Honestly, this is faily very early. This is in my log:
2023-01-16 17:54:04.413 ERROR (SyncWorker_7) [homeassistant.components.modbus.modbus] Pymodbus: sauna: Modbus Error: [Input/Output] Modbus Error: [Invalid Message] No response received, expected at least 2 bytes (0 received)
2023-01-16 17:54:04.569 DEBUG (SyncWorker_2) [pymodbus.client.sync] Connection to Modbus server established. Socket ('192.168.1.191', 51497)
2023-01-16 17:54:04.573 DEBUG (SyncWorker_2) [pymodbus.client.sync] New Transaction state 'SENDING'
2023-01-16 17:54:07.576 DEBUG (SyncWorker_2) [homeassistant.components.modbus.modbus] Pymodbus: sauna: Modbus Error: [Input/Output] No Response received from the remote unit/Unable to decode response
Question
I’d love any help I can get. How can I get this to work?
Also, I would love tips on how to debug this and for instance create a manual modbus connection to try things out (I’m on a Mac).
Hi @bastiaanterhorst - did you get this working and if so would you mind sharing how?
If not, did you happen to test with a different modbus-to-ethernet adapter?
@bastiaanterhorst does it work without any flaws? I tried it similarly, but one out of 10 modbus refreshs is getting errors, no idea why. But I’m also using another hardware, maybe this is the problem…
It is working well for me, yes. However, I have notices that hardware does matter. I have two modbus devices, connected to different modbus → wifi adapters, and one gives intermittent issues, while the other is rock solid… It could be either the adapter, or the modbus device itself.
And yes of course I’d be willing to help! I’m relatively comfortable with Python too, so might be able to help with some small bits here and there as well. Let me know if/what you need.