Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. English
    3. Development
    4. New Adapter for rtl_433 incoming data

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    New Adapter for rtl_433 incoming data

    This topic has been deleted. Only users with topic management privileges can see it.
    • phillipssc
      phillipssc @vogtländer last edited by

      @vogtländer - What does your command line look like on the first tab of the setup page?

      V 2 Replies Last reply Reply Quote 0
      • V
        vogtländer @phillipssc last edited by

        @phillipssc That was without input in the adapter and without rtl_433.conf
        when i enter my frequency it looks like this:
        rtl_433.0 2021-04-02 10:53:24.746 debug (5309) rtl_433.0.TFA-Pool-28: dead
        rtl_433.0 2021-04-02 10:53:24.682 debug (5309) Checking for dead devices...
        rtl_433.0 2021-04-02 10:53:08.926 debug (5309) sendTo "rtl_433" to system.adapter.admin.0 from system.adapter.rtl_433.0
        rtl_433.0 2021-04-02 10:53:07.858 debug (5309) sendTo "rtl_433" to system.adapter.admin.0 from system.adapter.rtl_433.0
        rtl_433.0 2021-04-02 10:53:06.770 debug (5309) sendTo "rtl_433" to system.adapter.admin.0 from system.adapter.rtl_433.0
        rtl_433.0 2021-04-02 10:53:05.727 debug (5309) sendTo "rtl_433" to system.adapter.admin.0 from system.adapter.rtl_433.0
        rtl_433.0 2021-04-02 10:53:04.688 debug (5309) sendTo "rtl_433" to system.adapter.admin.0 from system.adapter.rtl_433.0
        rtl_433.0 2021-04-02 10:53:03.653 debug (5309) sendTo "rtl_433" to system.adapter.admin.0 from system.adapter.rtl_433.0
        rtl_433.0 2021-04-02 10:53:02.518 debug (5309) sendTo "rtl_433" to system.adapter.admin.0 from system.adapter.rtl_433.0
        rtl_433.0 2021-04-02 10:53:02.487 debug (5309) sendTo "listSerial" to system.adapter.admin.0 from system.adapter.rtl_433.0
        rtl_433.0 2021-04-02 10:52:54.676 info (5309) Go to https://github.com/merbanan/rtl_433 to for installation instructions
        rtl_433.0 2021-04-02 10:52:54.674 error (5309) rtl_433 error: {"code":"ERR_INVALID_ARG_VALUE"}
        rtl_433.0 2021-04-02 10:52:54.659 info (5309) spawning: -F json -C -f 868000000
        rtl_433B1.png
        Another question where can you set the sample rate.
        I would test the frequency change if the basic settings work

        1 Reply Last reply Reply Quote 0
        • K
          klassisch Most Active last edited by klassisch

          Thanks for developing this adapter and contributing to the ioBroker community.
          I am widely using 433 sensors. To integrate into ioBroker I am curently using RFLink which uses cheap RXB6 receivers and an arduino Mega 2560 to decode the received messages. An ioBroker adapter manages the messages into the objects folders, the pairing etc.
          As far as I understood, your adapter does similar things:

          • transceiver is a common USB SDR-stick such as Realtek RTL2832 based units
          • as a decoder serves the rtl_433 SW (which also is available for Windows). This is where the "magic happens" and novel units have to be implemented
          • your adapter glues the rtl_433 project to ioBroker, supplying a HMI for pairing and organized the object folders.

          Did I get this correctly?

          V phillipssc 2 Replies Last reply Reply Quote 0
          • V
            vogtländer @phillipssc last edited by

            @phillipssc
            Hello, I've now found time to deal with the problem.
            I updated the rtl_433 installation (not adapter). After that I got better logs and could
            customize the command line like this:
            rtl_433 -F json -f 868000000 -s 1024000 -f 433920000 -s 250000 -H 300 and it runs.
            I think there is the problem in the adapter that the command line is not created correctly.
            Still, the adapter is awesome!

            phillipssc 1 Reply Last reply Reply Quote 0
            • V
              vogtländer @klassisch last edited by

              @klassisch
              yes this is how the adapter works.
              It recognizes a large number of devices and also works simultaneously in the frequency range of approx. 433-868Mhz. The only disadvantage as far as I know you can only receive data.
              Sending is not possible.

              K 1 Reply Last reply Reply Quote 1
              • K
                klassisch Most Active @vogtländer last edited by

                @vogtländer sagte in New Adapter for rtl_433 incoming data:

                Sending is not possible.

                For me that would be no limitation. Althoug RFLink also supports transmitting, I neither use it nor need it. Most of the 433MHz units do not have a backward channel and are 2nd choice for actuators. For actuators I prefer Homematic, Shelly, Zigbee.

                As far as I am informed, the RTL2832 has an on chip integrated USB interface. This could be a disadvantage for my mode of operation. I modified the arduino Mega for usage over Ethernet. This makes me independent of the location of my ioBroker computer.

                phillipssc 1 Reply Last reply Reply Quote 0
                • phillipssc
                  phillipssc @vogtländer last edited by

                  @vogtländer - It looks like it had to do with unit conversion. It would have been interesting to see what that said - but I will cover it in the next round none the less.

                  1 Reply Last reply Reply Quote 0
                  • phillipssc
                    phillipssc @klassisch last edited by

                    @klassisch said in New Adapter for rtl_433 incoming data:

                    apter glues the rtl_433

                    Yes, that's precisely it, and as mentioned incoming messages only

                    1 Reply Last reply Reply Quote 0
                    • phillipssc
                      phillipssc @klassisch last edited by

                      @klassisch "This makes me independent of the location of my ioBroker computer." You can use this as such in this adapter too. Rtl_433 runs on top of Rtl-sdr. You can run rtl_sdr on a Raspberry Pi with the dongle in tcp_ip mode. Feed the params into rtl_433 (which my adapter supports) and it will connect to the remote computer for the data. Better instructions are in my README

                      K R 2 Replies Last reply Reply Quote 0
                      • K
                        klassisch Most Active @phillipssc last edited by klassisch

                        @phillipssc because ioBroker supports multihost operation, this is always an (additional) option. You can also run your adapter on a raspi (or similar) as an ioBroker slave.

                        1 Reply Last reply Reply Quote 1
                        • R
                          Radi @phillipssc last edited by Radi

                          @phillipssc Could You please explain the settings for tcp_ip mode. I'am not able to get it working. I get these messages:

                          rtl_433.0
                          	2021-09-28 17:52:52.688	debug	rtl_433 ret: -2:null
                          rtl_433.0
                          	2021-09-28 17:52:52.687	info	Go to https://github.com/merbanan/rtl_433 to for installation instructions
                          rtl_433.0
                          	2021-09-28 17:52:52.686	error	rtl_433 is not found on the system. Please check the installation of rtl_433
                          rtl_433.0
                          	2021-09-28 17:52:52.682	info	spawning: rtl_tcp=192.168.69.140
                          rtl_433.0
                          	2021-09-28 17:52:52.626	debug	Checking for dead devices...
                          rtl_433.0
                          	2021-09-28 17:52:22.625	debug	Checking for dead devices...
                          rtl_433.0
                          	2021-09-28 17:51:52.624	debug	Checking for dead devices...
                          rtl_433.0
                          	2021-09-28 17:51:22.624	debug	Checking for dead devices...
                          rtl_433.0
                          	2021-09-28 17:51:12.681	debug	killing rtl_433
                          rtl_433.0
                          	2021-09-28 17:51:12.680	error	rtl_433 disconnected, reconnecting in 100s ...
                          rtl_433.0
                          	2021-09-28 17:51:12.680	debug	rtl_433 ret: -2:null
                          rtl_433.0
                          	2021-09-28 17:51:12.678	info	Go to https://github.com/merbanan/rtl_433 to for installation instructions
                          rtl_433.0
                          	2021-09-28 17:51:12.677	error	rtl_433 is not found on the system. Please check the installation of rtl_433
                          rtl_433.0
                          	2021-09-28 17:51:12.673	info	spawning: rtl_tcp=192.168.69.140
                          rtl_433.0
                          	2021-09-28 17:50:52.624	debug	Checking for dead devices...
                          rtl_433.0
                          	2021-09-28 17:50:34.582	silly	redis message expired/evicted __keyevent@0__:expired:io.system.adapter.dwd.0.connected
                          rtl_433.0
                          	2021-09-28 17:50:22.624	debug	Checking for dead devices...
                          rtl_433.0
                          	2021-09-28 17:49:52.672	debug	killing rtl_433
                          rtl_433.0
                          	2021-09-28 17:49:52.672	error	rtl_433 disconnected, reconnecting in 80s ...
                          rtl_433.0
                          	2021-09-28 17:49:52.671	debug	rtl_433 ret: -2:null
                          rtl_433.0
                          	2021-09-28 17:49:52.669	info	Go to https://github.com/merbanan/rtl_433 to for installation instructions
                          rtl_433.0
                          	2021-09-28 17:49:52.669	error	rtl_433 is not found on the system. Please check the installation of rtl_433
                          rtl_433.0
                          	2021-09-28 17:49:52.663	info	spawning: rtl_tcp=192.168.69.140
                          rtl_433.0
                          	2021-09-28 17:49:52.623	debug	Checking for dead devices...
                          rtl_433.0
                          	2021-09-28 17:49:22.623	debug	Checking for dead devices...
                          
                          phillipssc 1 Reply Last reply Reply Quote 0
                          • phillipssc
                            phillipssc @Radi last edited by phillipssc

                            @radi - Sorry I didn't see this sooner.

                            If you want to use TCP/IP to read an adapter. The remote host with the RTL-SDR dongle must be running rtl_sdr (rtl_tcp is included with the dist). Then on that host you would run the command:

                            rtl_tcp -a hostname -I <ip address>

                            On your ioBroker server you will need to run rtl_433 (which also requires rtl_sdr) and configure the instance with the ip address. You can take ioBroker out of the picture for testing and run the command:

                            rtl_433 -F json -d rtl_tcp://<ip address>:1234

                            In each case the <ip address> would be the address of the host with the RTL-SDR dongle - presumably 192.168.69.140

                            From the looks of the log provided rtl_433 is not installed on the ioBroker host yet

                            W 1 Reply Last reply Reply Quote 0
                            • w00dst0ck
                              w00dst0ck last edited by

                              Hello @phillipssc,
                              I've installed your adapter yesterday and it works very well.
                              But I've got a problem when I restart the adapter in iobroker.

                              The spawned subprocess ob rtl_433 won't be killed and on the next restart it' not possible to start a new instance of rtl_433 because the usb device is blocked by the older process.

                              Any advice?

                              E 1 Reply Last reply Reply Quote 0
                              • E
                                Elmar Faber @w00dst0ck last edited by

                                @w00dst0ck @phillipssc I have the same problem, is there a chance to solve the problem?

                                w00dst0ck 1 Reply Last reply Reply Quote 0
                                • w00dst0ck
                                  w00dst0ck @Elmar Faber last edited by

                                  @elmar-faber as you can see, my question is unanswered.

                                  1 Reply Last reply Reply Quote 0
                                  • W
                                    Wolfi @phillipssc last edited by Wolfi

                                    @phillipssc

                                    help can't get it to work in iobroker (TCP/IP)

                                    what command on the RTL-SDR host

                                    and which one in the iobroker adapter ??

                                    Please be more specific command with example IP

                                    42e2f40f-24b5-4e57-bb76-5e20f91e1693-image.png f91a5d7e-c3aa-4b51-91f7-4c752878e7d6-image.png

                                    phillipssc 1 Reply Last reply Reply Quote 0
                                    • phillipssc
                                      phillipssc @Wolfi last edited by phillipssc

                                      @wolfi Sorry I missed this. I'm not sure what the test you did makes sense. What happens if you run rtl_433 -F json -d rtl_tcp://192.168.178.153:1234 ?

                                      R 1 Reply Last reply Reply Quote 0
                                      • R
                                        Radi @phillipssc last edited by

                                        @phillipssc
                                        Could You please explain, what is going wrong here and how to fix it?

                                        rtl_433.0
                                        	2023-11-02 12:40:55.617	error	Error: Parameter "parentChannel" needs to be of type "string" but type "undefined" has been passed
                                        rtl_433.0
                                        	2023-11-02 12:40:55.617	debug	Creating State rain_mm on TFA-Drop-538256
                                        rtl_433.0
                                        	2023-11-02 12:40:55.617	error	Error: Parameter "parentChannel" needs to be of type "string" but type "undefined" has been passed
                                        rtl_433.0
                                        	2023-11-02 12:40:55.616	debug	Creating State battery_ok on TFA-Drop-538256
                                        rtl_433.0
                                        	2023-11-02 12:40:55.615	debug	rtl_433:{"time":"2023-11-02 12:40:55","protocol":147,"model":"TFA-Drop","id":538256,"battery_ok":1,"rain_mm":2.794,"mic":"CHECKSUM","mod":"ASK","freq":433.902,"rssi":-4.738,"snr":15.883,"noise":-20.621}
                                        rtl_433.0
                                        	2023-11-02 12:40:28.695	debug	rtl_433.0.TFA-Drop-538256: ok
                                        

                                        There is another Sensor for wind running well. The rainsensor has got new batterys and has changed the number to TFA-Drop-538256.

                                        mcm1957 1 Reply Last reply Reply Quote 0
                                        • mcm1957
                                          mcm1957 @Radi last edited by

                                          @radi

                                          I suggest to report issues using an github issue at adapter repository.

                                          R 1 Reply Last reply Reply Quote 0
                                          • R
                                            Radi @mcm1957 last edited by Radi

                                            @mcm57 The issue is existing since Sep. the 28th made by Vetinari1977. Nothing to forget. 😉

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            872
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            adapter
                                            11
                                            34
                                            6038
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo