RF 433 plugin for KAKU in the playground

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Martinus

RF 433 plugin for KAKU in the playground

#1 Post by Martinus » 21 Sep 2016, 17:32

Maybe of interest to some of the 'old' Dutch Nodo fans that have some old Nodo hardware lying around doing nothing (just as in my case).
A bit of a waste not using those expensive but very high quality Aurel RX-4M50RR30SF receiver modules!

I removed the RF parts from an old Nodo shield and connected those to an ESP8266 board and ported some of the old Nodo code to a new plugin.
I use two antenna wires because the plugin does not support switching RX/TX. So do not directly connect a Nodo Shield for testing!

I can now see all my Kaku remotes sending data and also control all my lights using ESP Easy without the help of anything else...
It's running stable for several days now, so the plugin looks good enough to be published.

How to connect:
RF_Plugin.png
RF_Plugin.png (19.98 KiB) Viewed 9612 times
Sample rules for relaying specific RF signals with a local led indicator as well:
KakuRules.png
KakuRules.png (14.77 KiB) Viewed 9612 times
Have fun with the Nodo legacy stuff!

User avatar
renearts
Normal user
Posts: 9
Joined: 26 May 2016, 13:31
Location: Volkel, NL
Contact:

Re: RF 433 plugin for KAKU in the playground

#2 Post by renearts » 22 Sep 2016, 10:11

Wow, this looks great. I'll have a try with a RXB6 receiver and sender kit I have.
If this works well I might be able to get rid of my homeduino :)

tim
Normal user
Posts: 30
Joined: 05 Dec 2015, 11:24

Re: RF 433 plugin for KAKU in the playground

#3 Post by tim » 22 Sep 2016, 13:01

I have the Aurel modules but they are in use for RFLink at the moment (old Nodo Shield). But i have some chinese modules left from my earlier Nodo Small trials. Can these be used also?

One of my outdoor Kaku receivers does not react well to my RFLink so maybe a very cheap repeater with ESP board and chinese RF can solve this?

manjh
Normal user
Posts: 441
Joined: 08 Feb 2016, 11:22

Re: RF 433 plugin for KAKU in the playground

#4 Post by manjh » 22 Sep 2016, 17:18

How does this (functionally) compare to the RFLink?

Martinus

Re: RF 433 plugin for KAKU in the playground

#5 Post by Martinus » 22 Sep 2016, 19:24

manjh wrote:How does this (functionally) compare to the RFLink?
We should not try to compare this to RFLink. As the title says, it ONLY supports KAKU (Klik-Aan-Klik-Uit). And it's not a gateway like RFLink, not producing serial output or such.

Martinus

Re: RF 433 plugin for KAKU in the playground

#6 Post by Martinus » 22 Sep 2016, 19:33

So let me explain why i made this in the first place:

I'm planning to replace an old Nodo unit with an ESP to run a special 'PIR/twilight' switch to control my garden lighting.
This unit controls the garden lights when it gets dark at a low dim value.
When there's movement (KAKU PIR), it will go to a bright level and then dim downwards in several stages, back to a low dim value.
When sun rises, lights go off.

This makes a much smoother experience than the original KAKU PIR <-> KAKU light combination.
(and i still prefer the decentralized control that Nodo units provided, so it was time to grant my ESP some more features...)

Planned rule set:

