Hi,
I have a ventilation and heating solution that I succeeded to connect to the Pi (modbus protocol over RS485 converter). I am not asking to interface directly the system with Domoticz but I am able to write a python script to read information (temperature and so on) and write information (change some parameters).
How to update Domoticz?
On the read side, it is pretty easy as I can use JSON to update some dummy temperature monitor.
But on the write side? how can I make call to my python script from domoticz?
Interfacing with a system through Python
Moderator: leecollings
- gizmocuz
- Posts: 2481
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: Interfacing with a system through Python
you mean, with your python script you are able to read the ventilation/heating system,
and you want to get these values into domoticz?
If yes, search the forum!
If not, you want to get values from domoticz and use this to control your ventilation and heating system?
If yes, you can use lua for this, also search the forum
and you want to get these values into domoticz?
If yes, search the forum!
If not, you want to get values from domoticz and use this to control your ventilation and heating system?
If yes, you can use lua for this, also search the forum

Quality outlives Quantity!
-
- Posts: 133
- Joined: Tuesday 04 February 2014 21:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Isère, France
- Contact:
Re: Interfacing with a system through Python
Yes, it was that part that was not known to megizmocuz wrote:values from domoticz and use this to control your ventilation and heating system?
Now, I know how to dot it: Lua... thanksIf yes, you can use lua for this, also search the forum

-
- Posts: 67
- Joined: Sunday 22 March 2015 16:18
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Interfacing with a system through Python
How did you succeed? I am very interested.darrepac wrote:Hi,
I have a ventilation and heating solution that I succeeded to connect to the Pi (modbus protocol over RS485 converter.
Domoticz| Zigbee | SONOFF
-
- Posts: 133
- Joined: Tuesday 04 February 2014 21:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Isère, France
- Contact:
Re: Interfacing with a system through Python
It heavily depends on your heating/ ventilation system. I have a Nilan system which has a RS485/Modbus interface...
-
- Posts: 21
- Joined: Wednesday 29 January 2014 22:42
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Interfacing with a system through Python
Hello,darrepac wrote:It heavily depends on your heating/ ventilation system. I have a Nilan system which has a RS485/Modbus interface...
Did you manage to read the values through Modbus (Lua?) and update Domoticz? Can you please share your code. I'm trying to read my heatpump and think you code kan be useful.
Regards
-
- Posts: 133
- Joined: Tuesday 04 February 2014 21:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Isère, France
- Contact:
Re: Interfacing with a system through Python
I am not reading the value with Lua but with python (with minimal modbus library). The script in python is also taking care of updating Domoticz
-
- Posts: 21
- Joined: Wednesday 29 January 2014 22:42
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Interfacing with a system through Python
Ok, can you please share your python code.
Who is online
Users browsing this forum: No registered users and 1 guest