question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve connection lost UX

See original GitHub issue

Is your feature request related to a problem? Please describe.

When the card cannot communicate with HA for fetching the JSMPEG stream, it displays a message of:

Could not retrieve or sign JSMPEG websocket path. [Check troubleshooting](https://github.com/dermotduffy/frigate-hass-card#troubleshooting).

But when HA backend is simply unavailable (like during restarts), the error message above isn’t helpful (and a little ugly).

chrome_dmVHWodBnx

Describe the solution you’d like Home Assistant frontend can properly detect whether connection to backend was lost or not (that’s why it shows a Connection lost. Reconnecting... toast message below).

If we could reuse that part of the frontend for detecting such a situation, we could improve the error message (by not displaying an error at all).

How about showing a “Connection”-like icon like mdi:connection, centralized:

image

Another suggestion, which perhaps should be tracked in a different issue, would be to keep the aspect ratio of 16:9 (if the user has defined such a 16:9 fixed aspect ratio) even in such scenarios to avoid breaking the screen layout.

Describe alternatives you’ve considered

N/A.

Additional context

What do you think? Happy to hear opinions.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
felipecrscommented, Jun 23, 2022

Wow, it looks amazing!

1reaction
felipecrscommented, Jun 20, 2022

mdi:connection or mdi:lan-disconnected get my vote, although zero strong preference. The latter two are more suggestive of a broken image format to me, rather than a connectivity issue.

So, I think mdi:lan-disconnected is the best of them. It immediately shows that something is wrong (because of the little X).

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to design for slow networks and offline | by Nick Babich
Losing the internet connection and your progress in the app is one of the most frustrating things in a user journey. For activities...
Read more >
Offline UX design guidelines - web.dev
This article provides design guidelines on how to create a great experience on both slow networks and offline.
Read more >
UX Tips to Design the Perfect Offline/Disconnected ... - Simform
Do's and Don'ts of designing a Disconnected Screen: · Provide the app offline by default if your app doesn't require much data. ·...
Read more >
Connect, No Matter the Speed. Design for slow, intermittent ...
Make the experience seamless when internet strength may fluctuate between 2G to 3G to 4G speeds. Don't block the user from using your...
Read more >
Offline: When Your Apps Can't Connect to the Internet
Inconsistent alerts for “No Internet Connection”; Loading spinners which never stop; Poor use of available space on loading screens; Missing menu thumbnails ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found