Loupedeck-HomeAssistant icon indicating copy to clipboard operation
Loupedeck-HomeAssistant copied to clipboard

Loses connection with HA.

Open adamjrbaker opened this issue 1 year ago • 3 comments

Hello,

Looks like loopdeck loses connection with HA when my computer goes to sleep overnight. The solve is to restart the loopdeck application/device and everything works again.

Not sure if you have had this issue.

  • Adam B.

adamjrbaker avatar Mar 20 '24 15:03 adamjrbaker

Currently there is no reconnection implemented, that's correct. Thanks for reporting.

schmic avatar Mar 20 '24 16:03 schmic

Hey @schmic any update on this bug fix?

adamjrbaker avatar May 10 '24 03:05 adamjrbaker

Nope, no update. I'm currently not working on this project and I won't until they release their announced "big .NET update this summer.".

schmic avatar May 10 '24 12:05 schmic

Heyo, i barley had connection issues in the past and since i updated to newest Loupedeck version i'm dealing with constant issues of the HA-Buttons not working anymore. (Loupedeck on 6.0.0.20753 and plugin on 0.8) I'm aware you tried a fix for this in 0.8, but wanted to give you some feedback that, for me, it now work less stable then before. Thanks for your efforts :)

St0l3nID avatar Oct 12 '24 03:10 St0l3nID

Hello @St0l3nID ... could you please explain why you think there are connection problems or loose of connection? Are button presses for switches or lights not going to HA? Do they on the 2nd or 3rd try? Please explain a bit more how you experience the issues so I am able to narrow it down.

Please have a look at the logfile, probably attach it here, and check if there are any errors or messages. The readme explains where you can find the log for the new 6.0 version.

schmic avatar Oct 12 '24 11:10 schmic

Ha.log Sure, the log seems to call the actions, as far as i can tell it is perfectly connected in the beginning, however afer a while the buttons dont trigger the options of HA. As you can see in the logs i try to switch lights in my kitchen (kuechenlicht_licht) and toggle scenes in my living room, but HA does simply not respond. Unfortunatly in this log i didnt interact until it didnt work already.

Restarting loupedeck makes it work again, i cant further nail it down as to why it breaks though. But once its broken the scene toggles and light toggles dont work anymore and the light state is not reflected on the buttons anymore either.

I will try upload my current log once it stops working again.

St0l3nID avatar Oct 12 '24 11:10 St0l3nID

Okay, there are definitely some reconnects in your log @St0l3nID ...

I'll see how this compares and behaves to mine. There is a new websocket client involved now and I think it behaves different to the old one.

schmic avatar Oct 12 '24 11:10 schmic

i figured it out, its something within ha itself that seems to break it, here is a video of me exploring it: https://youtu.be/mdERYm2MBfI

Plus the log (for the second automation i trigger)

Ha.log

edit: Seems like specificly Scene:Create is killing it.

St0l3nID avatar Oct 12 '24 12:10 St0l3nID

edit: Seems like specificly Scene:Create is killing it.

I think I can reproduce it, though I have no explanation what's happening or why ...

btw. you have a new follower 👀

schmic avatar Oct 12 '24 14:10 schmic

Fixed by 0.8.1 - thanks for reporting and debugging.

schmic avatar Oct 12 '24 15:10 schmic

Can confirm it worked^^

Thanks for the effort and the follow 👍

St0l3nID avatar Oct 12 '24 16:10 St0l3nID