Domoticz and RS-485 connection

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

Post Reply
maciekelga
Posts: 10
Joined: Monday 04 January 2016 8:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland Gdańsk
Contact:

Domoticz and RS-485 connection

Post by maciekelga »

Hi,
I have a question to control device with Domoticz trought serial interface RS-485.

Currently I have Exta Free system in my home, is very simple system for control lightnings.
http://extafree.pl/en/

I have few modules for control lightning on/off without feedback, just send a command. Is possible to control modules trought RS-485 translator RS485/EXTA FREE RXM-0.

Is it possible to control with Domoticz by sending information.
I` dlike to control lights by Domoticz use my Exta Free system. When I press switch light in Domoticz, it have to be send to RS-485 translator.

Any advice?
maciekelga
Posts: 10
Joined: Monday 04 January 2016 8:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland Gdańsk
Contact:

Re: Domoticz and RS-485 connection

Post by maciekelga »

Any news?

LG G2 mini
pj-r
Posts: 140
Joined: Wednesday 17 December 2014 17:30
Target OS: Linux
Domoticz version: V3.8650
Location: Jyväskylä, Finland
Contact:

Re: Domoticz and RS-485 connection

Post by pj-r »

You have to have separate app or script what does the actual modbus call. You can call this app/script from "on action" and "off action" field in switch settings(edit switch).
LXC(x64 Ubuntu Xenial), RFXtrx433E, MySensors
Toulon7559
Posts: 843
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

Re: Domoticz and RS-485 connection

Post by Toulon7559 »

Perhaps this thread gives some ideas how to implement an RS485-interface for your application:
http://www.domoticz.com/forum/viewtopic.php?f=14&t=5808
Set1 = RPI-Zero+RFXCom433+S0PCM+Shield for BMP180/DS18B20/RS485+DDS238-1ZNs
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus
plus series of 'satellites' for dedicated interfacing, monitoring & control.
maciekelga
Posts: 10
Joined: Monday 04 January 2016 8:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland Gdańsk
Contact:

Re: Domoticz and RS-485 connection

Post by maciekelga »

pj-r Do You have any example?
I was also thinking to use Arduino and mysensor gateway connected via usb to domoticz.
maciekelga
Posts: 10
Joined: Monday 04 January 2016 8:54
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland Gdańsk
Contact:

Re: Domoticz and RS-485 connection

Post by maciekelga »

I`d like to write a program in Python which send a string use a MODBUS RTU as master. I will use in Domoticz script lua assigned with switch which will start python program.
For example: I press light switch, then lua script will start program in python which will start send command trough Modbus?
Is it correct way?

Anybody can write me program like that? I will Pay ofcourse..
pj-r
Posts: 140
Joined: Wednesday 17 December 2014 17:30
Target OS: Linux
Domoticz version: V3.8650
Location: Jyväskylä, Finland
Contact:

Re: Domoticz and RS-485 connection

Post by pj-r »

Take a look at https://minimalmodbus.readthedocs.io/en ... ical-usage. Just remove the read part and set correct values and you are good to try.

After first tests you can add command line arguments reading. So you can give command line parameters of where to connect and what switch and what value. http://www.tutorialspoint.com/python/py ... uments.htm

I think there is plenty of examples on internet.
LXC(x64 Ubuntu Xenial), RFXtrx433E, MySensors
kksakonstruktor
Posts: 1
Joined: Tuesday 14 August 2018 18:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz and RS-485 connection

Post by kksakonstruktor »

Hi did you connect your exta free by rs485 ?
Jeśli udało się to proszę o info jak rozwiązałeś modbus.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests