What did I miss?

Hello,

first thanks for providing us OpenMQTTGateway!
I am using Rfxtrx433 USB device to monitor various 433Mhz devices with my Domoticz server. I also have Mosquitto running on this server (for Zigbee2MQTT and Tasmotta). It works, but as my home is quite large and as the Rfxtrx is and USB device attached to the server, I have a few problems with some far away devices. My goal is to use several openMQTTGateways in different locations to solve this.

So I flashed esp32dev-rtl_433 on an ESP32 attached to an CC1110 module. it seems to work, but no 433 message is decoded despite at least one of the 433 devices is on my desk neat to the gateway… I think I missed something in setting up the gateway. Anyone to help me? This is my log:

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13192
load:0x40080400,len:3028
entry 0x400805e4
N: 
************* WELCOME TO OpenMQTTGateway **************
[   169][E][Preferences.cpp:50] begin(): nvs_open failed: NOT_FOUND
N: SYS config not found
N: OpenMQTTGateway Version: v1.8.1
T: mounting FS...
T: mounted file system
T: reading config file
T: opened config file
T: 
parsed json, size: 1643
N: OTA server cert hash: 02118cbaf5cc02748398d93ecdb0ef2a444c37358a617bfb2206dfe351dc7cf2
N: Config loaded from flash
T: mounted file system
N: Attempting Wifi connection with saved AP: 0
T: OpenMQTTGateway mac: F4:65:0B:54:A5:48
T: OpenMQTTGateway ip: 192.168.1.25
T: OpenMQTTGateway index 0
T: OpenMQTTGateway mqtt topic: home/
T: OpenMQTTGateway mqtt discovery prefix: homeassistant
T: OpenMQTTGateway gateway name: OMG_rtl_433_ESP
T: OpenMQTTGateway mqtt server: 192.168.1.156
T: OpenMQTTGateway mqtt port: 1883
T: OpenMQTTGateway mqtt user: your_username
T: OpenMQTTGateway secure connection: false
T: OpenMQTTGateway validate cert: false
[  1417][E][Preferences.cpp:50] begin(): nvs_open failed: NOT_FOUND
N: No WebUI config to load
T: [WebUI] displayMetric true
T: [WebUI] WebUI Secure true
N: OpenMQTTGateway URL: http://192.168.1.25/
N: ZwebUI setup done
[  2935][E][Preferences.cpp:50] begin(): nvs_open failed: NOT_FOUND
N: RF Config not found using default
T: enableActiveReceiver: 3
N: C1101 spi Connection OK
N: Enable RTL_433 Receiver: 433.92Mhz
rtl_433_ESP(6): CC1101 gpio receive pin: 12
rtl_433_ESP(6): CC1101 receive frequency: 433.920013
rtl_433_ESP(6): # of device(s) configured 157
rtl_433_ESP(6): ssizeof(r_device): 112
rtl_433_ESP(6): cfg->devices size: 17584
T: ZgatewayRTL_433 command topic: home/OMG_rtl_433_ESP/commands/MQTTtoRF/config
N: ZgatewayRTL_433 setup done 
T: mqtt_max_payload_size: 1184
N: Offline disabled
N: OpenMQTTGateway modules: ["WebUI","rtl_433"]
N: ************** Setup OpenMQTTGateway end **************
N: Reconfiguring MQTT client...
T: Mqtt server: 192.168.1.156
T: Port: 1883
N: Update check, free heap: 108332N: Using memory cert
T: HttpCode 200
T: Payload {
    "latest_version": "v1.8.1",
    "title": "OpenMQTTGateway",
    "release_url": "https://github.com/1technophile/OpenMQTTGateway/releases/tag/v1.8.1"
}
N: Update check done, free heap: 60888T: Enqueue JSON
T: Queue length: 1
T: Update file found on server
N: Connected to broker
N: [ OMG->MQTT ] topic: home/OMG_rtl_433_ESP/LWT msg: online 
T: omgStatusDiscovery
T: Announce Device binary_sensor on  homeassistant/binary_sensor/F4650B54A548-connectivity/config
T: Enqueue JSON
T: Queue length: 2
T: Announce Device sensor on  homeassistant/sensor/F4650B54A548-uptime/config
T: Enqueue JSON
T: Queue length: 3
T: Announce Device sensor on  homeassistant/sensor/F4650B54A548-freemem/config
T: Enqueue JSON
T: Queue length: 4
T: Announce Device sensor on  homeassistant/sensor/F4650B54A548-ip/config
T: Enqueue JSON
T: Queue length: 5
T: Announce Device switch on  homeassistant/switch/F4650B54A548-disc/config
T: Enqueue JSON
T: Queue length: 6
T: Announce Device switch on  homeassistant/switch/F4650B54A548-ohdisc/config
T: Enqueue JSON
T: Queue length: 7
T: Announce Device sensor on  homeassistant/sensor/F4650B54A548-rssi/config
T: Enqueue JSON
T: Queue length: 8
T: Announce Device sensor on  homeassistant/sensor/F4650B54A548-tempc/config
T: Enqueue JSON
T: Queue length: 9
T: Announce Device button on  homeassistant/button/F4650B54A548-restart/config
T: Enqueue JSON
T: Queue length: 10
T: Announce Device button on  homeassistant/button/F4650B54A548-erase/config
T: Enqueue JSON
T: Queue length: 11
T: Announce Device update on  homeassistant/update/F4650B54A548-update/config
T: Enqueue JSON
T: Queue length: 12
T: Enqueue JSON
T: Queue length: 13
N: SYS json: {"uptime":4,"version":"v1.8.1","mqtt":true,"serial":false,"disc":true,"ohdisc":false,"env":"esp32dev-rtl_433","freemem":97488,"mqttp":"1883","mqtts":false,"mqttv":false,"msgprc":0,"msgblck":0,"msgrcv":12,"maxq":0,"cnt_index":0,"minmem":45632,"tempc":46.67,"freestck":3532,"powermode":-1,"eth":false,"rssi":-64,"SSID":"Lejardindesfleurs","BSSID":"02:EB:D8:29:08:6A","ip":"192.168.1.25","mac":"F4:65:0B:54:A5:48","modules":"'WebUI', 'rtl_433'","origin":"/SYStoMQTT"}
T: Enqueue JSON
T: Queue length: 14
T: Enqueue JSON
T: Queue length: 15
T: Dequeue JSON
N: [ OMG->MQTT ] topic: home/OMG_rtl_433_ESP/RLStoMQTT msg: {"latest_version":"v1.8.1","title":"OpenMQTTGateway","release_url":"https://github.com/1technophile/OpenMQTTGateway/releases/tag/v1.8.1","installed_version":"v1.8.1","entity_picture":"https://github.com/1technophile/OpenMQTTGateway/raw/development/docs/img/Openmqttgateway_logo_mini_margins.png","release_summary":""} 
T: Dequeue JSON
N: [ OMG->MQTT ] topic: homeassistant/binary_sensor/F4650B54A548-connectivity/config msg: {"stat_t":"home/OMG_rtl_433_ESP/LWT","avty_t":"home/OMG_rtl_433_ESP/LWT","name":"SYS: Connectivity","uniq_id":"F4650B54A548-connectivity","pl_on":"online","pl_off":"offline","pl_avail":"online","pl_not_avail":"offline","device":{"ids":["F4650B54A548"],"name":"OMG_rtl_433_ESP","mdl":"[\"WebUI\",\"rtl_433\"]","mf":"OMG_community","cu":"http://192.168.1.25/","sw":"v1.8.1"}} 
T: Dequeue JSON
N: [ OMG->MQTT ] topic: homeassistant/sensor/F4650B54A548-uptime/config msg: {"stat_t":"home/OMG_rtl_433_ESP/SYStoMQTT","avty_t":"home/OMG_rtl_433_ESP/LWT","dev_cla":"duration","unit_of_meas":"s","name":"SYS: Uptime","uniq_id":"F4650B54A548-uptime","val_tpl":"{{ value_json.uptime }}","pl_avail":"online","pl_not_avail":"offline","stat_cla":"measurement","device":{"ids":["F4650B54A548"],"name":"OMG_rtl_433_ESP","mdl":"[\"WebUI\",\"rtl_433\"]","mf":"OMG_community","cu":"http://192.168.1.25/","sw":"v1.8.1"}} 
T: Dequeue JSON
N: [ OMG->MQTT ] topic: homeassistant/sensor/F4650B54A548-freemem/config msg: {"stat_t":"home/OMG_rtl_433_ESP/SYStoMQTT","avty_t":"home/OMG_rtl_433_ESP/LWT","dev_cla":"data_size","unit_of_meas":"B","name":"SYS: Free memory","uniq_id":"F4650B54A548-freemem","val_tpl":"{{ value_json.freemem }}","pl_avail":"online","pl_not_avail":"offline","stat_cla":"measurement","device":{"ids":["F4650B54A548"],"name":"OMG_rtl_433_ESP","mdl":"[\"WebUI\",\"rtl_433\"]","mf":"OMG_community","cu":"http://192.168.1.25/","sw":"v1.8.1"}} 
T: Dequeue JSON
N: [ OMG->MQTT ] topic: homeassistant/sensor/F4650B54A548-ip/config msg: {"stat_t":"home/OMG_rtl_433_ESP/SYStoMQTT","avty_t":"home/OMG_rtl_433_ESP/LWT","name":"SYS: IP","uniq_id":"F4650B54A548-ip","val_tpl":"{{ value_json.ip }}","pl_avail":"online","pl_not_avail":"offline","device":{"ids":["F4650B54A548"],"name":"OMG_rtl_433_ESP","mdl":"[\"WebUI\",\"rtl_433\"]","mf":"OMG_community","cu":"http://192.168.1.25/","sw":"v1.8.1"}} 
T: Dequeue JSON
N: [ OMG->MQTT ] topic: homeassistant/switch/F4650B54A548-disc/config msg: {"stat_t":"home/OMG_rtl_433_ESP/SYStoMQTT","avty_t":"home/OMG_rtl_433_ESP/LWT","name":"SYS: Auto discovery","uniq_id":"F4650B54A548-disc","val_tpl":"{{ value_json.disc }}","pl_on":"{\"disc\":true,\"save\":true}","pl_off":"{\"disc\":false,\"save\":true}","pl_avail":"online","pl_not_avail":"offline","stat_on":true,"stat_off":false,"cmd_t":"home/OMG_rtl_433_ESP/commands/MQTTtoSYS/config","device":{"ids":["F4650B54A548"],"name":"OMG_rtl_433_ESP","mdl":"[\"WebUI\",\"rtl_433\"]","mf":"OMG_community","cu":"http://192.168.1.25/","sw":"v1.8.1"}} 
T: Dequeue JSON
N: [ OMG->MQTT ] topic: homeassistant/switch/F4650B54A548-ohdisc/config msg: {"stat_t":"home/OMG_rtl_433_ESP/SYStoMQTT","avty_t":"home/OMG_rtl_433_ESP/LWT","name":"SYS: OpenHAB discovery","uniq_id":"F4650B54A548-ohdisc","val_tpl":"{{ value_json.ohdisc }}","pl_on":"{\"ohdisc\":true,\"save\":true}","pl_off":"{\"ohdisc\":false,\"save\":true}","pl_avail":"online","pl_not_avail":"offline","stat_on":true,"stat_off":false,"cmd_t":"home/OMG_rtl_433_ESP/commands/MQTTtoSYS/config","device":{"ids":["F4650B54A548"],"name":"OMG_rtl_433_ESP","mdl":"[\"WebUI\",\"rtl_433\"]","mf":"OMG_community","cu":"http://192.168.1.25/","sw":"v1.8.1"}} 
T: Dequeue JSON
N: [ OMG->MQTT ] topic: homeassistant/sensor/F4650B54A548-rssi/config msg: {"stat_t":"home/OMG_rtl_433_ESP/SYStoMQTT","avty_t":"home/OMG_rtl_433_ESP/LWT","dev_cla":"signal_strength","unit_of_meas":"dB","name":"SYS: RSSI","uniq_id":"F4650B54A548-rssi","val_tpl":"{{ value_json.rssi }}","pl_avail":"online","pl_not_avail":"offline","device":{"ids":["F4650B54A548"],"name":"OMG_rtl_433_ESP","mdl":"[\"WebUI\",\"rtl_433\"]","mf":"OMG_community","cu":"http://192.168.1.25/","sw":"v1.8.1"}} 
T: Dequeue JSON
N: [ OMG->MQTT ] topic: homeassistant/sensor/F4650B54A548-tempc/config msg: {"stat_t":"home/OMG_rtl_433_ESP/SYStoMQTT","avty_t":"home/OMG_rtl_433_ESP/LWT","dev_cla":"temperature","unit_of_meas":"°C","name":"SYS: Internal temperature","uniq_id":"F4650B54A548-tempc","val_tpl":"{{ value_json.tempc  | round(1)}}","pl_avail":"online","pl_not_avail":"offline","stat_cla":"measurement","device":{"ids":["F4650B54A548"],"name":"OMG_rtl_433_ESP","mdl":"[\"WebUI\",\"rtl_433\"]","mf":"OMG_community","cu":"http://192.168.1.25/","sw":"v1.8.1"}} 
T: Dequeue JSON
N: [ OMG->MQTT ] topic: homeassistant/button/F4650B54A548-restart/config msg: {"stat_t":"home/OMG_rtl_433_ESP/LWT","avty_t":"home/OMG_rtl_433_ESP/LWT","dev_cla":"restart","name":"SYS: Restart gateway","uniq_id":"F4650B54A548-restart","pl_prs":"{\"cmd\":\"restart\"}","pl_avail":"online","pl_not_avail":"offline","cmd_t":"home/OMG_rtl_433_ESP/commands/MQTTtoSYS/config","device":{"ids":["F4650B54A548"],"name":"OMG_rtl_433_ESP","mdl":"[\"WebUI\",\"rtl_433\"]","mf":"OMG_community","cu":"http://192.168.1.25/","sw":"v1.8.1"}} 
T: Dequeue JSON
N: [ OMG->MQTT ] topic: homeassistant/button/F4650B54A548-erase/config msg: {"stat_t":"home/OMG_rtl_433_ESP/LWT","avty_t":"home/OMG_rtl_433_ESP/LWT","name":"SYS: Erase credentials","uniq_id":"F4650B54A548-erase","pl_prs":"{\"cmd\":\"erase\"}","pl_avail":"online","pl_not_avail":"offline","cmd_t":"home/OMG_rtl_433_ESP/commands/MQTTtoSYS/config","device":{"ids":["F4650B54A548"],"name":"OMG_rtl_433_ESP","mdl":"[\"WebUI\",\"rtl_433\"]","mf":"OMG_community","cu":"http://192.168.1.25/","sw":"v1.8.1"}} 
T: Dequeue JSON
N: [ OMG->MQTT ] topic: homeassistant/update/F4650B54A548-update/config msg: {"stat_t":"home/OMG_rtl_433_ESP/RLStoMQTT","avty_t":"home/OMG_rtl_433_ESP/LWT","name":"SYS: Firmware Update","uniq_id":"F4650B54A548-update","pl_inst":"{\"version\":\"latest\"}","pl_avail":"online","pl_not_avail":"offline","cmd_t":"home/OMG_rtl_433_ESP/commands/MQTTtoSYS/firmware_update","device":{"ids":["F4650B54A548"],"name":"OMG_rtl_433_ESP","mdl":"[\"WebUI\",\"rtl_433\"]","mf":"OMG_community","cu":"http://192.168.1.25/","sw":"v1.8.1"}} 
T: Dequeue JSON
N: [ OMG->MQTT ] topic: home/OMG_rtl_433_ESP/SYStoMQTT msg: {"uptime":4,"version":"v1.8.1","mqtt":true,"serial":false,"disc":true,"ohdisc":false,"env":"esp32dev-rtl_433","freemem":97488,"mqttp":"1883","mqtts":false,"mqttv":false,"msgprc":0,"msgblck":0,"msgrcv":12,"maxq":0,"cnt_index":0,"minmem":45632,"tempc":46.67,"freestck":3532,"powermode":-1,"eth":false,"rssi":-64,"SSID":"Lejardindesfleurs","BSSID":"02:EB:D8:29:08:6A","ip":"192.168.1.25","mac":"F4:65:0B:54:A5:48","modules":["WebUI","rtl_433"]} 
T: Dequeue JSON
N: [ OMG->MQTT ] topic: home/OMG_rtl_433_ESP/RFtoMQTT msg: {"active":3,"frequency":433.92,"rssithreshold":-82,"rssi":-86,"avgrssi":0,"count":0,"rtl433_stack":10904} 
T: Dequeue JSON
N: [ OMG->MQTT ] topic: home/OMG_rtl_433_ESP/WebUItoMQTT msg: {"displayMetric":true,"webUISecure":true,"displayQueue":0} 
rtl_433_ESP(6): Ignored Signal length: 9, Time since last bit length: 2714, Gap length: 75677, Signal RSSI: -81, Current RSSI: -82, pulses: 0, noise count: 0
rtl_433_ESP(6): Ignored Signal length: 63, Time since last bit length: 1825, Gap length: 52627, Signal RSSI: -81, Current RSSI: -82, pulses: 0, noise count: 0
rtl_433_ESP(6): Ignored Signal length: 3046, Time since last bit length: 1222, Gap length: 89199, Signal RSSI: -79, Current RSSI: -82, pulses: 0, noise count: 0
rtl_433_ESP(6): Ignored Signal length: 5, Time since last bit length: 1298, Gap length: 4715, Signal RSSI: -81, Current RSSI: -82, pulses: 0, noise count: 0
rtl_433_ESP(6): Ignored Signal length: 877, Time since last bit length: 1170, Gap length: 81123, Signal RSSI: -80, Current RSSI: -82, pulses: 0, noise count: 0
rtl_433_ESP(6): Ignored Signal length: 1460, Time since last bit length: 1370, Gap length: 97395, Signal RSSI: -81, Current RSSI: -82, pulses: 0, noise count: 0
rtl_433_ESP(6): Ignored Signal length: 335, Time since last bit length: 1278, Gap length: 2201, Signal RSSI: -81, Current RSSI: -82, pulses: 0, noise count: 0
rtl_433_ESP(6): Ignored Signal length: 26062, Time since last bit length: 1391, Gap length: 82589, Signal RSSI: -80, Current RSSI: -82, pulses: 0, noise count: 0
rtl_433_ESP(6): Ignored Signal length: 2680, Time since last bit length: 1147, Gap length: 71740, Signal RSSI: -80, Current RSSI: -82, pulses: 0, noise count: 0
rtl_433_ESP(6): Ignored Signal length: 5, Time since last bit length: 1275, Gap length: 1622, Signal RSSI: -81, Current RSSI: -82, pulses: 0, noise count: 0
rtl_433_ESP(6): Ignored Signal length: 2225, Time since last bit length: 1203, Gap length: 81886, Signal RSSI: -80, Current RSSI: -82, pulses: 0, noise count: 0
rtl_433_ESP(6): Ignored Signal length: 9, Time since last bit length: 1306, Gap length: 6743, Signal RSSI: -81, Current RSSI: -82, pulses: 0, noise count: 0
rtl_433_ESP(6): Ignored Signal length: 23000, Time since last bit length: 1395, Gap length: 79021, Signal RSSI: -71, Current RSSI: -82, pulses: 0, noise count: 0
rtl_433_ESP(6): Ignored Signal length: 1434, Time since last bit length: 1171, Gap length: 77970, Signal RSSI: -80, Current RSSI: -82, pulses: 0, noise count: 0
rtl_433_ESP(6): Ignored Signal length: 1124, Time since last bit length: 1361, Gap length: 96672, Signal RSSI: -80, Current RSSI: -82, pulses: 0, noise count: 0
rtl_433_ESP(6): Ignored Signal length: 1715, Time since last bit length: 1354, Gap length: 96821, Signal RSSI: -80, Current RSSI: -82, pulses: 0, noise count: 0
rtl_433_ESP(6): Ignored Signal length: 1293, Time since last bit length: 1295, Gap length: 5267, Signal RSSI: -80, Current RSSI: -82, pulses: 0, noise count: 0
rtl_433_ESP(6): Ignored Signal length: 1232, Time since last bit length: 1203, Gap length: 82356, Signal RSSI: -80, Current RSSI: -82, pulses: 0, noise count: 0
rtl_433_ESP(6): Ignored Signal length: 1868, Time since last bit length: 1386, Gap length: 96863, Signal RSSI: -80, Current RSSI: -82, pulses: 0, noise count: 0

Michael,
two quick thoughts:

  1. are the devices actually too close, that can overload the receiver.
  2. What device decoders are running?
    Dave

Dbuggz,
thanks for your help.

1 → no, even as they are far, moved a device in the same room to be sure that at least one is near enought.
2 → what do you mean? I use an esp32 (+c1110) flashed with esp32dev-rtl_433.

Hi @Michel

Which specific 433MHz device(s) is it that you want to receive? And are you sure that they are rtl_433 devices, and that decoders for them are included in the rtl_433_ESP library, which the esp32dev-rtl_433 OpenMQTTGateway binary uses? And if so, are they OOK or possibly FSK devices?

Or might they actually be 433MHz devices which require a completely different protocol for decoding, like RCSwitch, KaKu or Pilight - which would require different binaries to be installed?

EDIT Rereading your OP where you mention your USB connected Rfxtrx, it’s most likely the latter case, that your devices are not rtl_433 devices at all;, but require one of the other 433MHz protocols, i. e. a different binary installed on your ESP32/CC1101.

It’d still be good to know exactly which devices your are talking about :wink:

Michel,
I don’t’ think that rtl_433 has a decoder for the RFX protocol. See Support RFXcom receivers · Issue #1088 · merbanan/rtl_433 · GitHub .
You can see the devices on the Devices page Theengs Compatible BLE devices Not all of those are included in the pre-compiled distribution, so you may have to build your own binary if you can find one that handles RFX, but I couldn’t see any.
I suggest you open another question asking about support for your actual device.

Dave

Tried many actions to solve this with no success until I used an other identical ESP32 and IT WORKS. Really don’t understand what happened.