I use Modbus RTU with a USB converter.
I understood the code so no I could make it work as I wanted (Modbus write).
I also wrote a code as python plugin to make an Event-Logger (check all 10 secs for new values and save to a daily log file).
perhaps somebody is interested in.
Search found 10 matches
- Monday 05 February 2018 21:59
- Forum: Python
- Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
- Replies: 401
- Views: 135026
- Tuesday 30 January 2018 15:57
- Forum: Python
- Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
- Replies: 401
- Views: 135026
Re: [Released] Python plugin: Modbus RS485 RTU/ASCII/TCP
Hi all, I have now running since 3 days 3 different Modbus equipments in my house for thermal and energy metering as well as for my heating system. In general it works quite well (reading). However, sometimes domoticz, even if it is displaying OK when I check the status, the web interface is blocked ...
- Friday 26 January 2018 18:37
- Forum: Python
- Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
- Replies: 401
- Views: 135026
Re: [Released] Python plugin: Modbus RS485 RTU/ASCII/TCP
Hi, I found the problem: at the end of heartbeat in the try of updating the value in Domoticz I changed: Devices[1].Update(0,value) to Devices[1].Update(nValue=Devices[1].nValue, sValue=value, TimedOut=1) now it works perfectly, so again: Great work. I am not sure if the indentations were really the ...
- Friday 26 January 2018 16:57
- Forum: Python
- Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
- Replies: 401
- Views: 135026
Re: [Released] Python plugin: Modbus RS485 RTU/ASCII/TCP
I had the same message mith module pymodbus, but this was due to the double import of python3.4 and 3.5 (it stoped there ...)
concerning my problem:
if I put "pass" instead of Devices[1].Update(0, value) everything works now.
so the error MUST be in this line.
domoticz is v3.8849
concerning my problem:
if I put "pass" instead of Devices[1].Update(0, value) everything works now.
so the error MUST be in this line.
domoticz is v3.8849
- Friday 26 January 2018 16:18
- Forum: Python
- Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
- Replies: 401
- Views: 135026
Re: [Released] Python plugin: Modbus RS485 RTU/ASCII/TCP
I started debugging using the log ... the error (in my case) is: - the indentation was false in many tries and excepts - in the last "try" of "heartbeat" I still did not get it work: Devices[1].Update(0, value) Is the value to be sent really a string? or the argument 0 in update? Peter
- Friday 26 January 2018 15:12
- Forum: Python
- Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
- Replies: 401
- Views: 135026
Re: [Released] Python plugin: Modbus RS485 RTU/ASCII/TCP
I was not clear in what I wrote ...
I installed it in Python 2. with pip
and I also copied the six.py in the folder you told me ...
and everythings blocks in the Domoticz log after "onStart" (until there I get the log messages)
I installed it in Python 2. with pip
and I also copied the six.py in the folder you told me ...
and everythings blocks in the Domoticz log after "onStart" (until there I get the log messages)
- Friday 26 January 2018 11:58
- Forum: Python
- Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
- Replies: 401
- Views: 135026
Re: [Released] Python plugin: Modbus RS485 RTU/ASCII/TCP
@McMello:
I had this message too, I think you have one line 98 in plugin.py a sys.path.append of a python version that you do not have on your system (in my case it was python 3.4)
I had this message too, I think you have one line 98 in plugin.py a sys.path.append of a python version that you do not have on your system (in my case it was python 3.4)
- Friday 26 January 2018 11:44
- Forum: Python
- Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
- Replies: 401
- Views: 135026
Re: [Released] Python plugin: Modbus RS485 RTU/ASCII/TCP
Hi, I tried exactly as you described except that was too fast and did : sudo pip3 install six I think I should probably not have done that. so I uninstalled it and copied the six.py at the place you mentioned. the result is that the Domoticz webinterface does not load anymore at all. I commented ...
- Thursday 25 January 2018 20:02
- Forum: Python
- Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
- Replies: 401
- Views: 135026
Re: [Released] Python plugin: Modbus RS485 RTU/ASCII/TCP
Great. I will try tomorrow morning. Thank you !!!
- Thursday 25 January 2018 15:58
- Forum: Python
- Topic: Python plugin: Modbus RTU / ASCII / TCP/IP
- Replies: 401
- Views: 135026
Re: [Released] Python plugin: Modbus RS485 RTU/ASCII/TCP
Hello, first of all, great !!! it looks really nice ... in theory. in practice, I did not get it working ... I think I installed all as described (plugin folders, I installed pymodbus in python 3, but I get this in the log: 2018-01-25 15:38:55.416 Domoticz V3.8153 (c)2012-2017 GizMoCuz 2018-01-25 15 ...