Initialize

Though I have added the init capability and function, after a reboot, clicking the Initialize button in the device is necessary for the function to run. Why? What am I doing wrong?

I have not seen that behavior. My drivers that use Initialize have that method called during a hub restart without any user interaction required.

Here is my Logitech Harmony Hub Driver which definitely uses Initialize upon restart to reestablish the webSockets connection to the Harmony Hub.

Looks exactly like my implementation. I wonder if it has to do with Telnet not being ready for a tick during boot?!

As a test, you could simply add a runIn(30, myInit) to the initialize() routine. This would give the hub an extra 30 seconds to finish starting up. Within your custom 'myInit()' routine, you could execute whatever you currently want to do in the initialize() routine.

This would at least help you troubleshoot what it going on. Good luck and let us know what you find, please.

1 Like

Yepper, that's exactly what I've done. We will see...

1 Like