Github Boards Devices Community Docs Blog

Filter device based on ble address

Hi,

My main purpose of openmqttgateway is to collect miflora sensors data and send to HA. Currently I have only deployed one esp32 but I am planning to deploy another one in the second floor of my house. I was wondering that some of the sensor might be pickup by both esp32. Is there anyway I can filter out this? Let say the first esp32 only discover the miflora at level 1 and second esp32 only discover the miflora at level 2.

Hi,

Is there a particular reason for filtering ?
If your gateways are set with the default interval you will get a better resolution of data like this.
The link between a miflora and its location should be done into HA not depending on the gateway.
Regarding HA if you use autodiscovery the MiFlora sensor created will not be linked to a gateway (we replace the gateway ID by a wild card) so that this MiFlora HA device can be feed by different gateways.