Page 1 of 1

Re: RF 433 plugin for KAKU in the playground

Posted: 12 Jan 2017, 11:50
by data
Which TX? The modules or the keyfob remotes?
They work both.

Re: RF 433 plugin for KAKU in the playground

Posted: 12 Jan 2017, 12:58
by danielchagasrs
Image

Re: RF 433 plugin for KAKU in the playground

Posted: 12 Jan 2017, 13:28
by Martinus
JayJay wrote:Sorry to bother you, Martinus but whatever I try and I know I am a newby to esp8266 devices and espeasy but I can't get that functionality of the old nodo send/receiver for 433mHz incorporated in my esp. It bricks my ino in the arduine ide.
I saw your beautiful example of how you got to gpio pins one for send and one for receive, but that is not in the stable release of EspEasy. Help me aub?
ik doe mijn nodo's de deur uit en ga over op de esp8266 maar dit lukt me niet. Sorry guys some Dutch here.
Toch nog een Nodo fan hier? Dan maar antwoord in nederlands want er zijn m.i. geen anderstalige Nodo gebruikers. Ik weet niet wat voor Nodo hardware je hebt, maar ik gebruik zelf een aantal Nodo Small bordjes die ik heb voorzien van een custom RFLink versie die specifiek is gericht op hergebruik van oude Nodo hardware (weggooien is zonde dacht ik). Ik laat een ESP via serial communiceren met RFLink en op die manier ben ik zelf overgestapt van Nodo naar een alternatief.

De RFLink versie werkt hetzelfde als de formele versie R33 maar is fors gestript zodat deze in een Nodo Small kan worden gezet. Ondersteunt alleen Kaku, maar dat is toch wat de meeste Nodo gebruikers in huis hebben. Firmware is hier te vinden: https://github.com/letscontrolit/RFLinkSmall

Helaas heb ik geen tijd meer om actief te ontwikkelen maar misschien heb je er nog wat aan. En als je alleen Kaku gebruikt, heb je eigenlijk geen reden meer om de firmware nog ooit aan te passen....

Voorbeeld van een eventlist bij deze oplossing:

Code: Select all

on !RFLink#NewKaku;ID=12345678;SWITCH=a;CMD=ON; do
  if [Lights#Hal]=1
    timerSet 1,1
    timerSet 2,600
    timerSet 3,630
    timerSet 4,660
  endif
endon

on !RFLink#NewKaku;ID=12345678;SWITCH=a;CMD=OFF; do
  if [Lights#Hal]=1
    timerSet 2,60
    timerSet 3,90
    timerSet 4,120
  endif
endon

on Rules#Timer=1 do
  SerialSend 10;NewKaku;123003;2;8;
  delay 500
  SerialSend 10;NewKaku;123003;2;8;
  delay 500
  SerialSend 10;NewKaku;123003;2;8;
endon
on Rules#Timer=2 do SerialSend 10;NewKaku;123003;2;5;
on Rules#Timer=3 do SerialSend 10;NewKaku;123003;2;3;
on Rules#Timer=4 do SerialSend 10;NewKaku;123003;2;OFF;

on OutsideLDR#Lux<200 do
  if [Lights#Hal]=0
    SerialSend 10;NewKaku;123004;2;ON;
    SerialSend 10;NewKaku;123005;2;ON;
    TaskValueSet 3,1,1
  endif
endon

on OutsideLDR#Lux>400 do
  if [Lights#Hal]=1
    SerialSend 10;NewKaku;123004;2;OFF;
    SerialSend 10;NewKaku;123005;2;OFF;
    TaskValueSet 3,1,0
  endif
endon

on !RFLink#NewKaku;ID=23456789;SWITCH=2;CMD=ON; do
  SerialSend 10;NewKaku;12300C;2;ON;
  SerialSend 10;NewKaku;12300D;2;ON;
endon

on !RFLink#NewKaku;ID=23456789;SWITCH=2;CMD=OFF; do
  SerialSend 10;NewKaku;12300C;2;OFF;
  SerialSend 10;NewKaku;12300D;2;OFF;
endon

Re: RF 433 plugin for KAKU in the playground

Posted: 12 Jan 2017, 13:33
by data
Yes, they work.

Re: RF 433 plugin for KAKU in the playground

Posted: 14 Jan 2017, 18:02
by JayJay
Sorry to visitors from outside the Netherlands I have to post a short masseage of thanks to Martinus.

Hallo Martinus, dank voor je reaktie, jammer te horen dat je geen tijd meer hebt om aktief mee te programmeren, man wat hebben jullie mooi werk geleverd, ik ben dol op het oude NODO en nu ESP Easy werk.
Helaas voor jou was ik behoorlijk warrig sorry daarvoor. Het zat zo ik kon eerst nergens de kaku plugin vinden voor de ESP, degene die jij toont als inleiding voor deze post, maar ik heb hem gevonden in de playground.
En hij werkt.... wel zit ik nog met het probleem dat het aansturen via een webpage me niet lukt me json readout geeft in ieder geval de kaku's weer.
Daarbij probeer ik met Home Assistant de boel te sturen in huis en dat loopt als een tierelier met ESP Easy maar de kaku's wederom ik ben er nog niet achter hoe dat erin te krijgen en te besturen vanuit daar, mocht je een tip hebben, ahum graag, (jouw tip bespaard mij een hoop frustratie en minstens 3 weken pijn in mijn hersens, haha maar waar).

Dank. JJ

Re: RF 433 plugin for KAKU in the playground

Posted: 15 Jan 2017, 00:46
by JayJay
Martinus with your plugin I can see all my KaKu modules, but howto switch them from a webpage what is the command or even better I like to incorperate them into Home Assistant as to switch them from a grafical interface, but how to address the sender via a webcommand?

I was thinking about dummy switches in ESP Easy but I have many more Kaku's than free device fields in esp easy.

Re: RF 433 plugin for KAKU in the playground

Posted: 21 Jan 2017, 02:15
by danielchagasrs
I downloaded R148, put the plugin together with other INO files, copied libraries and tryed to compile, but it returned several errors... I wont paste all LOG, because it's too long:

_P199_RF443_KaKu:22: error: stray '\302' in program
<title>ESPEasyPluginPlayground/_P199_RF443_KaKu.ino at master · letscontrolit/ESPEasyPluginPlayground · GitHub</title>
^
_P199_RF443_KaKu:22: error: stray '\267' in program
_P199_RF443_KaKu:22: error: stray '\302' in program
_P199_RF443_KaKu:22: error: stray '\267' in program
_P199_RF443_KaKu:134: error: missing terminating ' character
<!-- '"` --><!-- </textarea></xmp> --></option></form><form accept-charset="UTF-8" action="/letscontrolit/ESPEasyPluginPlayground/search" class="js-site-search-form" data-scoped-search-url="/letscontrolit/ESPEasyPluginPlayground/search" data-unscoped-search-url="/search" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
^
_P199_RF443_KaKu:2862: error: missing terminating ' character
............. ^
exit status 1
stray '\302' in program


If I remove the kaku plugin, it compiles all right...
Any ideas?

Re: RF 433 plugin for KAKU in the playground

Posted: 25 Jan 2017, 00:02
by JayJay
Working with the kaku module I found out that the state of newkaku is transmitted in the <esp IP>/json file but old kaku is not??? Is that a fluke or? But I still can't send on/off from Home assistant to my ESPeasy 8266, which is strange cause I set up a raspberry pi with Pilight and that runs like a ...., no problems at all so what am I missing with the esp?

Does anybody now the answer, howto get this working, please?

Re: RF 433 plugin for KAKU in the playground

Posted: 25 Jan 2017, 09:00
by data
@danielchagasrs

I am pretty sure, you haven't downloaded the source code for this plugin but instead a website.
Have a look at the code in your arduino ide and you will see...

On github, either click on 'raw' first and then copy/paste the code into the ino or use git clone

Re: RF 433 plugin for KAKU in the playground

Posted: 29 Jan 2017, 01:19
by danielchagasrs
data wrote: I am pretty sure, you haven't downloaded the source code for this plugin but instead a website.
Yeah, I noticed that right after I posted the question... but, downloading the raw code or even downloading the entire zip didn't work.
I tried about 5 plugins, and all (except one) returns different errors. I only had success to compile with one.

I'm using the libraries from the source code package, and all others are updated to the latest version.

Re: RF 433 plugin for KAKU in the playground

Posted: 03 Feb 2017, 23:34
by danielchagasrs
Can't compile... Always getting errors...

Does anybody could upload the compiled image and share the download link?
I'm using 4M ESP modules.

Thanks.

Re: RF 433 plugin for KAKU in the playground

Posted: 04 Feb 2017, 08:48
by data
Here's an image I am using on a 4M Wemos mini D1 with Kaku and some other 433MHz related plugins. The analog input configured to measure supply voltage.

download at http://tinydevices.de/esp-easy-firmware/

Added Plugins:
109 NEXA
111 RF
112 RFTX
122 Neopixel
199 433MHz Kaku

Re: RF 433 plugin for KAKU in the playground

Posted: 04 Feb 2017, 20:40
by Raimund
data wrote:Here's an image I am using on a 4M Wemos mini D1 with Kaku and some other 433MHz related plugins. The analog input configured to measure supply voltage.

download at http://tinydevices.de/esp-easy-firmware/

Added Plugins:
109 NEXA
111 RF
112 RFTX
122 Neopixel
199 433MHz Kaku
It would be great if you could upload the source code please. Thanks :D

Re: RF 433 plugin for KAKU in the playground

Posted: 04 Feb 2017, 20:48
by data

Re: RF 433 plugin for KAKU in the playground

Posted: 04 Feb 2017, 21:24
by danielchagasrs
data wrote:Here's an image I am using on a 4M Wemos mini D1 with Kaku and some other 433MHz related plugins. The analog input configured to measure supply voltage.

download at http://tinydevices.de/esp-easy-firmware/

Thank you. :)

Re: RF 433 plugin for KAKU in the playground

Posted: 14 Aug 2017, 10:23
by sebi2003
I bought REV Ritter Outlet Sockets from Bauhaus also available at amazon:

Code: Select all

https://www.amazon.de/gp/product/B0017USSM4/ref=ox_sc_act_title_2?ie=UTF8&psc=1&smid=A3JWKAKR8XB7XF
I successfully integrated the kaku plugin from the playground with Arduino IDE (2.0.0 dev11 version).

The chipset is TE90TP16N (self-learing).

I also sniffed the code from the remote control with Arduino Serial Monitor via NewRemoteSwitch library (downloaded from here:

Code: Select all

http://fhilgendorf.square7.ch/Rever/
From this Forum:

Code: Select all

https://www.arduinoforum.de/arduino-Thread-Ritter-Funksteckdose-433mhz?page=2
Serial monitor showed:
Addr 17594190 unit 15 on, period:255us

How can I Transmit this Code via ESPEasy?
I tried the following Rule:
on demoEvent do
newKakuSend,17594190,15,16
endon
I Also tried Rule:
on demoEvent do
newKakuSend,17594190,15,0 //also newKakuSend,17594190,15,1 etc.
endon
I executed the Rule with the command "http://<ESP#1-ip >/control?cmd=event,demoEvent".
ESPEasy told me the command was transmitted, but the outlet socket did not switched on. What is wrong?

I am using this kit:

Code: Select all

http://www.ebay.de/itm/RF-Sender-Empfanger-Modul-433MHz-Wireless-Link-Kit-fur-Arduino-/332339792823?hash=item4d60fecbb7:g:ZjEAAOSwz2tZjYEA

Re: RF 433 plugin for KAKU in the playground

Posted: 02 Oct 2017, 01:36
by 79kiko
I want testing this RF plugin,but compilation end with error.

Code: Select all

_P111_RF.ino: In function 'boolean Plugin_111(byte, EventStruct*, String&)':
_P111_RF:61: error: 'irReceiver' was not declared in this scope
         if (irReceiver != 0) {
             ^
_P111_RF:88: error: 'irReceiver' was not declared in this scope
         if (irReceiver != 0) break;

Re: RF 433 plugin for KAKU in the playground

Posted: 08 Nov 2017, 14:40
by sebi2003
lock at this one viewtopic.php?p=20598#p20598
I had the same problem. After deleting some standard plugins and do exactly what is mentioned in the tutorial for compliling ESPeasy with Arduino IDE everything works for me.
I compiled KAKU Plugin and the other RF send / receive Plugins together.

Great Plugin. Now I can switch every self-learning rf 433 mhz socket.

Just a hint: If you want to use MQTT to switch rf sockets, use rules in combination with MQTT import plugin. Its absolutely excellent because you can subscribe to a topic and switch everything from openhab or fhem or HAAS or whatelse.

Re: RF 433 plugin for KAKU in the playground

Posted: 14 Mar 2018, 15:29
by mvroosmalen
Hi,

I've tried to compile the plugin for a wemo, but without success. I removed all standard plugins (_P...) and placed the three RF plugins in the folder. I used the following configuration:
arduino-1.6.12P230
espeasy mega-20180314, and earlier versions (2.0.0-dev11)

After I compile the famous error 1 appears....

any idea's???

Thanks

Mark

Re: RF 433 plugin for KAKU in the playground

Posted: 18 Mar 2018, 19:38
by mvroosmalen
Nobody any idea or suggestions? :D

Re: RF 433 plugin for KAKU in the playground

Posted: 12 Apr 2018, 09:30
by AFUDirk
data wrote: 04 Feb 2017, 08:48 Here's an image I am using on a 4M Wemos mini D1 with Kaku and some other 433MHz related plugins. The analog input configured to measure supply voltage.

download at http://tinydevices.de/esp-easy-firmware/

Added Plugins:
109 NEXA
111 RF
112 RFTX
122 Neopixel
199 433MHz Kaku
Hello, the link does not work. I would like to try this image.

Re: RF 433 plugin for KAKU in the playground

Posted: 16 Apr 2018, 16:19
by data
Oh, sorry, I moved the folder last year. Try this one:
http://tinydevices.de/ESP-Easy/ESPEasy.ino.generic.bin

Re: RF 433 plugin for KAKU in the playground

Posted: 09 Dec 2020, 15:44
by makro01
Hello,
have someone this RF Plugin and the latest ESPEasy relase.
and can giv it to me.
I dont bring it together :(

Regards Makro