Villhellm / lovelace-animated-background

Animated backgrounds for lovelace
191 stars 60 forks source link

Bug report #44

Open GregoryVandromme opened 3 years ago

GregoryVandromme commented 3 years ago

Describe the bug Hi, my backgrounds won't show on Home Assistant, I've tried everything I can think of to fix it (clearing my cache completely reinstalling home assistant and hacs etc. nothing gives.

Your Animated Background configuration

animated_background: default_url: 'https://cdn.flixel.com/flixel/ypy8bw9fgw1zv2b4htp2.hd.mp4' entity: weather.home state_url: sunny:

Version Numbers "Latest" is not a version number

Browser console log ​ A preload for 'http://homeassistant.local:8123/frontend_latest/core.a16e4a28.js' is found, but is not used because the script type does not match. (anonymous) @ default_view:1 ​ A preload for 'http://homeassistant.local:8123/frontend_latest/app.52350e7c.js' is found, but is not used because the script type does not match. (anonymous) @ default_view:1 :8123/hacsfiles/lovelace-animated-background/animated-background.js:1 Failed to load resource: the server responded with a status of 404 (Not Found) chunk.7ade96a9da5d055f2747.js:575 Uncaught (in promise) http://homeassistant.local:8123/hacsfiles/lovelace-animated-background/animated-background.js :8123/logbook:1 The resource http://homeassistant.local:8123/frontend_latest/app.52350e7c.js was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally. :8123/logbook:1 The resource http://homeassistant.local:8123/frontend_latest/core.a16e4a28.js was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate as value and it is preloaded intentionally. ​ [ttyd] websocket connection opened ​ [ttyd] WebGL renderer enabled ​ [object Object],[object Object],[object Object] :8123/lovelace:1 Autofocus processing was blocked because a document already has a focused element.

Device (please complete the following information):

Shalobee commented 3 years ago

looks like you are missing your user list:

animated_background:
  default_url: /local/backgrounds/ypy8bw9fgw1zv2b4htp2.hd.mp4
  included_users:
    - user1
    - user2
  entity: weather.home

if the user isn't listed as displayed name then it won't work. For example I have a user for my wall mounted tablet called wallpanel with a display name of Wall Panel and it will only show up if i put Wall Panel for the included_users: