Mac App: Wake from Sleep/Cache issue
Why does the the Mac app cache constantly? It should refresh the instance when opened from background or in use. Every time I open the app from the background (when not in use), I get the message 'Fail to call action' and I'm unable to interact with my HA instance unless I close and reopen the app.
I shouldn't have to force close the app every single damn time to use it. The app should refresh every time it is woken up from device sleep, and from background.
macOS Version: All versions
This needs to be addressed, as it is prolonged usability issue.
Nearly half a year since reported, any updates on this?
Nearly half a year since reported, any updates on this?
What version of the macOS App are you running? Whats the version for your Home Assistant?
Can you send a video reproducing the error?
This is likely the webview websocket connection breaking and the system not detecting it. They workaround is very reliable in iOS to force a reset but the mac equivalent isn't aggressive enough. This was an iOS 15 or 16 regression iirc
What version of the macOS App are you running? Whats the version for your Home Assistant?
Can you send a video reproducing the error?
Stable Release: 2023.12.1 (macOS Store) Home Assistant: 2024.1.3
I had same issue with previous versions of Home Assistant versions and the Mac app also.
With build 2024.1 (2024.518), I did have another issue with the icon and images not rendering correctly, but that seems to have been fixed in the latest version (.525) which I had updated today.
I think @zacwest is correct with the judgement that it's a websocket related issue. I'd have to since updated to the latest beta through TestFlight, but haven't tested it long enough to reproduce the issue.
I will report back with any findings.
Issue regarding the icons not rendering is still occurring in the latest beta:
Can someone check if this issue still happens on latest app version? 2024.4
Can someone check if this issue still happens on latest app version? 2024.4
Seems to have resolved with 2024.4 thanks, although I haven't tested it long enough. I will report back with any findings. I do however, get this issue from time to time after wakeup from sleep
@ncodee thanks for checking. About the other issue, please keep an eye if it happens again with 2024.4 and report your findings in the other issue page.
@ncodee thanks for checking. About the other issue, please keep an eye if it happens again with 2024.4.4 and report your findings in the other issue page.
It seems HA 2024.4.4 update has broken the websocket, but this time no cards are loading with a persistant `Custom element does not exist' message for each card. Force closing/restarting the app doesn't to seem to do anything unfortunatly. This didn't happen with 2024.4.3, a breaking change maybe?
- macOS 14.5 Beta (23F5059e)
- Safari 17.5 (19618.2.7.11.1)
- HA App 2024.4 (2024.624)
- Home Assistant 2024.4.4
@ncodee thanks for checking. About the other issue, please keep an eye if it happens again with 2024.4.4 and report your findings in the other issue page.
It seems HA 2024.4.4 update has broken the websocket, but this time no cards are loading with a persistant `Custom element does not exist' message for each card. Force closing/restarting the app doesn't to seem to do anything unfortunatly. This didn't happen with 2024.4.3, a breaking change maybe?
macOS 14.5 Beta (23F5059e)
Safari 17.5 (19618.2.7.11.1)
HA App 2024.4 (2024.624)
Home Assistant 2024.4.4
I haven't received reports about it yet, my instance is working fine till now, do you see anything relevant in the logs? How's it working in Safari?
You can try 2024.4.1 available in TestFlight but no intentional fix was done there
@ncodee thanks for checking. About the other issue, please keep an eye if it happens again with 2024.4.4 and report your findings in the other issue page.
It seems HA 2024.4.4 update has broken the websocket, but this time no cards are loading with a persistant `Custom element does not exist' message for each card. Force closing/restarting the app doesn't to seem to do anything unfortunatly. This didn't happen with 2024.4.3, a breaking change maybe?
- macOS 14.5 Beta (23F5059e)
- Safari 17.5 (19618.2.7.11.1)
- HA App 2024.4 (2024.624)
- Home Assistant 2024.4.4
I haven't received reports about it yet, my instance is working fine till now, do you see anything relevant in the logs? How's it working in Safari?
You can try 2024.4.1 available in TestFlight but no intentional fix was done there
Works perfectly fine on Safari and other browsers, just the macOS app. I've just tested it with the Testflight 2024.4.1 and having the same issue as well. It seems to be a websocket issue as it is spamming the logs:
2024-04-24 20:10:49.937 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 7)
2024-04-24 20:10:49.937 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 7)
2024-04-24 20:10:49.937 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 7)
2024-04-24 20:10:49.937 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 7)
2024-04-24 20:10:51.049 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 7)
2024-04-24 20:10:52.464 [Info] [main] [Environment.swift:71] init() > WebSocket: Ping
2024-04-24 20:10:55.255 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 7)
2024-04-24 20:10:56.727 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 7)
2024-04-24 20:10:57.369 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Sending: {"id":13,"type":"ping"}
2024-04-24 20:10:57.383 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: result success HARequestIdentifier(rawValue: 13)
2024-04-24 20:11:04.907 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 7)
2024-04-24 20:11:04.908 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 7)
2024-04-24 20:11:04.908 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 7)
2024-04-24 20:11:04.908 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 7)
2024-04-24 20:11:04.908 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 7)
2024-04-24 20:11:04.908 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 7)