Page 1 of 2

Using RTL_433 app as reciever

Posted: Monday 15 December 2014 22:02
by deennoo
Hi all

RTL_433 is a free Project based on a DVB USB Dongle and a Raspberry to act as a rf reciever https://github.com/merbanan/rtl_433

It's allow us to read on our screen Hardware using rf 433mhz or 868mhz or 315mhz or 915mhz (any frequency you want) by using the tuner of a DVB USB Dongle (temp sensor, ringbell, energy meter, remote switch).

Just be copy and past source from different version, it's allow me to read Auriol/silvercrest temp sensor (lidl), Otio temp/hum sensor, oregon v 1 2 3 sensor.

This can be a good variant of a rfxcom reciver who doesn't want to had cheap protocol.

What is your opinion on it ?

Re: Using RTL_433 app as reciever

Posted: Tuesday 16 December 2014 7:10
by Keptenkurk
But it cannot transmit...
/paul

Re: Using RTL_433 app as reciever

Posted: Tuesday 16 December 2014 14:18
by deennoo
yes, but can get one on EBAY for 8€.

A cheap 433mhz emiter can be buy for less than 1€ (actullaly i'm driving my cheap rc switch with one of this, and a lua script and that works like a charme, i'm on the way to get state of this rcswitch if somebody use the remote)

With this of course you have to made your own script and use differente app to make Domoticz as full fonctionnal it can, hobby time is free.

Re: Using RTL_433 app as reciever

Posted: Wednesday 17 December 2014 21:20
by zaadstra
Very interesting! I believe I had an unused DVB-T receiver floating around here(based on the ebay pics), now find out what chipset it is. This might be the route for ditching the Kaku ICS-1000, I have a transmitter too but not working yet.

Please post your findings

Re: Using RTL_433 app as reciever

Posted: Friday 19 December 2014 13:05
by deennoo
About Kaku ICS-1000 every thing i can read is on NL language and i don't understand NL....

First off all try RTL_433 with your dongle to know if it works.

Re: Using RTL_433 app as reciever

Posted: Sunday 21 December 2014 15:01
by zaadstra
The ICS-1000 has an evil twin brother from CoCo, there the information and manual is in English:

http://www.coco-technology.com/shop/en/ics-1000/

Re: Using RTL_433 app as reciever

Posted: Monday 21 September 2015 21:10
by jcsat
Have some sensors which I added to rtl_433 source (kaku, and some weather sensors alecto protocol).

Am creating a script now which handles rtl_433, recognises these sensors and adds them into domoticz. Is there a working solution allready or would it be a nice addon for domoticz if I continue writing the script (using json calls).

Greetzz, Johan

Re: Using RTL_433 app as reciever

Posted: Monday 05 October 2015 23:34
by jcsat
Have a working script, which creates an rtl_433 virtual hardware and detects new devices known to the scripts, puts them as a new detected device in domoticz after which you can handle them as normal input. Started with prologue, continue with some more weather sensors.

If someone is interrested or want to give me a hand coding, pplease let me know. Written in python.

Best regards, Johan

Re: Using RTL_433 app as reciever

Posted: Tuesday 06 October 2015 6:52
by Koensk
deennoo wrote:yes, but can get one on EBAY for 8€.

A cheap 433mhz emiter can be buy for less than 1€ (actullaly i'm driving my cheap rc switch with one of this, and a lua script and that works like a charme, i'm on the way to get state of this rcswitch if somebody use the remote)

With this of course you have to made your own script and use differente app to make Domoticz as full fonctionnal it can, hobby time is free.
Do you still use this setup?
I also have this 433mhz transmitter but have no idea how to set this up with nu Rpi and Domoticz.

Re: Using RTL_433 app as reciever

Posted: Friday 09 October 2015 23:42
by alexsh1
Koensk wrote:
deennoo wrote: Do you still use this setup?
I also have this 433mhz transmitter but have no idea how to set this up with nu Rpi and Domoticz.
For what purposes do you need it? What is it you what to achieve?
If this is on/off switches - easy. LightwaveRF - a bit more complex.
I have a cheap transmitter and I soldered an antenna to it - works flawlessly!.

Re: Using RTL_433 app as reciever

Posted: Saturday 10 October 2015 11:52
by Koensk
alexsh1 wrote:
Koensk wrote:
deennoo wrote: Do you still use this setup?
I also have this 433mhz transmitter but have no idea how to set this up with nu Rpi and Domoticz.
For what purposes do you need it? What is it you what to achieve?
If this is on/off switches - easy. LightwaveRF - a bit more complex.
I have a cheap transmitter and I soldered an antenna to it - works flawlessly!.
Just for use with kaku or other 433mhz switches.
Can you show me how you've got your set up?

Re: Using RTL_433 app as reciever

