Restarting AppDaemon on a schedule is a band-aid, and band-aids are rarely a good idea. If you pay attention to the issue at hand, you’d realize that will only continue their problem because the panel triggers iptables throttling after too many reconnects. Restarting AppDaemon on a schedule will guarantee this problem stays around forever!
superpaul, you should post your logs here, and get help that way. We can’t assist without some concrete information to look at. I think you may need to activate a higher logging level. Then, check the HA Core logs and post that too.
I also suggest you don’t try to go BACKWARDS in time and re-question territory that’s already been dealt with by much more knowledgeable people. The panel throttles connections after a while. Fact. They looked at the driver code. I think you need to re-read my previous post again, because you are experiencing TWO failures: one of them is then AppDaemon itself craps the bed, which can be solves by a restart. HOWEVER - from a totally separate angle, after too many of these, the panel will start to throttle. From your end-user perspective, it might be hard to tell the difference between these two events because they both result in “Unavailable” entities as far as you’re concerned. But if you want to solve this problem you will need to stop handwaving things like that away.
For me, restarting HA can trigger the AppDaemon freeze. Restarting AppDaemon usually fixes it. HOWEVER - after some time, those AppDaemon restarts stop working. THIS is when the panel is throttling, and when I have to reboot the panel. After a panel reboot, and one more AppDaemon reboot, I’m all good (because now the throttling has been reset).
And just to re-iterate, if it were the addon, I wouldn’t have had it working for so long