How would I be able to reload the TP-Link integration say every 8 hours?
If you are wanting HA to just rediscover then the answer is rebooting HA.
I’ve found reloading the integration to be effective at picking up TP-Link devices which became “unavailable” in HA but are working fine in the Kasa app. Not sure I’d want to schedule regular reloads, but I can see why someone would.
Sorry, I don’t know the answer, but I think it’s a fair question.
CaptTom you pretty much nailed it. I’m having issues with TP-Link devices and reloading the integration fixes it.
I hard coded IP addresses in configuration.yaml file. Only way to guarantee reliability.
With all due respect, we’ve heard all kinds of reports of what works and what doesn’t. I’m not sure there’s any one answer which works for everyone. For example, I don’t hard-code my IP addresses in conf, but I do reserve them in my router. That’s what I’ve found to be most reliable (or least unreliable, as the case may be) for me.
The biggest issue, IMHO, is making sure the WiFi connection is rock-solid. These things love to drop off the network anyway, and if there’s anything less than an ideal WiFi connection HA doesn’t do well at re-connecting, even if the Kasa app (and others) can. And it seems that allowing DHCP to assign a new address makes it much worse.
Once you’ve fiddled with those things, I can see where you may be left wanting to reload the HA integration from time to time. I have to do that manually sometimes, but nowhere near so often that I’d want to schedule it daily. YMMV.
Besides, it would be good to know if HA has a way to automate reloading integrations. It can be done in the UI, so it would make sense to have a service or command somewhere.
You do you man. What works is hard coding the TPLink devices in your configuration file. Static IPs didn’t work for me and my wifi is rock solid. Also didn’t have these issues with Hubitat. My experiences result in HA integration being the issue and not my devices. But I did find a solid resolution which is documented in the HA support that what I did is the way to resolve the issues if the integration causes issues.