Posted: Sunday 11 October 2015 15:52
by alexsh1
No idea what kaku switch is, but suppose this is a simple 433Mhz device.
You have to do proper wiring. Mine is wired as follows:

Transmitter:
VCC - +5V (Pin 2 or any other similar)
GRD - Ground (Pin 6 or any other similar)
DATA - Pin 11

Receiver:
VCC - +5V (Pin 2 or any other similar)
GRD - Ground (Pin 6 or any other similar)
DATA - Pin 13
There is another DATA pin. Just ignore it



Download 433 utils

1. git clone git://github.com/ninjablocks/433Utils.git
2. cd 433Kit/RPi_utils
3. Install wiringPi - please follow the instruction in the Gordon's web-site http://wiringpi.com
4. IMPORTANT: Edit sendcode.cpp and change the transmitter's pin number to "0" (int PIN = 0;), which corresponds to Pin 11 in wiringPi. For more information, please see http://wiringpi.com/pins. Do the same for RFSniffer.cpp (int PIN = 2;) corresponding to my wiring above.
5. make
6. Do sudo ./RFSniffer and scan the codes for the kaku.

Please check out the following link - https://github.com/ninjablocks/433Utils

Hope it helps.

Re: Using RTL_433 app as reciever

Posted: Sunday 11 October 2015 20:20
by Koensk
Alexsh1,

Thanks so much for your reply. I've got it all working and manage to switch this on and of using ssh.
I'm only still searching how to implement this in Domoticz. I think I have to make a scipt or something, but can this just be the lunix commands I use in ssh? And how do I add a switch in Domoticz if I can't add a one when there is no hardware recognized?
But again, thanks for helping me this far

Re: Using RTL_433 app as reciever

Posted: Tuesday 13 October 2015 1:36
by alexsh1
Koensk wrote:Alexsh1,

Thanks so much for your reply. I've got it all working and manage to switch this on and of using ssh.
I'm only still searching how to implement this in Domoticz. I think I have to make a scipt or something, but can this just be the lunix commands I use in ssh? And how do I add a switch in Domoticz if I can't add a one when there is no hardware recognized?
But again, thanks for helping me this far
You are welcome :D

Now an easy part - go to the Hardware section and add a Dummy - call it 433 or something. Then go to "Switches" - click Manual Light/Switch - create a switch with hardware "433" and the rest does not matter (just pick any parameter). So you have a switch now, right? Click edit and add the you command line command under:

On Action: script:///home/pi/****/codesend **** (this corresponds to the command line "on")
Off Action: script:///home/pi/****/codesend **** (this corresponds to the command line "off")

Let me know how you get on.

Re: Using RTL_433 app as reciever

Posted: Tuesday 13 October 2015 9:18
by Koensk
Ok putting all info together I finally got it working.
I didn't however put the commandline in the script path but the path to the script which contains the commands. Maybe a bit overdone but the command didn't work for me to put it in the scriptpath in fist instance.

So now I've got two scripts which are placed in the /domoticz/scipts folder
One is named kast.sh and looks like this.

Code: Select all

#!/bin/bash
sudo /home/pi/433Utils/RPi_utils/codesend 16404
I found out that making a script is not only done by making a text file. I had to run this

Code: Select all

$ chmod +x kast.sh
To change the file so it is recognized as a script.

Now inside domoticz things look like this:

Re: Using RTL_433 app as reciever

Posted: Wednesday 14 October 2015 4:24
by alexsh1
Apologies if I did not cover all steps, but I'd expect you to have some basic Linux knowledge (chmod is required for any script to run). FYG - this is not required to put the script inside Domoticz directory.

Most important you got it all working!!! Well done

Re: Using RTL_433 app as reciever

Posted: Friday 13 November 2015 20:33
by Koensk
uhm.
Things stopped working here.
I don't know why but the scripts still work when I give the command in putty. But Domoticz seems not be able to run them anymore?
Maybe because I ran an update of the program to a more recent version?

Anyone any idea?

Re: Using RTL_433 app as reciever

Posted: Saturday 14 November 2015 1:26
by alexsh1
Works fine in v.3586 for me

Double check your switch settings. On Action should be looking like "script:///home/pi/.........../codesend ******" (please note three slashes after the script)

Re: Using RTL_433 app as reciever

Posted: Sunday 15 November 2015 9:43
by Koensk
Ok I put the codes in like you suggested but I had to run this command first: "sudo chown -v pi codesend"
Now it al works again

Thank you

Re: Using RTL_433 app as reciever

Posted: Sunday 15 November 2015 23:26
by mverleun
I'm using a cheap RTL_433 receiver to record information from a wireless weather station.

In order to do so I wrote a small script that receives the information, does a bit of formatting and then publishes the information using MQTT.

In Domoticz I've setup a couple of devices for Rain, Temperature and Wind.
The script publishes the information for these devices based on their Idx in JSON format.

Works like a charm.