RF 433 code to MQTT

Client tools or tools that can connect with Domoticz. Tools for Windows, iOS, Android, Linux etc.

Moderator: leecollings

Post Reply
voyo
Posts: 40
Joined: Monday 17 February 2020 19:16
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Poland
Contact:

RF 433 code to MQTT

Post by voyo »

Hi,
I've wrote another (hopefully) useful tool, which allows to sniff for all RF 433 Mhz messages and pass them directly to MQTT topic.
Tool is not depended on any particular controller, will work with Domoticz and anything else what can listen on mqtt topic, everything is highly configurable.
I did this as an enhancement to original 433Utils, rc-switch and wiringpi library. In my case it is working on Raspberry PI, but I think it should work on other devices where wiringpi is working.
Motivation for me was that I don't have a 'proper' RF bridge device , like RFlink, and I never could setup correctly any native Domoticz mechanism to listen to RF 433 messages with hardware that I have - cheapest China RF module for 1$ (FS1000A, XY-MK-5V and other similar)

Anyway, here is code (my branch on github) -
https://github.com/voyo/433Utils/tree/master/RF2mqtt
you have to clone all the repo, as needed is whole library including rc-switch.

example content of the config file ("config.xml" ):

Code: Select all

<configuration name="my domoticz">
        <mqtt_server host="10.0.0.111" port="1883" topic="domoticz/in" />
        <entries>
                <entry id="1" value="1230321" name="Button1" >
                        <mqtt_msg>{"idx":58,"nvalue":1,"svalue":"1"}</mqtt_msg>
                </entry>
                <entry id="2" value="1236069531" name="PIR" >
                        <mqtt_msg>{"idx":57,"nvalue":1,"svalue":"1"}</mqtt_msg>
                </entry>
                <entry id="3" value="1233401" name="dzwi_lazienka" >
                        <mqtt_msg>{"idx":56,"nvalue":1,"svalue":"1"}</mqtt_msg>
                </entry>
        </entries>
</configuration>
Tool is capable to listen and understand every message that RFSniffer is.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest