Cast All the Things Director

I use the Cast All the Things (CATT) Director to CAST to my Google Chromecast. After a reboot of the Hubitat, often my CATT Director goes into either a "disconnected" or "opening" state which I can rectify by going to my CATT Server device in Hubitat devices and clicking "SAVE Preferences" and the device will be reconnected.

I can tell that the CATT Server device is not talking to the server when CATT Director commands (which I created Alexa voice commands for) don't work.

My question is, how can I automate making sure that the device is connected? Basically, can I have something check the status and press the "SAVE Preferences" button if the connection is "disconnected" or "opening"?

1 Like

You could write a rule that triggers when the system is rebooted. In that rule you 'do something' with the Chromecast HE app. I don't run Chromecast so I don't know what the 'do something' is - perhaps there is no custom command that can be run on the app.

Problem is that it is not really the CATT server itself. It's the CATT Director app in Hubitat that can get into an "opening" or "disconnected" state. Sometimes it is a reboot of the Hubitat and other times it's just a random error. In any case, the fix is to click the SAVE PREFERENCES button on the CATT device and I have no idea how to make that happen.

Someone wrote that code. Ask them to fix the problem. I don't see a entry in HPM for it but I didn't look hard. If nothing else, You can look at the driver/app code and they may have left a clue or even better a github link.

1 Like

Save Prefs button runs the "updated()" function in the driver code.
In the driver code define a new command something like runUpdate, and then have that call the updated() function. Then you can have a rule run the "runUpdate" command.

1 Like