The HS4 plugin has a setting for how long the plugin should wait after a sync/connect attempt is made. This was added after several users had a very long startup time. Significantly increase it to see if it changes your restart behavior.
I have a modest Hubitat setup so my restarts are pretty quick. I remember last year that I had some versions of the Hubitat firmware where the sync/connect took a very long time. Nothing I did other than keeping Hubitat firmware current and now the sync/connect is only a few seconds. My reboot time is 2 minutes before Hubitat completes its "initialaizing" messages.
The debug log does show the traffic between the plugin and Hubitat this would include any heartbeat handshake you are using for a watchdog. The place to start is to look at the debug to understand what the plugin sees. My testing stimuli is cycling power followed by sync/connect button and then observing a motion sensor updates in HS after the test. When the brute-force technique is used to restart the plugin then the debug history is lost as it gets created at each plugin start. Again, only HS4 plugin has the updated logic that is posted in this thread #9.
I have a modest Hubitat setup so my restarts are pretty quick. I remember last year that I had some versions of the Hubitat firmware where the sync/connect took a very long time. Nothing I did other than keeping Hubitat firmware current and now the sync/connect is only a few seconds. My reboot time is 2 minutes before Hubitat completes its "initialaizing" messages.
The debug log does show the traffic between the plugin and Hubitat this would include any heartbeat handshake you are using for a watchdog. The place to start is to look at the debug to understand what the plugin sees. My testing stimuli is cycling power followed by sync/connect button and then observing a motion sensor updates in HS after the test. When the brute-force technique is used to restart the plugin then the debug history is lost as it gets created at each plugin start. Again, only HS4 plugin has the updated logic that is posted in this thread #9.
Comment