schmic / Loupedeck-HomeAssistant

Control your Home-Assistant entities with your Loupedeck.
MIT License
39 stars 5 forks source link

Loses connection with HA. #8

Closed adamjrbaker closed 1 month ago

adamjrbaker commented 8 months ago

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.

schmic commented 8 months ago

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

adamjrbaker commented 6 months ago

Hey @schmic any update on this bug fix?

schmic commented 6 months ago

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.".

St0l3nID commented 1 month ago

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 :)

schmic commented 1 month ago

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.

St0l3nID commented 1 month ago

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.

schmic commented 1 month ago

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.

St0l3nID commented 1 month ago

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.

schmic commented 1 month ago

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 commented 1 month ago

Fixed by 0.8.1 - thanks for reporting and debugging.

St0l3nID commented 1 month ago

Can confirm it worked^^

Thanks for the effort and the follow 👍