on Light#Lux<500 do
if [GardenLight#State]=0
NewKaKuSend 12,2,3 // set low dim value
TaskValueSet 3,1,1
endif
endon

on Light#Lux>800 do
if [GardenLight#State]=1
NewKaKuSend 1825351,1,0
TaskValueSet 3,1,0
endif
endon

on NewKaku_19340526#10=16 do // on movement
if [GardenLight#State]=1
NewKaKuSend 1825351,1,15 // go bright!
timerSet 1,60
timerSet 2,120
endif
endon

on Rules#Timer=1 do NewKaKuSend 1825351,1,8 // lower dim value
on Rules#Timer=2 do NewKaKuSend 1825351,1,3 // lower more...

manjh
Normal user
Posts: 441
Joined: 08 Feb 2016, 11:22

Re: RF 433 plugin for KAKU in the playground

#7 Post by manjh » 24 Sep 2016, 09:20

Interesting. I had the same requirement for my kitchen ceiling (LED) lights.
When there is movement (after sunset), the lights switch on to max level. As long as there is no movement, the dimmer goes down one step until the lights are finally off. As you say: a much smoother experience than the harsh on/off.
All of this was done with a PIR sensor and a KAKU dimmer, controlled from Domoticz (LUA). :)

s4nder
Normal user
Posts: 14
Joined: 30 Sep 2016, 12:13

Re: RF 433 plugin for KAKU in the playground

#8 Post by s4nder » 30 Sep 2016, 12:27

This looks nice! I was developing my own plugins to do exactly the same thing :roll: !

I got quite far with my plug-ins using the RCSwitch library. Sending and recieving works perfectly. Only annoying bug i have is that it interferes with the IR receive plugin (_P016_IR.ino), the Ir plugin logs received data from the RF recieve as if it is receiving IR data... sigh :evil:
Plus side is that the RCSwitch library supports multiple devices. For example intertechno and eurodomest (from the Action store). I can post my code if you are interested...?

But I am having troubles getting you plugin to work. I use a cheap chinese transmitter and reciever (FS1000A sender/ MX-05V reciever), and i do not see any action on receiving RF in the logging? Are these devices even supported/possible?

Greets, S4nder

Martinus

Re: RF 433 plugin for KAKU in the playground

#9 Post by Martinus » 30 Sep 2016, 15:17

s4nder wrote:This looks nice! I was developing my own plugins to do exactly the same thing :roll: !

I got quite far with my plug-ins using the RCSwitch library. Sending and recieving works perfectly. Only annoying bug i have is that it interferes with the IR receive plugin (_P016_IR.ino), the Ir plugin logs received data from the RF recieve as if it is receiving IR data... sigh :evil:
Plus side is that the RCSwitch library supports multiple devices. For example intertechno and eurodomest (from the Action store). I can post my code if you are interested...?

But I am having troubles getting you plugin to work. I use a cheap chinese transmitter and reciever (FS1000A sender/ MX-05V reciever), and i do not see any action on receiving RF in the logging? Are these devices even supported/possible?

Greets, S4nder
I know about the RCSwitch library, but as far as i know, it does not support the KAKU devices with automatic code, only the very old ones with code wheels. So it was totally useless for my personal situation. Besides that, i'd like to stay away from external libraries where possible.

But maybe other people have an interest, so you could publish working stuff to the plugin playground.

The KAKU plugin has only been tested with Aurel RF equipment. I never had good experiences with the cheap chinese stuff. But the transmitter should work fine if it's a cheap chinese one.

User avatar
renearts
Normal user
Posts: 9
Joined: 26 May 2016, 13:31
Location: Volkel, NL
Contact:

Re: RF 433 plugin for KAKU in the playground

#10 Post by renearts » 02 Oct 2016, 17:14

Have you guys looked at the RFControl library (used for Arduino, pimatic uses this as well)?
https://github.com/pimatic/RFControl
It supports a boatload of protocols and works great!

User avatar
Stuntteam
Site Beheer
Posts: 614
Joined: 27 Jan 2016, 16:46

Re: RF 433 plugin for KAKU in the playground

#11 Post by Stuntteam » 02 Oct 2016, 19:12

well.. I think it was not the idea of putting support for every protocol on it.. otherwise you simply use RFLink which supports more protocols than any other solution..
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8

kniazio
Normal user
Posts: 49
Joined: 12 Jun 2016, 11:12

Re: RF 433 plugin for KAKU in the playground

#12 Post by kniazio » 04 Oct 2016, 08:30

On page http://www.domoticz.com/forum/viewtopic ... 673#p77673 is the project for the new devices kaku.
Can someone please convert this sketch for a plugin for easyesp?

Code: Select all

// Add the ESP8266 Boards to the Arduino IDE :
// https://github.com/esp8266/Arduino

// For the KaKu protocol the library NewRemoteTransmitter is used :
// https://github.com/hjgode/homewatch/tree/master/arduino/libraries/NewRemoteSwitch

const String ID      = "KaKu_Transmitter\n";
const String Version = "Version 1.5\n";     

// URL examples
// http://10.0.0.5/sendUnit?unit=1&value=1    value must be 0 or 1
// http://10.0.0.5/sendDim?unit=2&value=15    value must be 0 to 15
// http://10.0.0.5/sendGroup?unit=1&value=1   unit don't care in group command, value must be 0 or 1

#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
#include <NewRemoteTransmitter.h>

const char* ssid = "yourSSID";
const char* password = "yourPassword";

ESP8266WebServer server(80);

// Create a KAKU transmitter on address 123, using digital GPIO0 to transmit,
// with a period duration of 260ms (default), repeating the transmitted
// code 2^3=8 times.
NewRemoteTransmitter transmitter(123, 0, 260, 3);

#define LED 2     // Status Led on GPIO2

void handleRoot() {
  String message = ID;
  message += Version;
  message += "MAC ";
  message += (WiFi.macAddress());
  server.send(202, "text/plain", message);
}

void handleNotFound(){
  String message = "Command not found\n\n";
  message += "URI: ";
  message += server.uri();
  message += "\nMethod: ";
  message += (server.method() == HTTP_GET)?"GET":"POST";
  message += "\nArguments: ";
  message += server.args();
  message += "\n";
  for (uint8_t i=0; i<server.args(); i++){
    message += " " + server.argName(i) + ": " + server.arg(i) + "\n";
  }
  server.send(404, "text/plain", message);
}

void handleCommand(){
  int unit = (server.arg(0).toInt());
  int val = (server.arg(1).toInt());

  digitalWrite(LED, HIGH);          // Blink status LED when transmitting data
  if (server.uri() == "/sendUnit")  transmitter.sendUnit(unit, val); 
  if (server.uri() == "/sendGroup") transmitter.sendGroup(val);       
  if (server.uri() == "/sendDim")   transmitter.sendDim(unit, val);   
  digitalWrite(LED, LOW);
 
  String message = ID;
  message += Version;
  message += "URI: ";
  message += server.uri();
  message += "\nMethod: ";
  message += (server.method() == HTTP_GET)?"GET":"POST";
  message += "\nArguments: ";
  message += server.args();
  message += "\n";
  for (uint8_t i=0; i<server.args(); i++){
    message += " " + server.argName(i) + ": " + server.arg(i) + "\n";
  }
  server.send(200, "text/plain", message);     // Echo the data to the webpage
                                               // used for debugging from webbrowser
}

void setup(void){
  pinMode(LED, OUTPUT);
  digitalWrite(LED,LOW);

  Serial.begin(9600);
  WiFi.begin(ssid, password);
  Serial.println("");
 
  // Wait for connection
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }
 
  digitalWrite(LED, HIGH);         // Blink LED three times to indicate that the unit is connected to WiFI
  delay(200);
  digitalWrite(LED, LOW);     
  delay(200);
  digitalWrite(LED, HIGH);
  delay(200);
  digitalWrite(LED, LOW);
  delay(200);
  digitalWrite(LED, HIGH);
  delay(200);
  digitalWrite(LED, LOW);

 
  Serial.println("");            // Echo status to serial port
  Serial.print("Connected to ");
  Serial.println(ssid);
  Serial.print("IP address: ");
  Serial.println(WiFi.localIP());
  Serial.print("MAC address: ");
  Serial.println(WiFi.macAddress());

 

  if (MDNS.begin("esp8266")) {
    Serial.println("MDNS responder started");
  }

  server.on("/", handleRoot);
  server.on ("/sendUnit", handleCommand);
  server.on ("/sendDim", handleCommand);
  server.on ("/sendGroup", handleCommand);
  server.onNotFound(handleNotFound);
 
  server.begin();
  Serial.println("HTTP server started");
}

void loop(void){
  server.handleClient();
}
Sketch working at 100%.
I checked

kniazio
Normal user
Posts: 49
Joined: 12 Jun 2016, 11:12

Re: RF 433 plugin for KAKU in the playground

#13 Post by kniazio » 21 Oct 2016, 06:43

Is it really such a great project can not join even grander easyesp? :))

kniazio
Normal user
Posts: 49
Joined: 12 Jun 2016, 11:12

Re: RF 433 plugin for KAKU in the playground

#14 Post by kniazio » 23 Nov 2016, 14:22

Is it possible to modify the plugin to be able to control such a switch
https://pl.aliexpress.com/item/EU-Stand ... 75a4&tpp=1
The switch works like a dream on Raspberry.
The Raspberry + Pilight this switch is detected as kaku_switch_old and its data is a unit and id.
eg.
"Id": 28,
"Unit": 5,
"State": "on"
Can it be possible to modify the command so that instead of sending plugin
http://10.0.0.5/sendUnit?unit=1&value=1
eg. such a thing
http://10.0.0.5/sendUnit?unit=1&id=1&state=1
or
http://10.0.0.5/sendUnit?unit=1&id=1&state=on
Please help.

hugo11
Normal user
Posts: 17
Joined: 08 Nov 2016, 20:30

Re: RF 433 plugin for KAKU in the playground

#15 Post by hugo11 » 29 Nov 2016, 21:48

renearts wrote:Wow, this looks great. I'll have a try with a RXB6 receiver and sender kit I have.
If this works well I might be able to get rid of my homeduino :)
any luck with testing ?

hugo11
Normal user
Posts: 17
Joined: 08 Nov 2016, 20:30

