So i am using Domoticz (again) now for 3 days (before that trying OpenHab) and see it's maturity has grown since the last years!, very nice! so i installed it all again....and still no Modbus, M-bus, KNX, KAKU TCP-200/300 support!
I also use pymodbus to readout and switch some Modbus stuff you can read here on this page: http://domoticx.com/io-interface/
So.....after many many hours of learning and experimenting...trial and error (since python 3 is pretty new for me) about how to build a Domoticz Python plugin, i have almost finished the first Modbus plugin for Domoticz !!
I still have to make some small adjustments (de puntjes op de "i") and post it on github and wiki so we can all improve it to make it better!
For now i have implemented the SWITCH function for ON/OFF usage (READ functions need to be build but that should be easy, any help is welcome)
Hardware used: USB RS485 to Serial stick: http://domoticx.nl/webwinkel/index.php? ... uct_id=386
Hardware tested: Relais module 12V, 4x250V/10A NO/NC Modbus RS485: http://domoticx.com/modbus-relaisbord/
if you wanna buy : https://domoticx.nl/webwinkel//index.ph ... ct_id=1868
I'll try to release the plugin this week!
Here is a sneek peek: Logs:
Code: Select all
2018-01-07 20:41:55.300 (TEST) onCommand called for Unit 1: Parameter 'Off', Level: 0 2018-01-07 20:41:55.300 (TEST) MODBUS DEBUG HW - Port=/dev/ttyUSB0 BaudRate=9600 StopBits=1 ByteSize=8 Parity=N 2018-01-07 20:41:55.300 (TEST) MODBUS DEBUG CMD - Address=1 Register=4 Function=6 PayLoadON=0x0100 PayLoadOFF=0x0200