nfarina / homebridge-tesla

Tesla plugin for homebridge: https://github.com/nfarina/homebridge
154 stars 38 forks source link

Shortcut "Network or other communication failure occurred" #93

Closed MikeAries closed 1 year ago

MikeAries commented 2 years ago

thanks for the hard work :) everything works good but I get this message when running a siri shortcut. The short cut goes through opening the car doors and car started but Siri announce and shows this error. see pic

IMG_5B8303095FEC-1

nfarina commented 2 years ago

Oh that would be cool! But I don’t think Siri Shortcuts will be reliable unfortunately, because HomeKit can’t handle the long amount of time it can take for the car to wake up and respond to commands.

MikeAries commented 2 years ago

It works every time I try :)

MikeAries commented 2 years ago

I make Siri (in a loop) wait for the car to respond connection is open

nfarina commented 1 year ago

Hm, surprised that works but great! Not sure why it would be failing at that particular step - does it happen 100% of the time? If not I would suspect a timeout. Perhaps this API call takes longer than most?

MikeAries commented 1 year ago

Yes happens 100% of the time. Definitely timeout and most likely Shortcut is waiting for a return variable (Status if turned on or not) and not getting any answer and times out. I might debug it after this recent Apple drama settles. I suspect a function is used and changing it to an Action might solve it.

nfarina commented 1 year ago

Could you try the latest version of the plugin? npm install --global homebridge-tesla@beta - it uses a newer version of TeslaJS (among many other changes) and it might work for you. Commands happen in the background and Siri is not made to wait more than a few seconds.

Note that the config has changed; you'll need to add "starter": true to get the keyless driving enabled.