Re: RF 433 plugin for KAKU in the playground

#16 Post by hugo11 » 11 Dec 2016, 16:16

so tried it with an rxb12 off ebay, no luck.

Could someone recommend what receivers are supported?

data
Normal user
Posts: 93
Joined: 10 Dec 2016, 11:26

Re: RF 433 plugin for KAKU in the playground

#17 Post by data » 12 Dec 2016, 17:35

Since I had not much luck with my switches (ELRO AB440 and Everflourish EMW200R), would it be possible
to simply add a raw rx and tx mode? So instead of giving me unit/id/state just a raw number? That's how
I handle it currently on raspberry and arduino nano.

data
Normal user
Posts: 93
Joined: 10 Dec 2016, 11:26

Re: RF 433 plugin for KAKU in the playground

#18 Post by data » 18 Dec 2016, 23:38

Update:
Meanwhile I made this plugin work with both previously mentioned brands (ELRO and Everflourish).

For reasons unknown I got not even a single reading with my RXB12 receiver.

Replacing it with a super-regenerative type such as this one http://s.click.aliexpress.com/e/J2FmA2f
finally gave me some readings (e.g. Kaku_15#15=0). Interestingly, I get only readings for the OFF-state.

Anyway, I can switch now both brands.

Many Thanks to mvdbro!

PS: By the way, I found and enabled decodeUnknown() in the plugin. Too bad there is no SendUnknown() yet :-)

JayJay
Normal user
Posts: 6
Joined: 01 Jan 2017, 12:26

Re: RF 433 plugin for KAKU in the playground

#19 Post by JayJay » 01 Jan 2017, 12:33

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.

danielchagasrs
Normal user
Posts: 19
Joined: 09 Jan 2017, 20:20
Location: Porto Alegre / Brazil

Re: RF 433 plugin for KAKU in the playground

#20 Post by danielchagasrs » 11 Jan 2017, 22:35

Does it work with those cheap chinese 433 TX from aliexpress?

data
Normal user
Posts: 93
Joined: 10 Dec 2016, 11:26

Re: RF 433 plugin for KAKU in the playground

#21 Post by data » 12 Jan 2017, 11:50

Which TX? The modules or the keyfob remotes?
They work both.

danielchagasrs
Normal user
Posts: 19
Joined: 09 Jan 2017, 20:20
Location: Porto Alegre / Brazil

Re: RF 433 plugin for KAKU in the playground

#22 Post by danielchagasrs » 12 Jan 2017, 12:58

Image

Martinus

Re: RF 433 plugin for KAKU in the playground

#23 Post by Martinus » 12 Jan 2017, 13:28

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

data
Normal user
Posts: 93
Joined: 10 Dec 2016, 11:26

Re: RF 433 plugin for KAKU in the playground

