NorthernMan54 / homebridge-alexa

Expose your homebridge controlled devices to Amazon Alexa.
https://www.homebridge.ca
453 stars 69 forks source link

No response or sending minutes later #494

Closed idna001 closed 2 years ago

idna001 commented 2 years ago

Hello,

I have the Plugin since 2019 in everyday action. But now the last few months my Alexa has a few issues to send the commands to homebridge. In the Apple Home App, it's working all fine. But Alexa is not responding at all sometimes, or seems to act without effect . Sometimes it even turns on only after a few minutes . Here you can see that not every command get a response: grafik

Maybe it is that from a new update? Does someone have a similar problem? Or know how I can fix that?

Because it's pretty annoying when it's not working.

Here are my Sets: Node.js Version: v16.13.1 npm: v8.3.0 Homebridge Version: v1.3.9

All running on Raspberry 3B. Thanks for hints, help or fix.

Greetings idna

NorthernMan54 commented 2 years ago

In 0.5.55 their is a tuning option called "Cloud Server Connection Keepalive", try lowering it to 10 minutes or lower.

idna001 commented 2 years ago

Thx for hint. Where can I find this "Cloud Server Connection keepalive"?

In der Homebridge config? In the code?

Idna001

NorthernMan54 commented 2 years ago

If your using the homebridge UI it is listed as an advanced option.

WinfriedO commented 2 years ago

I exchanged my hardware, had a first gen. pi, but this could not be updated to hoobs 4. On the Pi 3B+ I now installed Hoobs 4 and the plugins I had in use. And now... Have Alexa plugin 0.5.55 , have again connection problems and do not find a "keep alive" setting..

NorthernMan54 commented 2 years ago

The keepalive setting is keepalive, try starting at 10 and decrease as needed

WinfriedO commented 2 years ago

ok, super

idna001 commented 2 years ago

Okay I found it, thanks :-) I have reduced it to 8, and I will see what happens in the next days. I will let you know.

WinfriedO commented 2 years ago

Think 10 means 10 Minutes but the setting is in seconds. I at least added

"keepalive" : 120

in the advanced config for 2 minutes. This is what I had on the old Pi and works now for a day..

idna001 commented 2 years ago

Why do you think that it means seconds? I use the UI, and there it says minutes. Here is a screenshot:

Bildschirmfoto 2022-01-15 um 17 55 31
NorthernMan54 commented 2 years ago

I actually coded it as seconds or minutes, if the number is greater than 60 it is seconds, and less than 60 it is minutes

Hence the 10 minute comment

On Jan 15, 2022, at 11:34 AM, WinfriedO @.***> wrote:

 Think 10 means 10 Minutes but the setting is in seconds. I at least added

"keepalive" : 120

in the advanced config for 2 minutes. This is what I had on the old Pi and works now for a day..

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.

idna001 commented 2 years ago

Ah, tricky

NorthernMan54 commented 2 years ago

For the folks with this issue, I launched a new beta today which uses a different protocol to connect to the cloud servers which may behave better. You may want to give it a try.

idna001 commented 2 years ago

Wow great. So far reducing the keepalive value, works also - no issues so far. But I will also try the beta.

Thanks for your great support.

WinfriedO commented 2 years ago

installed the beda, eleminated the "keepalive" setting, now running half an hour without problems. Will now leave and be back in about 8 hours and then check again.

WinfriedO commented 2 years ago

well running, so thx

swilalaa commented 2 years ago

Same issue here - tried to tweak the keepalive to 10 minutes and didn't help - now testing v0.5.60-beta.0

systemstats:

OS / Raspbian GNU/Linux Buster (10) Homebridge / v1.4.0 homebridge-alexa / v0.5.55 Node.js Version / v16.13.2 Npm Version / v8.3.2

In case you need the full cleaned log, have a look here (according to homebridge.ca last plugin response was Tue Jan 25 2022 10:11:54 GMT / my system time is running on CET though):

swilalaa_errorlog.txt

NorthernMan54 commented 2 years ago

There was an operational event with the cloud servers overnight which might explain this. Has the issue resolved ?

swilalaa commented 2 years ago

The issue is with the current beta still persistent (just now)

2022-01-25T14:31:47.355Z alexaLocal reconnect [25/01/2022, 15:31:47] [Alexa] ERROR: ( homebridge-alexa) You have an issue with your installation, please review the README.

swilalaa commented 2 years ago

As it keeps re-connecting here and there after a while without changing any other parameters in my setup it could be indeed a cloud problem

NorthernMan54 commented 2 years ago

@swilalaa - can you reach out to me at the homebridge-alexa discord channel https://discord.gg/3uWEg9vs