RFLink - USB Gateway - Introduction

433Mhz opensource Receiver & Transmitter.

Moderators: leecollings, Stuntteam

Backbone
Posts: 46
Joined: Thursday 22 October 2015 21:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: The Netherlands
Contact:

Re: RFLink - USB Gateway - Introduction

Post by Backbone »

Hello Stuntteam,

OK, got the RF-link to work and all button presses from the two remotes are recorded and they are now nicely added in the Devices section.
K1.JPG
K1.JPG (81.12 KiB) Viewed 6900 times
Can I use a custom message to perform an action to switch ON/OFF with the socket?
Which code and where to place?
Am I on the rigth track?
k2.JPG
k2.JPG (116.57 KiB) Viewed 6900 times
If I make a .lua script for the switching which code do I have to use so the RF-link transmits them?
Will the

Code: Select all

-- script to check a temperature and swicth on/off a 433 switch
commandArray = {}
if (devicechanged['CV aanvoer_Temperature']) then
temp = tonumber(devicechanged['CV aanvoer_Temperature'])

 if (temp >= 25.0) then
   commandArray['000FBE63,	0']='on'
   commandArray['CV aan/uit']='on'
   print ('vloerpomp aan')
 end

 if (temp <= 23.0 ) then
   commandArray['000FBE63,	0']='off'
   commandArray['CV aan/uit']='off'
   print ('vloerpomp uit')
 end
 
end
return commandArray
Your guidance would be appriciated as I could not google anywhere the info.

Paco
User avatar
Stuntteam
Posts: 399
Joined: Wednesday 06 May 2015 16:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: RFLink - USB Gateway - Introduction

Post by Stuntteam »

Hm.. isnt that what the event system is used for?
There you can use components / building blocks to create an event (gebeurtenis)
Like for example: if sensor "outside" is above 20 degrees turn switch airco on
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic RFLink Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8
Backbone
Posts: 46
Joined: Thursday 22 October 2015 21:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: The Netherlands
Contact:

Re: RFLink - USB Gateway - Introduction

Post by Backbone »

Stuntteam,

If you are refering to Blocky inside DMZ this does not work for temps actions.
I already found out that blocky does not support this thermostat compare function todo an action so I have to revert back to scripts which is no problem as long as I know which code to implement and use.

viewtopic.php?f=6&t=4347&start=20

Paco
User avatar
Stuntteam
Posts: 399
Joined: Wednesday 06 May 2015 16:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: RFLink - USB Gateway - Introduction

Post by Stuntteam »

You might want to check:
http://www.domoticz.com/forum/viewtopic.php?f=15&t=7799
It seems it was initially not working in Blocky but that should have been fixed recently.

In Lua, I figure you need to change the "switch" as Domoticz knows it.
So if you have for example a KAKU switch added to Domoticz as "Heater 1".. then you would change the state of "Heater 1".
If you would send a command directly to rflink the state of "Heater 1" would probably not be updated.

To know how commands are send to rflink, simply change the state of one of your switches and check the logfile..
It will show the command that was send.
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic RFLink Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8
voorstad
Posts: 9
Joined: Saturday 14 November 2015 15:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: RFLink - USB Gateway - Introduction

Post by voorstad »

Hi. Just received my RFLink and it seems to work with my Raspberry PI and KaKu APA3-1500R wallplugs. Great job.

