iOS icon indicating copy to clipboard operation
iOS copied to clipboard

Inactive Lovelace UI

Open onkytonk opened this issue 3 years ago • 85 comments

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.

onkytonk avatar Jul 19 '21 13:07 onkytonk

This is happening to me on official iOS 15 release

glassbase avatar Sep 22 '21 01:09 glassbase

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.

mckochan avatar Sep 29 '21 17:09 mckochan

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.

tenallero avatar Sep 29 '21 23:09 tenallero

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.

Stooovie avatar Oct 03 '21 11:10 Stooovie

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

tenallero avatar Oct 03 '21 21:10 tenallero

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

deluxestyle avatar Oct 11 '21 12:10 deluxestyle

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

ideal2545 avatar Oct 12 '21 22:10 ideal2545

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

xcray avatar Oct 16 '21 15:10 xcray

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

johnwarne avatar Oct 16 '21 20:10 johnwarne

Installed iOS 15, and got the same issue on 2021.10.5

vicondoa avatar Oct 18 '21 04:10 vicondoa

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.

medicus07 avatar Oct 22 '21 18:10 medicus07

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.

Stooovie avatar Oct 25 '21 05:10 Stooovie

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

ideal2545 avatar Nov 05 '21 16:11 ideal2545

Yes, no change as of 2021.11.1.

Stooovie avatar Nov 05 '21 23:11 Stooovie

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

Stooovie avatar Nov 09 '21 08:11 Stooovie

Also everything up to date and issue still present.

gieljnssns avatar Nov 09 '21 17:11 gieljnssns

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.

deluxestyle avatar Nov 09 '21 18:11 deluxestyle

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!

Stooovie avatar Nov 09 '21 22:11 Stooovie

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.

ideal2545 avatar Nov 09 '21 23:11 ideal2545

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

deluxestyle avatar Nov 10 '21 06:11 deluxestyle

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?

Stooovie avatar Nov 10 '21 07:11 Stooovie

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.

michalk-k avatar Nov 13 '21 17:11 michalk-k

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

gieljnssns avatar Nov 25 '21 18:11 gieljnssns

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.

chendo avatar Nov 27 '21 01:11 chendo

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

deluxestyle avatar Dec 04 '21 09:12 deluxestyle

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

gieljnssns avatar Dec 04 '21 11:12 gieljnssns

Posting some links from -what I think- is the same issue https://github.com/home-assistant/core/issues/57271 https://github.com/home-assistant/frontend/issues/10224 https://community.home-assistant.io/t/ios-15-beta-and-public-release-safari-companion-app-freezing/323755/14 https://community.home-assistant.io/t/gui-is-unresponsive-after-some-time-on-ios-before-page-refresh-pull-down-or-force-close-open-app-how-to-id-and-fix/340527 https://community.home-assistant.io/t/ios-app-eventually-stops-updating/339809

gieljnssns avatar Dec 04 '21 11:12 gieljnssns

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

Stooovie avatar Dec 04 '21 11:12 Stooovie

And this is a really annoying issue...

gieljnssns avatar Dec 04 '21 12:12 gieljnssns

@zacwest can you please look at this and maybe tell us if this is a problem in the iOS app or is something that needs to be addressed in the frontend project?

mxilievski avatar Dec 05 '21 23:12 mxilievski