Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop updating dashboard after hours or days #4037

Closed
xuefer opened this issue Nov 30, 2023 · 6 comments
Closed

Stop updating dashboard after hours or days #4037

xuefer opened this issue Nov 30, 2023 · 6 comments
Labels
bug Something isn't working question Further information is requested webview

Comments

@xuefer
Copy link

xuefer commented Nov 30, 2023

Home Assistant Android app version(s):
2023.10.4-minimal (can't do latest version since every time i upgrade it take some time and luck to reproduce)

Android version(s):
5.1.1

Device model(s):
AD500A

Home Assistant version:
Home Assistant 2023.10.5
Chrome 95.0.46.38.74 (the latest version to support Android 5.1.1)
Android System Webview 95.0.46.38.74 (ditto)

Last working Home Assistant release (if known):
Unknown

Description of problem, include YAML if issue is related to notifications:

Simply stop updating dashboard sensor states until reloaded. I would suggest it to ping/pong and discover timeout actively instead of relying on system tcp timeout

Companion App Logs:

(Can't get one for now, when i realize it happen again, the logcat history got flushed by other log content

Screenshot or video of problem:

Additional information:
Not happening on another device running on new version of android/chrome/webview, connected with same home assistant server

@xuefer xuefer added the bug Something isn't working label Nov 30, 2023
@dshokouhi
Copy link
Member

Android System Webview 95.0.46.38.74 (ditto)

this is very old and needs to be updated, if it cannot be updated then we may not be able to fix the issue as we depend on the WebView for the frontend.

@dshokouhi
Copy link
Member

Not happening on another device running on new version of android/chrome/webview, connected with same home assistant server

yea this further suggests this is not an issue the app can solve as if you cannot update WebView nothing we can do. You may try your luck with the HA frontend but it may be a compatibility issue.

Hopefully not if that is the case then we may need to change our min SDK as WebView is important to update.

@dshokouhi dshokouhi added question Further information is requested webview labels Nov 30, 2023
@xuefer
Copy link
Author

xuefer commented Nov 30, 2023

Android System Webview 95.0.46.38.74 (ditto)

this is very old and needs to be updated, if it cannot be updated then we may not be able to fix the issue as we depend on the WebView for the frontend.

I understand, but version is limited by android os version. it's impossible to install newer version of webview and no new version of android is released for this device. no GSI supported either of course. Everything works fine until connection lost quitely. it's pity to give up just because connection is lost due to some reason.
All i can do for now is to check netstat and i do see connection is lesser then it happen, but netstat have no idea what connection is what

Is communication timeout check done actively by app/frontend side?

@dshokouhi
Copy link
Member

Is communication timeout check done actively by app/frontend side?

the app relies on the HA frontend to tell us if its disconnected....all that logic is handled by the frontend the app just displays the dashboard

are you able to reproduce the issue using chrome for android on the same device?

Looking at: https://en.wikipedia.org/wiki/Template:Google_Chrome_release_compatibility you are correct that your version of WebView cannot be updated beyond 95

image

According to HA docs your version should still be supported so this might be a HA frontend issue.

@xuefer
Copy link
Author

xuefer commented Nov 30, 2023

Is communication timeout check done actively by app/frontend side?

the app relies on the HA frontend to tell us if its disconnected....all that logic is handled by the frontend the app just displays the dashboard

Good tips

are you able to reproduce the issue using chrome for android on the same device?

I'll keep it open on chrome for some days and see if it reproduce. Will open a new bug report if it's frontend issue

According to HA docs your version should still be supported so this might be a HA frontend issue.

@xuefer
Copy link
Author

xuefer commented Dec 6, 2023

reproduced in chrome, reporting to frontend, found home-assistant/frontend#17409 (which meantion home-assistant/frontend@dev...leonardmgh:homeass-frontend:fix-halfopen-websocket )
closing this one

@xuefer xuefer closed this as completed Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested webview
Projects
None yet
Development

No branches or pull requests

2 participants