I have a Friedland Libra+ 868Mhz doorbell (http://www.friedland.eu/fileadmin/produ ... /d912s.pdf) If that could be added to the RFLink, it would be even better!

Stuntteam / Nodo, thanks for the good work!
Ierlandfan
Posts: 89
Joined: Friday 09 October 2015 17:40
Target OS: Linux
Domoticz version:
Contact:

Re: RFLink - USB Gateway - Introduction

Post by Ierlandfan »

Do I need an extra module (board/transceiver) for 443 AND 868 mhz devices? Or do I need 2 Rflink devices with 2 different transceivers?
supertrekker
Posts: 1
Joined: Monday 16 November 2015 14:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: RFLink - USB Gateway - Introduction

Post by supertrekker »

Hi,

Which ports do I use on Mega and ESP8266 to connect them together.

Henk. :D
locogek
Posts: 28
Joined: Thursday 15 October 2015 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: RFLink - USB Gateway - Introduction

Post by locogek »

Supertrekker look at his website that he put on the first post of this forum!

Verstuurd vanaf mijn ONE A2003 met Tapatalk
locogek
Posts: 28
Joined: Thursday 15 October 2015 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: RFLink - USB Gateway - Introduction

Post by locogek »

Is it so hard to just type in the right thing in google? I found it in less than 20 seconds.
Here you go: http://www.nemcon.nl/blog2/2015/07/aa
User avatar
Stuntteam
Posts: 399
Joined: Wednesday 06 May 2015 16:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: RFLink - USB Gateway - Introduction

Post by Stuntteam »

Controlling RFLink via an ESP8266 is still experimental..
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic RFLink Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8
locogek
Posts: 28
Joined: Thursday 15 October 2015 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: RFLink - USB Gateway - Introduction

Post by locogek »

Oh sorry you want to connect the ESP8266. Stupid read over it. As said that is experimental.

Verstuurd vanaf mijn ONE A2003 met Tapatalk
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: RFLink - USB Gateway - Introduction

Post by Raspberry Piet »

You might want to read those posts about RFLink/ESP8266 with Ser2Net:
http://www.domoticz.com/forum/viewtopic.php?f=49&t=8797
http://www.esp8266.nu/forum/viewtopic.php?f=6&t=242

Connect your ESP8266 RX/TX to Arduino Mega RX0/TX0 (via level convertor)
Toulon7559
Posts: 849
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

Re: RFLink - USB Gateway - Introduction

Post by Toulon7559 »

@Stuntteam

If both RFXCom and RFLinkGateway would be connected to Domoticz@Raspberry, at which /dev/ttyUSBx must RFLinkGateway then be set (to avoid conflicts)?
Is Domoticz - under Hardware Dashboard- atuomatically offering that setting? Or is 'manual work' required?
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.
SweetPants

Re: RFLink - USB Gateway - Introduction

Post by SweetPants »

Toulon7559 wrote:Is Domoticz - under Hardware Dashboard- atuomatically offering that setting? Or is 'manual work' required?
It can work, but you have to make your TTY ports persistent. Google for TTYUSB persistent or https://www.domoticz.com/wiki/PersistentUSBDevices
alexsh1
Posts: 169
Joined: Wednesday 30 September 2015 11:50
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8975
Location: United Kingdom
Contact:

Re: RFLink - USB Gateway - Introduction

Post by alexsh1 »

Do you plan to support "lightwaveRF" please and when if yes?
I think that the gateway is more designed to support the Dutch products and personally I'll be postponing building it until there is a support for some of my existing devices (like lightwaveRF).
User avatar
Stuntteam
Posts: 399
Joined: Wednesday 06 May 2015 16:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: RFLink - USB Gateway - Introduction

Post by Stuntteam »

If all goes well, next release should have support for lightwave rf..
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic RFLink Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8
ThinkPad
Posts: 890
Joined: Tuesday 30 September 2014 8:49
Target OS: Linux
Domoticz version: beta
Location: The Netherlands
Contact:

Re: RFLink - USB Gateway - Introduction

Post by ThinkPad »

It is not as easy as you suppose (when is it implemented) i guess....
The developer needs people to test it, and submit him logfiles of new devices.

So if you are really interested, i would say; build one and see if you can provide the author with some logfiles of your devices.
Or send some of your devices to the author so he can implement them and send you the devices back.

Edit: I see you're lucky and support for lightwaveRF is already coming.
I am not active on this forum anymore.
alexsh1
Posts: 169
Joined: Wednesday 30 September 2015 11:50
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8975
Location: United Kingdom
Contact:

Re: RFLink - USB Gateway - Introduction

Post by alexsh1 »

Stuntteam wrote:If all goes well, next release should have support for lightwave rf..
Super - thanks
IDANIT
Posts: 73
Joined: Saturday 07 November 2015 10:01
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Poland
Contact:

Re: RFLink - USB Gateway - Introduction

Post by IDANIT »

Stuntteam wrote:Support for 2.4 GHz is also planned.

Image

Roadmap:
- Add as many 433 Mhz devices as we can find
- Add support for 2.4 GHz communication
- Extend 868 Mhz support
- Get the RFlink Gateway supported by multiple platforms

Stuntteam
any progres with 2.4GHz?
Boots33
Posts: 12
Joined: Sunday 13 December 2015 6:41
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: RFLink - USB Gateway - Introduction

Post by Boots33 »

That seems to be all ok. mine shows this after i power cycled mine (mine is on synology nas)

2016-01-26 20:32:53.634 Error: Serial Port closed!... Error: End of file
2016-01-26 20:32:53.724 RFLink: serial retrying in 30 seconds...
2016-01-26 20:33:24.272 Error: RFLink: Error opening serial port!
2016-01-26 20:33:24.477 RFLink: serial retrying in 30 seconds...
2016-01-26 20:33:55.009 RFLink: Using serial port: /dev/ttyACM0

If i operate my watts clever remote I can see the green tx light flash on the mega every time i push a button.
It would appear your software side is running but not receiving . Maybe check the receiver section again
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest