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

Inactive Lovelace UI #1801

Closed
onkytonk opened this issue Jul 19, 2021 · 86 comments · Fixed by #1987
Closed

Inactive Lovelace UI #1801

onkytonk opened this issue Jul 19, 2021 · 86 comments · Fixed by #1987

Comments

@onkytonk
Copy link

onkytonk commented Jul 19, 2021

Straight out of the gate, I’m running iOS 15 public beta 3, so not sure if that’s the culprit or not.

Basically when using the companion app, I can interact with the Lovelace ui, and the buttons, switches, etc respond in the ui, but nothing actually happens. Also, if the app is open, and I say turn on a light from a different device, it won’t update in the app.
The app will only become responsive and update changes if I do a pull down to refresh.

There is no such issues on Safari on the same iPhone.

I’ve tried deleting and reinstalling the app with no luck.

Also, I used to see “connection lost, reconnecting” upon reopening the app. This no longer happens. It’s still popping up in safari.

Edit: just experienced the same issue on safari now. Companion app working fine on my iPad running iOS 14.

@glassbase
Copy link

This is happening to me on official iOS 15 release

@mckochan
Copy link

This is also happening to me on iOS 15, but force quitting the app and re-opening solves the issue. Need to do that once or twice a day now.

@tenallero
Copy link

The same for me.
Just after updating to iOS 15.
The Lovelace UI seems to be frozen. Buttons not responding, sensors not updating.
With iOS 14 all was running as expected.

@Stooovie
Copy link

Stooovie commented Oct 3, 2021

Same. Starting to get like that even on desktop (Mac, Big Sur 11.6, Safari 14). Here's my log. HA 2021.9.7 on Rpi4.

@tenallero
Copy link

If it helps ...
My configuration:

iOS 15.1 actually
The problem started just after installing iOS 15.0 beta.

Iphone 12 Pro Max
Home Assistant Companion 2021.8
Home Assistant core-2021.8.8

Browser_mod Release 1.3.0

My lovelace resource modules:

Homekit-panel-card/homekit-panel-card.js
light-popup-card/light-popup-card.js
cover-popup-card/cover-popup-card.js
switch-popup-card/switch-popup-card.js
custom-header/custom-header.js
swipe-card/swipe-card.js
lovelace-card-mod/card-mod.js
lovelace-card-tools/card-tools.js
mini-graph-card/mini-graph-card-bundle.js
light-entity-card/light-entity-card.js
fan-control-entity-row/fan-control-entity-row.js
lovelace-slider-entity-row/slider-entity-row.js
config-template-card/config-template-card.js
vacuum-card/vacuum-card.js
webrtc/webrtc-camera.js
pvpc-hourly-pricing-card/pvpc-hourly-pricing-card.js
lovelace-fan-xiaomi/fan-xiaomi.js

@deluxestyle
Copy link

I'm having the same issue.
Here my config

iphone 11Pro, iOS 15.0.1
Home Assistant Companion 2021.8
Home Assistant core-2021.10.2

Browser_mod Release 1.5.0

My lovelace resource modules:
mini-media-player/mini-media-player-bundle.js
lovelace-fold-entity-row/fold-entity-row.js
vertical-stack-in-card/vertical-stack-in-card.js
lovelace-card-mod/card-mod.js
lovelace-card-tools/card-tools.js
lovelace-auto-entities/auto-entities.js
lovelace-swipe-navigation/swipe-navigation.js
lovelace-multiple-entity-row/multiple-entity-row.js
lovelace-paper-buttons-row/paper-buttons-row.js
vacuum-card/vacuum-card.js
scheduler-card/scheduler-card.js
lovelace-battery-entity-row/battery-entity-row.js
lovelace-xiaomi-vacuum-map-card/xiaomi-vacuum-map-card.js
button-card/button-card.js
lovelace-layout-card/layout-card.js
mini-graph-card/mini-graph-card-bundle.js
hass-hue-icons/hass-hue-icons.js
lovelace-template-entity-row/template-entity-row.js
lovelace-more-info-card/more-info-card.js

@ideal2545
Copy link

I have the same issue as well, can someone point me in the direction of ios app specific log files so I can share?

@xcray
Copy link

xcray commented Oct 16, 2021

not only happens on iOS, but also on windows with edge browser (and chrome).

@johnwarne
Copy link

This started happening for me as well with the iOS 15 betas in July and has continued with the official releases.

@vicondoa
Copy link

Installed iOS 15, and got the same issue on 2021.10.5

@medicus07
Copy link

medicus07 commented Oct 22, 2021

The issue started with iOS 15 on iPad… the UI does not refresh (sensor data), buttons or sliders react but do not show any function.

This is very annoying since I use the iPad as dashboard in guided access mode.

@Stooovie
Copy link

Stooovie commented Oct 25, 2021

Just adding that setting "Automatically close connection" to OFF in the Profile settings screen has NO bearing on the situation, as do not any settings of Background Refresh in IOS Settings. Nor does using external vs internal IP. Everything eventually fails to communicate with the backend without any acknowledgment of the fact.

@ideal2545
Copy link

Just checking in if this was looked at, I believe its affecting quite a bit of folks now...

@Stooovie
Copy link

Stooovie commented Nov 5, 2021

Yes, no change as of 2021.11.1.

@Stooovie
Copy link

Stooovie commented Nov 9, 2021

Also, no change with the new 2021.11 version of the official HA companion app for iOS. Issue is still present.

@gieljnssns
Copy link

Also everything up to date and issue still present.

@deluxestyle
Copy link

I have the feeling it is better now on my side. I disabled the background refresh on iOS level for the HA app and it seems that the app is connecting every time I open it.

@Stooovie
Copy link

Stooovie commented Nov 9, 2021

I have the feeling it is better now on my side. I disabled the background refresh on iOS level for the HA app and it seems that the app is connecting every time I open it.

You may be onto something. Man it's been almost a decade since I had issues with Background refresh! I'll try for a day and report back. Thanks!

EDIT: looks like that's it!

@ideal2545
Copy link

Man that seems so counter-intuitive but I'll give it a shot too because this is a painful bug on my end, its like every 10 minutes or less sometimes.

@deluxestyle
Copy link

It is also not the solution. I still have the issue from time to time. But it seems more responsive

@Stooovie
Copy link

Stooovie commented Nov 10, 2021

Yes, same. It is better (not placebo) but not fixed 100 %. I'm not a dev but weren't there some changes to app backgrounding in iOS 15?

@michalk-k
Copy link

michalk-k commented Nov 13, 2021

not sure where it have started. Noticing it for a month or so.
I'm on core 2021.9.7 upgraded from 2021.1.5. I'm not aware about this issue in 2021.1 the change might be related to other things like ios update or app update.
It happens on wifi (I suspected roaming) as well as LTE.

As mentioned, it seems that application doesn't refresh its state when needed. It remains responsive but doesn't communicate with HA.

Currently I'm using app v 2021.11, ios 15.0.1

Edit: Not sure what is Lovelace and what is not. I just found it's not only about lovelace views. I called NodeRed from side menu causing the app to infinitely load NR ui. Pull-down gesture forced it to load immediately.

@gieljnssns
Copy link

Can we try to solve this issue with the settings of safari on the iPhone?
experimental WebKit settings?
But I don't know which to try. This are my settings.
82B9D0C0-5C6D-423E-8B3F-DE24B45908D9
A35F9E22-A70A-4007-9F01-1161D7D03D3F
F2999F5E-3313-4BC5-BDE7-607D4CF43E6D
47E98363-CF66-4023-B346-6EF4CC342C1A
18E33B5B-5B58-4CBF-82B7-9F43A9B9C4AB
0E2169D8-294B-4AB9-8CAA-D0622D428F9B
C63843DB-AC2D-42C8-B70A-5224DB24A4D7

@chendo
Copy link

chendo commented Nov 27, 2021

I've had similar issues with other websocket reliant apps. I've found disabling "NSURLSession WebSocket" on Safari desktop helped with that, and have just done so for iPhone, but not sure if web views inside apps are affected by this setting.

@deluxestyle
Copy link

Any updates ? No one is looking into the issue? Anything we can provide?

@gieljnssns
Copy link

I've had similar issues with other websocket reliant apps. I've found disabling "NSURLSession WebSocket" on Safari desktop helped with that, and have just done so for iPhone, but not sure if web views inside apps are affected by this setting.

I've tried this, but didn't help....

@Stooovie
Copy link

Stooovie commented Dec 4, 2021

Yes, they are. I've been reporting this for three months now, and got zero response from developers.

@Mariusthvdb
Copy link

Seems worse than before using Ha 2022.2.0.dev20211225 so much it even needs a true reload ( kill app because window won't load at all)

@Stooovie
Copy link

Yes, much worse. I usually have to kill the app too.

@zacwest
Copy link
Member

zacwest commented Dec 25, 2021

Our attempt at fixing this in core-2021.12.4 is causing the page to die occasionally like this. Pulling to refresh should still be possible when it happens; hopefully in the new year we can do another around on this fix.

@Stooovie
Copy link

Usually now (HA 2021.12.5, app 2021.327 from Testflight, iOS 15.2) when I get back to the app, the window is completely empty (which is new, this never happened) - just to clarify.

@zacwest
Copy link
Member

zacwest commented Dec 25, 2021

Yeah, the totally empty thing is the new problematic behavior.

@Camatobe
Copy link

Small additional information (hope it helps):
The empty lovelace screen also appears almost all the time on my iOS12 device, so it seems like this issue is not an iOS15 exclusive thing.

My device is a wall mounted iPad Air (1st gen with the last iOS 12 Version and 2021.12.1 App Version on it), triggered by a notification which loads the app from the background - almost every time to a blank screen instead of a dashboard.

@zacwest
Copy link
Member

zacwest commented Dec 28, 2021

Please update to core-2021.12.6 (released earlier today) - it includes a fix for the blanking screen issue, which hopefully means iOS-2021.12's workaround will help most cases where the connection is silently dead now.

@Stooovie
Copy link

Stooovie commented Dec 28, 2021

It's much better but there's a new (small) bug: where I was getting completely blank screen before, now I sometimes get nothing but the top bar (the Lovelace panels row). But any scrolling action brings the content back, no refresh is necessary.

Otherwise, seems much better than the last version, that one was pretty bad. I'm also happy with the Tuya status reporting fix.

@deluxestyle
Copy link

On my iPhone 11 with iOS 15.2 is not really better. I have to refresh now every time

@gieljnssns
Copy link

On an iPhone XS with iOS 15.3 public beta, I must also refresh a lot.

@tenallero
Copy link

I have updated core to 2021.12.6
Much better now
Thanks

@deluxestyle
Copy link

somehow I have the feeling it is even now worse on my Windows PC

@Mariusthvdb
Copy link

yes, I have mixed feelings too.... my Mac desktop browser is acting up like never before. The lockups the app was experiencing are now happening on my desktop ? Never had to 'refresh' the browser before on that device

if happening, the frontend seems to be responding ok, but its not until refresh the commands get applied to the backend devices... need to investigate further to be able to precisely pinpoint the issue though

@TomBrien
Copy link
Member

Yep I am now also seeing the same in a desktop browser. Actions seem to happen when pressed (for example dismiss a persistent notification) but the frontend doesn't update until refreshed

@TomBrien
Copy link
Member

Looks like the desktop side is fixed by home-assistant/frontend#11042 see that PR for related frontend issues

@deluxestyle
Copy link

I have the feeling that since the update to 2021.12.7 it is much better

@Stooovie
Copy link

Stooovie commented Jan 3, 2022

Yes, I think it very obviously reconnects more often but that's fine. I'm not getting the inactive state now.

@zacwest zacwest unpinned this issue Jan 24, 2022
@blhoward2
Copy link

It seems that since about around the time this was fixed, I now occasionally experience Lovelace loading over and over again. Many others have reported this on Reddit (e.g. https://www.reddit.com/r/homeassistant/comments/snz9g0/every_time_app_loses_focus_causes_lovelace_to/?utm_source=share&utm_medium=ios_app&utm_name=iossmf). Has anyone else experienced this? Is it a side effect of this fix or a new bug?

@zacwest
Copy link
Member

zacwest commented Feb 9, 2022

Can you share your internal and external URLs? It's unlikely to be this workaround, though possible - if it is, it may require looking at full device logs which you can drop here and I can take a look; export them from App Configuration > Debugging.

@blhoward2
Copy link

I’m using Nabu Casa so it’s using the generated address. I’ll grab a log the next time it does it. It’s not every time. I’ll also ask the other guy that started the Reddit thread.

@melyux
Copy link

melyux commented Mar 29, 2022

This is still happening in 2022.2. Makes the HA app unusable for actually controlling anything unless you have 30 seconds to kill. I'll try on 2022.3.

@Stooovie
Copy link

@melyux that's kinda weird, I haven't had that happen for months now, on both desktop (Safari and Edge) and the iOS app... For me the HA app version from Testflight (essentially a public beta) fixed it months ago but even the release version is fine now.

@Camatobe
Copy link

Some report about the unresponsive app are also in this already closed issue (latest comments) #2008

Got the hanging splash screen on a regular bases on my older iOS 12 ipad Air. Details in the issue I linked.

@texasmouse
Copy link

texasmouse commented Apr 1, 2022

This is still happening in 2022.2. Makes the HA app unusable for actually controlling anything unless you have 30 seconds to kill. I'll try on 2022.3.

+1. Having the same problem.

I have been following https://community.home-assistant.io/t/ios-15-beta-and-public-release-safari-companion-app-freezing/323755/55, hoping to see any community input.

22.3.6 with IOS 15.3.1. Problems with the HA app as well as any IOS browser appearing to time-out. I keep having to pull-down to refresh and only some of the time it helps.

@popy2k14
Copy link

Same issue on Android.
App is just blank after reopening and has to killed.
It happens very often (sometimes minutes).

Please fix this issue!
It's hanging around for years now.

@bgoncal
Copy link
Member

bgoncal commented Mar 26, 2024

Is this still an issue with latest versions of app and core? Feel free to reopen if needed

@bgoncal bgoncal closed this as not planned Won't fix, can't repro, duplicate, stale Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.