At HA (Core2026.5.4 OS17.3) pymodbus V13.11.2 Problem at read_holding_registers with device/slave param #2935
-
|
Hi, I'm new with HA and pyscript, and need help with param fof client_device_number. Is there a decoding problem?? It doesn't matter what param (slave, slave_id, dev_id device_id) is used at read_holding_registers I got parsing errors: dev_id: device_id: slave: Thank you for your help, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
First of all you should upgrade to the newest pymodbus, 3.11.2 have a number of known problems. You ask about client_device_number but that does not exist in pymodbus. And just to be clear you do NOT get passing errors in all your examples. "dev_id" do not exist as parameter, neither does "slave", please read the documentation or at the very least check the call signature. It seems your call does a timeout without an answer from the device, but without a proper debug file and sample code, I really cannot help you, probably you do not have try/except in your code. |
Beta Was this translation helpful? Give feedback.
-
|
Jan, thank you for your input. |
Beta Was this translation helpful? Give feedback.
-
|
You could also consider using the modbus integration, that might prove a lot easier in your situation. |
Beta Was this translation helpful? Give feedback.
This is the pymodbus project not the homeassistant project!
Your question do not really have anything to do with pymodbus.