j-a-n / lovelace-wallpanel

🖼️ Wall panel mode and photo screensaver for your Home Assistant Dashboards
GNU General Public License v3.0
429 stars 38 forks source link

WallPanel stopped working on iPad 17.5.1 #253

Closed ShaneK closed 1 month ago

ShaneK commented 1 month ago

Hello!

I'm not sure if this error has occurred from the result of a WallPanel update or HA update, but recently WallPanel has stopped working on my iPad completely, no longer showing the slide show when idle. Nothing has been changed configuration-wise and I don't think my iPad has updated its version in a bit, so hopefully this is an easy fix. I did notice that this only happens on the iPad, it works fine in a browser on my computer.

Here's the error from the logs:

Logger: frontend.js.latest.202407050
Source: components/system_log/__init__.py:333
First occurred: July 8, 2024 at 9:48:34 AM (18 occurrences)
Last logged: 6:05:00 AM

Uncaught error from WebKit 605.1.15 on Mac OS 10.15.7 TypeError: undefined is not an object (evaluating 'this.lovelace.editMode') _createCardElement (src/panels/lovelace/views/hui-view.ts:79:36) /hacsfiles/lovelace-wallpanel/wallpanel.js:1146:53 forEach ([native code]::) createInfoBoxContent (/hacsfiles/lovelace-wallpanel/wallpanel.js:1132:24) startScreensaver (/hacsfiles/lovelace-wallpanel/wallpanel.js:2090:28) timer (/hacsfiles/lovelace-wallpanel/wallpanel.js:769:26)
Uncaught error from WebKit 605.1.15 on Mac OS 10.15.7 TypeError: undefined is not an object (evaluating 'this.lovelace.editMode') _createCardElement (src/panels/lovelace/views/hui-view.ts:79:36) /hacsfiles/lovelace-wallpanel/wallpanel.js:1146:53 forEach ([native code]::) createInfoBoxContent (/hacsfiles/lovelace-wallpanel/wallpanel.js:1132:24) updateScreensaver (/hacsfiles/lovelace-wallpanel/wallpanel.js:2156:29) timer (/hacsfiles/lovelace-wallpanel/wallpanel.js:765:26)

I do have one custom card on the wallpanel, so I disabled it to see if that was it and no dice.

Edit: This may be a HA-based issue? I'm not sure. I updated HA to 2024.7.2 (previously 2024.7.1) and now I have a new error:

Uncaught error from WebKit 605.1.15 on Mac OS 10.15.7 TypeError: undefined is not an object (evaluating 'img.imageUrl.replace') /hacsfiles/lovelace-wallpanel/wallpanel.js:1559:23 replace ([native code]::) setImageDataInfo (/hacsfiles/lovelace-wallpanel/wallpanel.js:1556:22) switchActiveImage (/hacsfiles/lovelace-wallpanel/wallpanel.js:2009:24) updateScreensaver (/hacsfiles/lovelace-wallpanel/wallpanel.js:2180:28) timer (/hacsfiles/lovelace-wallpanel/wallpanel.js:765:26)

It still works on my desktop browser though 🧐

j-a-n commented 1 month ago

Hello,

please see #246 Update to latest wallpanel version and clear your browser cache.