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>