GamerClassN7 / HA_Desktop_Companion

App which is using native HA Api to comunicate and report data to HA
52 stars 5 forks source link

Notifications stops working if home assistant restarts #69

Closed Mossberget closed 5 months ago

Mossberget commented 8 months ago

After restarting home assistant no notification could be received until restarting HA desktop companion as well.

HA desktop companion did notify about loosing the connection, but I guess it should also try and reconnect again.

GamerClassN7 commented 8 months ago

Hello thank you for your feedback, it try to reconnect how ever in certain situation there is web-socket waiting for expiration of webhook... i will try to work on workaround.

Hellis81 commented 6 months ago

One way is to restart the companion app each time you unlock the computer. I use task scheduler to trigger when I unlock my computer and as action I run a bat file with this content:

@echo off 
taskkill /IM "HA.exe" /F

This will exit the app. And then to restart it you just use the normal run a program command.

image

This ensures the app is running and connected each time I unlock the computer

GamerClassN7 commented 6 months ago

is ensures the app is running and connected each time I unlock the computer

Nice workaround i am stil struggling with WS but slowly getting there :) keep fingers crossed :)

GamerClassN7 commented 5 months ago

Closing in favor of https://github.com/GamerClassN7/HA_Desktop_Companion/issues/75