Wifi RFLink

433Mhz opensource Receiver & Transmitter.

Moderators: leecollings, Stuntteam

deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Wifi RFLink

Post by deennoo »

Since last Update We can add :

RFLink Gateway with Lan Interface !!

I found a way to use it on Wifi by adding ESP8266 to RFLink using Ser2net.

Just load this sketch to your ESP8266 : https://github.com/dparnell/esp8266-ser2net, of course adjust config to your home config

Plug ESP RX to Mega RX0 ESP tx to Mega TX1, ESP Enable and VCC to 3.3v Mega pin, ESP8266 GND to Mega Gnd, and ESP reset To Mega reset PIN.
Capture2.JPG
Capture2.JPG (58.25 KiB) Viewed 22496 times
On Domoticz, create a RFLink Gateway with Lan Interface, put your ser2net server ip and port then Rock n Roll !

Capture.JPG
Capture.JPG (42.92 KiB) Viewed 22496 times

And it works very good, like when on USB Plug.



Restictions :

- Only One client can connect to ser2net Server (if someone can made this sketch start 2 server or more to connect 2 or more client, please share, i need this).
- When ESP is plug to Mega, USB can only recieve but not send (this will not be to hard to allow both working on same time).


Is there a way to slide all device i all ready got on my RFLink USB to this RFLink Wifi on Domoticz ?


Please Mister Nodoshop instead using 2.4ghz on your shield who we can't use, put an ESP8266, and aviablility to load this !
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Wifi RFLink

Post by Raspberry Piet »

Very nice!

Just updated my ESP Easy to build 42 (now has built in ser2net functionality)
ThinkPad
Posts: 890
Joined: Tuesday 30 September 2014 8:49
Target OS: Linux
Domoticz version: beta
Location: The Netherlands
Contact:

Re: Wifi RFLink

Post by ThinkPad »

For building a LAN (Ethernet) version, have a look at this nice module: http://domoticz.com/forum/viewtopic.php?f=30&t=8505 ($11 serial --> Ethernet converter).
I just finished building it into my OTGW today.
I am not active on this forum anymore.
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: Wifi RFLink

Post by deennoo »

ThinkPad wrote:For building a LAN (Ethernet) version, have a look at this nice module: http://domoticz.com/forum/viewtopic.php?f=30&t=8505 ($11 serial --> Ethernet converter).
I just finished building it into my OTGW today.
Maybe you post on the wrong place. Themes are RFLink and Wifi, good hacking, made a tutorial !

By the way...an Esp8266 with ESPEasy only cost 1$ and for sure can be plug to your opentherm gateway wirelessly...
Raspberry Piet wrote:Very nice!

Just updated my ESP Easy to build 42 (now has built in ser2net functionality)
Really ?? Hé hé hé .

http://www.esp8266.nu/forum/viewtopic.php?f=6&t=242

My towmorrow job will be to allow Wifi and USB sending and recieving, when both are use, i think have got a solution.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: Wifi RFLink

Post by deennoo »

Raspberry Piet wrote:Very nice!

Just updated my ESP Easy to build 42 (now has built in ser2net functionality)
Can't Walt...is this possible to set 2 ser2net with différent TCP port ? If yes does it works ?
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Wifi RFLink

Post by Raspberry Piet »

deennoo wrote:
Raspberry Piet wrote:Very nice!

