I have a range extender from tp link, which changes the mac addresses of the device. The device is connecting mostly to the router, but sometimes to to the extender. Since mac is used in the settings of the binding, the device is shown as offline. I have given a fixed IP to the device. Is there any possibility to give multiple mac addresses in the settings so that the thing works even when connected to range extender?
A MAC address never changes and cannot be changed, no way.
If you meant to say “IP” rather than “MAC” then you need to fix and get your DHCP setup right.
But that’s nothing anything could be done about in openHAB.
Mac address will change if the range extender is using proxy mode instead of universal mode. Here is the link from tp link, MAC Address of all devices connected to range extender showing as range extender MAC on modem - Home Network Community.
Can I create another thing and map it to same item, so that my rules can work?
Nope. MAC addresses NEVER change. A device might have more than one MAC, but then the proper fix is to statically configure your device such that it only ever uses the same one.
You need to understand better how networking works and then fix your issue on the right side of things, your networking setup that is.
Depends but either way it is not a good idea to attempt fixing it that way in the first place.
Sorry but I won’t help with that.
The proper solution to your problem is outside of openHAB scope and you better fix it once and for all on networking level also to avoid wasting more time on issues of this sort in the future.
Fix your device. Or get a mesh router setup and so rid of the range extender.
It can be spoofed … - How to Permanently Change Your MAC Address on Linux
I think this is just not an accurate wording. The MAC address of the device is not changed - your router just does not see the MAC address of the device because of the repeater is in between.
This seems to be specific ( ? ) for ( a subset ? ) of tp link repeaters.
Sorry for my bad English. Yes this is the problem. DHCP on my router sees two MAC id. The original is shown when the light is directly connected and another virtual one is shown when connected via a repeater or range extender. I found that for wiz udp is used and, for discovery mac and used as a key for all the interactions ( I think). So if the udp is received I may get the same mac it is send from the bulb. I will try later this week to change the logging level and see if it works
The range extender needs to be changed to not use proxy mode, or you need to pin your device to one network, either the range extender or the router… it shouldn’t connect to both. This is fundamental networking. From a Wiz perspective, the MAC address is the only fixed and unique identifier, because of DHCP the IP address can change, but having two MAC addresses means you would have to treat each as a separate and unique device.