#24 Post by data » 12 Jan 2017, 13:33

Yes, they work.

JayJay
Normal user
Posts: 6
Joined: 01 Jan 2017, 12:26

Re: RF 433 plugin for KAKU in the playground

#25 Post by JayJay » 14 Jan 2017, 18:02

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

JayJay
Normal user
Posts: 6
Joined: 01 Jan 2017, 12:26

Re: RF 433 plugin for KAKU in the playground

#26 Post by JayJay » 15 Jan 2017, 00:46

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.

danielchagasrs
Normal user
Posts: 19
Joined: 09 Jan 2017, 20:20
Location: Porto Alegre / Brazil

Re: RF 433 plugin for KAKU in the playground

#27 Post by danielchagasrs » 21 Jan 2017, 02:15

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?

JayJay
Normal user
Posts: 6
Joined: 01 Jan 2017, 12:26

Re: RF 433 plugin for KAKU in the playground

#28 Post by JayJay » 25 Jan 2017, 00:02

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?

data
Normal user
Posts: 93
Joined: 10 Dec 2016, 11:26

Re: RF 433 plugin for KAKU in the playground

#29 Post by data » 25 Jan 2017, 09:00

@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

danielchagasrs
Normal user
Posts: 19
Joined: 09 Jan 2017, 20:20
Location: Porto Alegre / Brazil

Re: RF 433 plugin for KAKU in the playground

#30 Post by danielchagasrs » 29 Jan 2017, 01:19

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.

danielchagasrs
Normal user
Posts: 19
Joined: 09 Jan 2017, 20:20
Location: Porto Alegre / Brazil

Re: RF 433 plugin for KAKU in the playground

#31 Post by danielchagasrs » 03 Feb 2017, 23:34

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.

data
Normal user
Posts: 93
Joined: 10 Dec 2016, 11:26

Re: RF 433 plugin for KAKU in the playground

#32 Post by data » 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

Raimund
Normal user
Posts: 2
Joined: 04 Feb 2017, 20:35

Re: RF 433 plugin for KAKU in the playground

#33 Post by Raimund » 04 Feb 2017, 20:40

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


danielchagasrs
Normal user
Posts: 19
Joined: 09 Jan 2017, 20:20
Location: Porto Alegre / Brazil

Re: RF 433 plugin for KAKU in the playground

#35 Post by danielchagasrs » 04 Feb 2017, 21:24

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. :)

sebi2003
Normal user
Posts: 6
Joined: 11 Aug 2017, 07:38

Re: RF 433 plugin for KAKU in the playground

#36 Post by sebi2003 » 14 Aug 2017, 10:23

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

79kiko
Normal user
Posts: 15
Joined: 23 Aug 2016, 05:18

Re: RF 433 plugin for KAKU in the playground

#37 Post by 79kiko » 02 Oct 2017, 01:36

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;

sebi2003
Normal user
Posts: 6
Joined: 11 Aug 2017, 07:38

Re: RF 433 plugin for KAKU in the playground

#38 Post by sebi2003 » 08 Nov 2017, 14:40

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.

mvroosmalen
Normal user
Posts: 2
Joined: 14 Mar 2018, 15:16

Re: RF 433 plugin for KAKU in the playground

#39 Post by mvroosmalen » 14 Mar 2018, 15:29

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

mvroosmalen
Normal user
Posts: 2
Joined: 14 Mar 2018, 15:16

Re: RF 433 plugin for KAKU in the playground

#40 Post by mvroosmalen » 18 Mar 2018, 19:38

Nobody any idea or suggestions? :D

AFUDirk
Normal user
Posts: 1
Joined: 12 Apr 2018, 09:23
Location: Germany

Re: RF 433 plugin for KAKU in the playground

#41 Post by AFUDirk » 12 Apr 2018, 09:30

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.

data
Normal user
Posts: 93
Joined: 10 Dec 2016, 11:26

Re: RF 433 plugin for KAKU in the playground

#42 Post by data » 16 Apr 2018, 16:19

Oh, sorry, I moved the folder last year. Try this one:
http://tinydevices.de/ESP-Easy/ESPEasy.ino.generic.bin

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests