I have started to use some wireless switches (magnetic reeds) on outside doors, sheds, access to my back garden etc which are 433Mhz. I use a Sonoff 433Mhz-RF bridge flashed with the popular "Tasmota" firmware to listen for anything on this frequency which it then relays via MQTT where/when I can easily deal with it. This is straight forward, one parses the "signature" of the sensor from a json string which allows your code to identify the switch and it's condition; open/closed etc
By default this device running Tasmota has 16 unique "codes" that it can transmit, each can be called with a MQTT topic/message. If you already use MQTT then this has the advantage of being able to control "most" devices on 433Mhz and listen for cheap and available wireless sensors also.
There is a web UI served by the device, this is pasted from the console when I press some of the buttons:
Code: Select all
03:01:29 MQT: stat/rfSensors/RESULT = {"RfKey1":"Default sent"}
03:01:31 MQT: stat/rfSensors/RESULT = {"RfKey2":"Default sent"}
03:01:33 MQT: stat/rfSensors/RESULT = {"RfKey3":"Default sent"}
03:01:36 MQT: stat/rfSensors/RESULT = {"RfKey4":"Default sent"}
03:01:39 MQT: stat/rfSensors/RESULT = {"RfKey16":"Default sent"}
HTH?
Garry