Rtl_433 Discovery Path & Device Filter

Hello OpenMQTTGateway Experts,

I have been using a RTLSDR dongle to let my HA listen to a Bresser 7-in-1 weather station. I wanted to get rid of the RTLSDR and switch to an ESP32 with a CC1011 that I had lying around from a previous project. I tried lots of things with esphome and platform directly - nothing worked. Until I flashed OpenMQTTgateway esp32dev-rtl_433 - where the first thing to happen was my weather station showing up. OpenMQTTgateway rocks! :slight_smile: But now, having solved one problem, two new problems have emerged.

First, I want to filter the list of devices. Experience shows that an unfiltered rtl_433 will basically pick up any tire pressure sensor on the entire street plus a few home automation things from other people, which just clutter my Home Assistant. I did the filtering for another OpenMQTTGateway I use for BLE sensors. The documentation at RF gateways (RTL_433/RCSwitch/RF/RF2) | Theengs OpenMQTTGateway v1.8.1 seems to hint at the possibility to at least filter by device type for rtl_433, which would already solve my problem. However, it does not actually say how to install such a filter. As an alternative, I’d also be open to compile my gateway with only the three specific decoders for the Bresser device that I need (should be 119, 172, 173). However, so far I could not figure out how to limit the compile to specific decoders using the preprocessor macro switches. What would I need to put to compile with only three decoders? For completeness: I actually copied esp32dev-rtl_433 and added a few macros from the halter rte_433 FSK, as my device uses FSK. This has worked flawlessly - up to this point.

My second problem is that I would like the Device received via OpenMQTTGateway to be the same device in Home Assistant as it was when received via the rtl_433 add-on. I believe that to this end, OpenMQTTGateway should just overwrite the discovery information that was provided by the rtl_433 Auto-Discovery Add-On. However: The HA Addon presented a bunch of topics under homeassistant/sensor/Bresser-7in1-30707 as follows:


Whereas OpenMQTTGateway provides a flat list of topics under homeassistant/sensor as follows:

Is there a way to coax OpenMQTTGateway into overwriting the old auto discovery topics?

Regards
Damian

Hello,

You could just deactivate auto discovery in HA, this way newly detected devices will not be created.

We are not using the same way of structuring the data as the RTL_433 Addon so this would require to modify the OpenMQTTGateway code.