Broadlink integration. IP changes after power outage or router reset

‘’’
Hello all,

I am facing an issue with Broadlink integration for a RM4. I can make it work eventually but then, after any power outlage or router restart, device becomes unavailable in HA.

I can confirm my Broadklink has a fixed IP since router is always asigning same address: 192.168.1.50 however when, it stops working, I check /config/.storage/core.config_entries I can see HomeAssistant changed IP to 192.168.0.180. Then I modify this file, going back to 192.168.1.50, restart HA and all works great again till next router/power event.

I have tried different solutions like connecting Broadlink to different AP, change IP, even change DHCP server provider (AP Router instead of main router), etc.

Do you have anything in mind that could help? It’s so strange to me that core_config.entries file changes this confi by its own…

All your help will be welcome.

Thanks a lot
‘’’

Looks like other people have this problem.

I occasionally have problems with my Broadlinks after a power outage - when router and RM4 and HA have all been down. My feeling is that they are caused by all three devices powering up at the same time. Once router and HA are up and running, simply unplugging the Broadlink and plugging it in again seems to resolve most issues.

Discovery in the Broadlink integration is supposed to be by MAC address - it shouldn’t be necessary to worry about the IP address after the initial setup.

I was one person reporting that issue.
Once I got a new router that actually would reserve IP addresses correctly, mine works.

The statement:

“I can confirm my Broadklink has a fixed IP since router is always asigning same address”

Means nothing I think, unless you are saying you have reserved that IP address in the router itself.

I have several devices where you cannot set a fixed IP address and you must set them in the router to always assign the same address:

Hello!!

Thanks for your answer! Yes I’m reserving IP on my router, that’s what I meant.

Now I got a new router so let’s see if issue is still present.

Regards!

Thanks a lot for the link!

Well for what I can see lot of mates having same issue.

So far I moved to new router just in case DHCP reservation was not correctly done.

Let’s see how it goes…

Big thanks again!!

[BUMP]

I have several Broadlink devices ant this problem is affecting them. After my router reboots, some of the Broadlink devices may be lost. They all have static IPs assigned in the router - but what I’ve found is that in HA’s core.config.entry file, the IPs may be wrong - i.e. don’t match the actual IPs. If I manually edit that file to contain the correct IP, and restart HA, the device is again available. So the device actually had the correct, static IP but somehow HA had a different IP for that device.

I’m looking for a way to avoid this chaos every time the router is rebooted. I see this bug was reported, but closed in GitHub with no action. Comments there claim the Broadlink integration uses MAC addressing and is not dependent on IP, but that’s obviously not the case.

It occurs to me that maybe they don’t even need static IPs and maybe that’s part of the problem, but I haven’t tried this and it would be tedious to test.

Tired of fighting this, and I have no idea why it happens. Supposed fixes involve a “DHCP integration” in HA, but I don’t find any such thing.

All I can be sure of is that the Broadlink integration just changes the IPs on its own now and then. I just junked all my Broadlink smart plugs and replaced them with Shelly. Enough is enough.