Fascinating - 5.2 does not have the duplicate ID issue.
Well, that kind of divergence happens when much work is going on. 
But anyway, I stumbled upon something completely different there.
First of all, I am using two Shelly Blu Gateways (the older,. Non Gen4 type) for linking my Shelly Blu devices to OH. Other than the Plug S Gen3, they have no issue running the OH-blu-scanner script.
For quite some time, I ran the âcachemdnsâ trial version of the binding. Mem was stable on both OH and plugs. No dup IDs, single Shelly.getStatus.
But whenever the connection to my Shelly Blu Gateways was interrupted - e. g. device reset, OH reboot - my Blu Button 1 devices stayed in âONLINE - CONFIG PENDINGâ no matter how often I pressed them. They came back to life only after manually disabling and re-enabling the Thing of the Blu Gateways followed by once pressing the Blu Buttons.
The current 5.1 dev version did not have this issue. Pressing the Blu Button 1 once always immediately triggered the transition from PENDING to ONLINE, no matter which reboot / reconnect history it had.
To increase the surprise, the current 5.2 dev version was even worse! I actually did not find any way to finish the initialization of the Blu Button 1 devices, they stayed in PENDING forever. I even tried deleting the scanner scripts from the gateways and re-installing via OH. This worked, but did not change the issue.
Again, to make sure you get it right: The Blu Gateway Things always do the transition OFFLINE - CONFIG PENDING - ONLINE within seconds. Itâs the Blu Button 1 devices which can get stuck in PENDING. But if itâs fixed, this happens by a disable - enable sequence of the gateways they are connected to.
And now to finalize it: All of this seems not to affect the Blu Button 4.
Therefore I am back on the 5.2 cachemdns version for nowâŠ