RFLink - USB Gateway - Introduction

433Mhz opensource Receiver & Transmitter.

Moderator: Stuntteam

Backbone
Posts: 24
Joined: Thursday 22 October 2015 21:15
Target OS: Raspberry Pi
Domoticz version: 2.3530
Location: The Netherlands
Contact:

Re: RFLink - USB Gateway - Introduction

Post by Backbone » Thursday 05 November 2015 21:33

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 4475 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 4475 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: 415
Joined: Wednesday 06 May 2015 16:39
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: RFLink - USB Gateway - Introduction

Post by Stuntteam » Friday 06 November 2015 2:18

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: 24
Joined: Thursday 22 October 2015 21:15
Target OS: Raspberry Pi
Domoticz version: 2.3530
Location: The Netherlands
Contact:

Re: RFLink - USB Gateway - Introduction

Post by Backbone » Friday 06 November 2015 7:15

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: 415
Joined: Wednesday 06 May 2015 16:39
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: RFLink - USB Gateway - Introduction

Post by Stuntteam » Friday 06 November 2015 12:26

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: 10
Joined: Saturday 14 November 2015 16:41
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: RFLink - USB Gateway - Introduction

Post by voorstad » Saturday 14 November 2015 17:23

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: 71
Joined: Friday 09 October 2015 17:40
Target OS: Linux
Domoticz version:
Contact:

Re: RFLink - USB Gateway - Introduction

Post by Ierlandfan » Sunday 15 November 2015 17:19

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 15:10
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: RFLink - USB Gateway - Introduction

Post by supertrekker » Monday 16 November 2015 15:37

Hi,

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

Henk. :D

locogek
Posts: 37
Joined: Thursday 15 October 2015 19:25
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Re: RFLink - USB Gateway - Introduction

Post by locogek » Monday 16 November 2015 17:05

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

Verstuurd vanaf mijn ONE A2003 met Tapatalk

locogek
Posts: 37
Joined: Thursday 15 October 2015 19:25
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Re: RFLink - USB Gateway - Introduction

Post by locogek » Tuesday 17 November 2015 16:39

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: 415
Joined: Wednesday 06 May 2015 16:39
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: RFLink - USB Gateway - Introduction

Post by Stuntteam » Tuesday 17 November 2015 18:29

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: 37
Joined: Thursday 15 October 2015 19:25
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Re: RFLink - USB Gateway - Introduction

Post by locogek » Tuesday 17 November 2015 18:48

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: 461
Joined: Saturday 11 January 2014 17:21
Target OS: Raspberry Pi
Domoticz version: Beta
Location: NL
Contact:

Re: RFLink - USB Gateway - Introduction

Post by Raspberry Piet » Tuesday 17 November 2015 21:40

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: 428
Joined: Sunday 23 February 2014 18:56
Target OS: Raspberry Pi
Domoticz version: latest
Location: Hengelo(Ov)/NL
Contact:

Re: RFLink - USB Gateway - Introduction

Post by Toulon7559 » Sunday 22 November 2015 19:30

@Stuntteam

If both RFXCom and RFLinkGateway would be connected to [email protected], 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-B+RFXCom433+S0PCM+Linksprite-shield for BMP180/DS18B20/RS485+DDS238ZN1
Set2 = RPI-3+RFLinkGTW+ESP8266s+PWS_WS7000
Common = 2*PVLogger+PWS_TFA_Nexus+KAKUs
=> Energy & Data Management based on Time and on PV&Consumption&Meteo

SweetPants
Posts: 1751
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V3.8833
Location: The Netherlands
Contact:

Re: RFLink - USB Gateway - Introduction

Post by SweetPants » Sunday 22 November 2015 21:37

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
Ubuntu 16.04.3 LTS on Intel NUC, MySensors 2.2.0, Pro Mini 3.3 8M with RFM69, ESP8266 (SDK2.1.0), Sonoff, RFLink, RFXcom, MQTT, NodeRed

alexsh1
Posts: 251
Joined: Wednesday 30 September 2015 11:50
Target OS: Raspberry Pi
Domoticz version: 5033
Location: United Kingdom
Contact:

Re: RFLink - USB Gateway - Introduction

Post by alexsh1 » Tuesday 24 November 2015 13:56

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: 415
Joined: Wednesday 06 May 2015 16:39
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: RFLink - USB Gateway - Introduction

Post by Stuntteam » Tuesday 24 November 2015 14:44

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

User avatar
ThinkPad
Posts: 1754
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 » Tuesday 24 November 2015 15:21

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.
ThinkTheme - theme for Domoticz
My (Dutch) blog: http://thinkpad.tweakblogs.net - My Domoticz scripts: Bitbucket
I'm not (very) active anymore on this forum as i don't use Domoticz anymore.

alexsh1
Posts: 251
Joined: Wednesday 30 September 2015 11:50
Target OS: Raspberry Pi
Domoticz version: 5033
Location: United Kingdom
Contact:

Re: RFLink - USB Gateway - Introduction

Post by alexsh1 » Wednesday 25 November 2015 3:14

Stuntteam wrote:If all goes well, next release should have support for lightwave rf..
Super - thanks

IDANIT
Posts: 64
Joined: Saturday 07 November 2015 11:01
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Poland
Contact:

Re: RFLink - USB Gateway - Introduction

Post by IDANIT » Sunday 10 January 2016 11:57

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 7:41
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: RFLink - USB Gateway - Introduction

Post by Boots33 » Tuesday 26 January 2016 12:44

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