I have the problem that the white list is deleted on restart.
I live here in a big street and OMG finds about 300 new devices per hour.
I may have 5000 devices in IoBroker in one day, which slows down iobroker a lot.
When iobroker is slowed down, it takes a long time to delete the unwanted devices.
Can you kindly create a way that the white list is not deleted after a reset or power failure?
Correct, this is currently the only way to currently clear any applied white/black list.
But if you have sent the white list with the retain option, your MQTT broker will send it again to reapply it after a restart of your OMG. Just make sure you send your white list with the RETAIN option.
Since I require different white lists in my setup, depending on various other conditions, I programmatically restart OMG, then catch the LWT topic and reapply a different white list depending on the circumstances.
So two possibilities to make sure your white list is always being applied.
If you searched through the forum, you might have seen how I came to the above solution, when I asked about the possibility of reducing or clearing a white list
Thanks, I found the solution, but unfortunately this is not an option for me.
I am a dumb user who can not program.
Therefore, until now I have always uploaded the whitelist manually, I don’t know anything about scripts.
Currently I have turned off the OMG s, because they disturb more than they help.
I’m looking for another solution, or until there is an update.
Also a possibility, and in the bottom right corner you see the option for making this command being retained by your MQTT broker. It looks ticked, but also somehow greyed out?!? What happens if you toggle this checkbox? Also what about setting the format to send as ‘json’ instead of ‘raw’.
Once the white list is sent correctly with that RETAIN option your broker will resend the white list to OMG again, even after a restart of OMG.
If you subscribe to your MQTT broker with MQTT Exolorer it shoudl also show you if the white list command is correctly retained.
Yes, I see the list.
I just do not see that it is also sent.
However, I have now disconnected and connected the ESP32 another 20 times, so far it still works.
I have now brought it to its place and put it into operation.
Now it’s the turn of the other three.
One question, does it make a difference if I de-energize the ESp or press the reset button?
If you cut power off or soft reset the esp you will keep your wifi and mqtt parameters (they are stored in flash) and the white list will still be read at restart due to its retain status on the broker.
Retain flag enables to record the message on the broker.