Just updated my ESP Easy to build 42 (now has built in ser2net functionality)
Can't Walt...is this possible to set 2 ser2net with différent TCP port ? If yes does it works ?
No, just one ser2net.
I thought you noticed the latest git commit this afternoon? ;)
Domoticz seems to stop listen to this ser2net connection after a while. :(
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: Wifi RFLink

Post by deennoo »

It doesn't stop, if you read carefully, the problem is : if connections is lost between Domoticz and Esp Domoticz don't reconnect automatically, must be a Domoticz issue here.

I saw the Git commit but didn't try it already.

I got one running the sketch i provid since friday morning and no problem with it.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
costo
Posts: 71
Joined: Tuesday 11 August 2015 17:35
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

Re: Wifi RFLink

Post by costo »

Raspberry Piet wrote:Very nice!

Just updated my ESP Easy to build 42 (now has built in ser2net functionality)
ESP Easy version 42

that's nowhere to be found, where did you get that ?
chrille
Posts: 8
Joined: Monday 08 June 2015 15:18
Target OS: Linux
Domoticz version: Beta
Location: Horsens, Denmark
Contact:

Re: Wifi RFLink

Post by chrille »

costo wrote: ESP Easy version 42

that's nowhere to be found, where did you get that ?
https://github.com/ESP8266nu/ESPEasy

- Jan
Beaglebone Black, Raspberry Pi (A and B)
Multiple ESP8266 (DIY - temperature, humidity, light, door sensors)
USR-HTW (MQTT), HA7net, 2x Kankun wifi plug (MQTT)
WH1090 weatherstation + weewx (MQTT)
Hikvision IP cameras
KD101 fire alarms
RFXTRX433e + RFlink
chrille
Posts: 8
Joined: Monday 08 June 2015 15:18
Target OS: Linux
Domoticz version: Beta
Location: Horsens, Denmark
Contact:

Re: Wifi RFLink

Post by chrille »

deennoo wrote:Since last Update We can add :

RFLink Gateway with Lan Interface !!

I found a way to use it on Wifi by adding ESP8266 to RFLink using Ser2net.

Just load this sketch to your ESP8266 : https://github.com/dparnell/esp8266-ser2net, of course adjust config to your home config

Plug ESP RX to Mega RX0 ESP tx to Mega TX1, ESP Enable and VCC to 3.3v Mega pin, ESP8266 GND to Mega Gnd, and ESP reset To Mega reset PIN.
A few questions/comments:

The ESP8266 is not 5V safe on the GPIO pins (including TX/RX) and you should really use a levelshifter
ITYM that RX0 on Arduino should go to TX on ESP, and not RX
Why do you connect reset on the ESP to the Arduino reset? Why not leave it high or floating?

- Jan
Beaglebone Black, Raspberry Pi (A and B)
Multiple ESP8266 (DIY - temperature, humidity, light, door sensors)
USR-HTW (MQTT), HA7net, 2x Kankun wifi plug (MQTT)
WH1090 weatherstation + weewx (MQTT)
Hikvision IP cameras
KD101 fire alarms
RFXTRX433e + RFlink
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: Wifi RFLink

Post by deennoo »

Your right for Rx and Tx (on my first esp they was inverted).

Actually i never kill an esp with 5v on ESp RX and TX (i load frimewire from an arduino) , will think about it.

Reste : this is a way for me to reste both.

Feel free to give a full safe how to, if you want.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
savage007
Posts: 19
Joined: Sunday 13 September 2015 20:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Wifi RFLink

Post by savage007 »

Where did you get those library files for r42 espeasy you were talking about on http://www.esp8266.nu/forum/viewtopic.p ... t=10#p1664 ?

I am missing all these files :


#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <ESP8266WebServer.h>
#include <Wire.h>
#include <PubSubClient.h>
#include <ArduinoJson.h>
#include <LiquidCrystal_I2C.h>
#include <Servo.h>
#if FEATURE_SPIFFS
#include <FS.h>

Could you somehow send those to me?
NietGiftig
Posts: 121
Joined: Sunday 11 October 2015 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6224
Location: Holland
Contact:

Re: Wifi RFLink

Post by NietGiftig »

In the zip file from the latest release are some of your missing files.
http://sourceforge.net/projects/espeasy/files/
RPI-2 + SSD / ESPEasy Sensors & Switches / Sonoff / RFLink / Action Switches / TP-Link switch / Node-Red / Reacticz
dodge
Posts: 1
Joined: Wednesday 30 December 2015 11:59
Target OS: Linux
Domoticz version:
Contact:

Re: Wifi RFLink

Post by dodge »

Hello,

I have a ESP8266 and want to conntect it to my rflink.
But I have some issues.

What I did so far....
installed the espeasy software on the esp8266
but how should i configure it?
at the moment I did:
device: serial server
tcp port 23
Baud Rate: 57600
Data bits: 8
Parity: no parity
Stop bits: 1

next question how should connect this to my rflink

power is ok because I can connect to the configure webpage when I go to esp8266 ip adres

for rx and tx and did esp rx to mega tx0 and esp tx to meta rx0
in the topic start it says something else but this is how the picture is connected.

When I try to connect with domoticz it connects but after 30 sec it says no response.

domoticz version V2.3682
rflink version R35
ESP version 48

two more questions; Do i have to change something in the hardware options SDA and SDL

Protocol is on domoticz http is this ok?

thx
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: Wifi RFLink

Post by deennoo »

Dont have anu expérience with Espeasy and serial server sorry
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
costo
Posts: 71
Joined: Tuesday 11 August 2015 17:35
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

Re: Wifi RFLink

Post by costo »

dodge wrote:Hello,
. . . . . . . . .
When I try to connect with domoticz it connects but after 30 sec it says no response.
domoticz version V2.3682
. . . . . . . . .
thx
That issue in Domoticz is (most likely) solved in beta version 2.3846, so you have to update Domoticz
SystemLord
Posts: 16
Joined: Sunday 28 June 2015 17:19
Target OS: NAS (Synology & others)
Domoticz version: Stable
Contact:

Re: Wifi RFLink

Post by SystemLord »

Just a small warning:

I would not advise to use the 3.3v pin on the MEGA, it delivers 50mA max where the esp can peak to 250mA (normal operation 70mA)
This could result in connection issues ed.

So instead use the 5v pin (200mA) and use a voltage regulator.

Level shifter on the rx esp line is needed , the MEGA can function with 3.3v on rx/tx so that would not be a issue.

But i like the idea!
DaaNMaGeDDoN
Posts: 55
Joined: Thursday 23 October 2014 19:01
Target OS: Linux
Domoticz version: beta
Location: Eindhoven, the Netherlands
Contact:

Re: Wifi RFLink

Post by DaaNMaGeDDoN »

I just started looking into rflink after posting some stuff about a rfxtrx in the rflink area when i noticed how much i missed, so i came across some wiring diagrams and such and thought to myself: has anybody noticed arduino sketches can be used for ep8266's? So i googled and got here. Maybe i am preaching to the choir here, but i see the esp8266 is only used for the ser->net part, why not drop the arduino part and use the only a esp8266 with the receiver and transmitter?
https://github.com/esp8266/Arduino
As said i am just started to look into this, so if this is a common knowledge and this has been discussed and the arduino is the only way i am sorry for bothering ;) Otherwise i can imagine a tiny lan-connected rflink transciever in the near future :D
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

Re: Wifi RFLink

Post by Raspberry Piet »

DaaNMaGeDDoN wrote:Maybe i am preaching to the choir here, but i see the esp8266 is only used for the ser->net part, why not drop the arduino part and use the only a esp8266 with the receiver and transmitter?
Just found this:
https://github.com/hallard/WeMos-RFLink

It is mentioned here but my french is not very good :oops:

I haven't found the link to the software yet.
NietGiftig
Posts: 121
Joined: Sunday 11 October 2015 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6224
Location: Holland
Contact:

Re: Wifi RFLink

Post by NietGiftig »

RPI-2 + SSD / ESPEasy Sensors & Switches / Sonoff / RFLink / Action Switches / TP-Link switch / Node-Red / Reacticz
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest