the program works very well, but I have a problem, when the scan is performed it reports all MAC address / ID / RSSI / etc. to the same items. Is there a way that it only filters a specific MAC address (from a g-tag / iBeacon) and sends its information to MQTT?
Is this still in the queue? I’m guessing this option is the whitelist option. But I’m not sure how to implement. My ultimate goal is to set only MAC addresses in the whitelist to publish to MQTT. I understand that using a retained message will make the whitelist sticky. What I don’t understand is how to block all other devices. Will a single addition of a MAC to the whitelist block all other MACs from publish? Then, later if needed, I add another MAC , i.e. 2 MACs, in the retained command, only those 2 MACs are published?
TY
Yes, with the white-list (since 0.9.1) you can define only the MAC addresses which you want published to MQTT messages. All non white-list MAC addresses will not be published to MQTT, if that’s what you mean by being blocked. And yes, if you want to extend the white-list you can just add MAC addresses at a later stage.
How does one clear the black-list and/or the white-list? That is, how does one revert back to initial behaviour of no filtering at all, ideally without having to power cycle/reset the Gateway hardware?
Hi, for the moment restarting the gateway is the only way, and making sure you haven’t set the retain flag on the white-list command, as it’ll be applied again after the restart.
I am not able to get the whitelist working. My config node looks like this:
{
“white-list”: [
“7C:2F:80:C7:F7:43”,
“FF:FF:10:09:52:BE”,
“FF:FF:10:09:47:62”
]
}
But OMG does still publish data for all devices it sees.
The devices are published unter \BTtoMQTT and the config is published under \commands\MQTTtoBT\config
Could you put your white-list into Preformatted Text quotes, so that we can see exactly how they look, especially with the quotation marks. In your posting they look curly, this could be because of pasting here without putting it in Preformatted Text, or it could actually be your problem, that you have *curly quotes when you try sending the white-list, as they need to be straight double quotation marks.
“ vs. "
Also not too sure if the extra space between the colon and the first square bracket matters. I somehow doubt it, but all best seen when you show us the text in Preformatted Text.
The space works fine for me here, but I don’t know what (invisible) line breaks or possible tabs you might have. So try with it all on one line - no spaces.
I am using MQTTLense.
I just checked my settings again and as it seems the whitelist started to work. This is strange because I did not change the config, yet. Is just deleted the unwanted notes and this time they were not recreated.