I am very curious if you managed to rewrite the complete plugin for the new domoticz version.Rosomak wrote: ↑Friday 20 September 2024 17:49 Hi All,
I rewrote the script of the Read plugin and it reads the modbus RTU and modbus TCP/IP registers correctly.
I have no way to check modbus RTU over IP.
Just replace the plugin.py file in the location .../domoticz/plugins/modbus-read and restart Domoticz
I will work on the plugin for writing next week.
Dependences needed:
pip3 install -U pymodbus pymodbusTCP
pip install pyserial
P.S. I'm not able to attach file here so I left it on https://easyupload.io/fj9psi
Python plugin: Modbus RTU / ASCII / TCP/IP Topic is solved
Moderator: leecollings
- Copitano
- Posts: 50
- Joined: Friday 28 June 2019 1:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.2
- Location: NL
- Contact:
Re: Python plugin: Modbus RTU / ASCII / TCP/IP
- waltervl
- Posts: 5842
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Python plugin: Modbus RTU / ASCII / TCP/IP
It seems someone fixed the plugin for newer pymodbus modules https://github.com/DomoticX/domoticz-modbus/pull/42
Fixes allowing plugin to work with newer pymodbus version.
Some small improvements.
Tested on fresh Domoticz 2024.7 , Python 3.11.2 , pymodbus v3.6.9 with TCP modbus mode.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Who is online
Users browsing this forum: No registered users and 1 guest