Giter Site home page Giter Site logo

lovelace-animated-background's Introduction

MAJOR BREAKING CHANGE IN v0.5.0+

YOUR ANIMATED BACKGROUND CONFIGURATION WILL NEED TO BE UPDATED, follow the new configuration guidelines below.

Animated Lovelace Background

This module is for Lovelace on Home Assistant

Create animated backgrounds based on the state of one of your entities. Originally designed for changing with the weather, à la VideoBackground-Card, you can now choose any entity in home assistant and create an animated background for each of its states.

A big thanks to Customer Header and VideoBackground-Card for the inspiration.

Example: Example

Installation Method 1: Manual

Step 1

Install animated-background by copying animated-background.js from this repo to <config directory>/www/animated-background.js on your Home Assistant instance.

Step 2

Add the resource to your configuration. If you are in yaml mode follow the lovelace docs. If you are using the UI to manage resources then go you <your-ha-address>/config/lovelace/resources and add the URL /local/animated-background.js as a javascript module.

Step 3

Add the custom element in the root of your ui-lovelace.yaml (or Lovelace raw configuration if not in yaml mode), not in a view or card. Ex:

animated_background:
  default_url: "https://cdn.flixel.com/flixel/ypy8bw9fgw1zv2b4htp2.hd.mp4"
  included_users:
    - Villhellm
  # This entity is just an example, use whatever entity you would like
  entity: "weather.home"
  state_url:
    'sunny':
      - "https://cdn.flixel.com/flixel/hlhff0h8md4ev0kju5be.hd.mp4"
      - "https://cdn.flixel.com/flixel/zjqsoc6ecqhntpl5vacs.hd.mp4"
      - "https://cdn.flixel.com/flixel/jvw1avupguhfbo11betq.hd.mp4"
      - "https://cdn.flixel.com/flixel/8cmeusxf3pkanai43djs.hd.mp4"
      - "https://cdn.flixel.com/flixel/guwb10mfddctfvwioaex.hd.mp4"

    'partlycloudy':
      - "https://cdn.flixel.com/flixel/13e0s6coh6ayapvdyqnv.hd.mp4"
      - "https://cdn.flixel.com/flixel/aorl3skmssy7udwopk22.hd.mp4"
      - "https://cdn.flixel.com/flixel/qed6wvf2igukiioykg3r.hd.mp4"
      - "https://cdn.flixel.com/flixel/3rd72eezaj6d23ahlo7y.hd.mp4"
      - "https://cdn.flixel.com/flixel/9m11gd43m6qn3y93ntzp.hd.mp4"
      - "https://cdn.flixel.com/flixel/hrkw2m8eofib9sk7t1v2.hd.mp4"

    'cloudy':
      - "https://cdn.flixel.com/flixel/13e0s6coh6ayapvdyqnv.hd.mp4"
      - "https://cdn.flixel.com/flixel/aorl3skmssy7udwopk22.hd.mp4"
      - "https://cdn.flixel.com/flixel/qed6wvf2igukiioykg3r.hd.mp4"
      - "https://cdn.flixel.com/flixel/3rd72eezaj6d23ahlo7y.hd.mp4"
      - "https://cdn.flixel.com/flixel/9m11gd43m6qn3y93ntzp.hd.mp4"
      - "https://cdn.flixel.com/flixel/hrkw2m8eofib9sk7t1v2.hd.mp4"

    'mostlycloudy':
      - "https://cdn.flixel.com/flixel/e95h5cqyvhnrk4ytqt4q.hd.mp4"
      - "https://cdn.flixel.com/flixel/l2bjw34wnusyf5q2qq3p.hd.mp4"
      - "https://cdn.flixel.com/flixel/rrgta099ulami3zb9fd2.hd.mp4"

    'clear-night':
      - "https://cdn.flixel.com/flixel/x9dr8caygivq5secll7i.hd.mp4"
      - "https://cdn.flixel.com/flixel/v26zyfd6yf0r33s46vpe.hd.mp4"
      - "https://cdn.flixel.com/flixel/ypy8bw9fgw1zv2b4htp2.hd.mp4"
      - "https://cdn.flixel.com/flixel/rosz2gi676xhkiw1ut6i.hd.mp4"

    'fog':
      - "https://cdn.flixel.com/flixel/vwqzlk4turo2449be9uf.hd.mp4"
      - "https://cdn.flixel.com/flixel/5363uhabodwwrzgnq6vx.hd.mp4"

    'rainy': "https://cdn.flixel.com/flixel/f0w23bd0enxur5ff0bxz.hd.mp4"

title: Home
views: ...

Installation Method 2: HACS

Step 1

Make sure you have HACS installed, find Animated Background in the plug section, and install.

Step 2

Add the resource to your configuration. If you are in yaml mode follow the lovelace docs and add the URL /hacsfiles/lovelace-animated-background/animated-background.js as a module. If you are using the UI to manage resources then click the button at the top of the Animated Background HACS page to automatically add it to your resources.

Step 3

Add the custom element in the root of your ui-lovelace.yaml (or Lovelace raw configuration if not in yaml mode), not in a view or card. Ex:

animated_background:
  default_url: "https://cdn.flixel.com/flixel/ypy8bw9fgw1zv2b4htp2.hd.mp4"
  included_users:
    - Villhellm
  # This entity is just an example, use whatever entity you would like
  entity: "weather.home"
  state_url:
    'sunny':
      - "https://cdn.flixel.com/flixel/hlhff0h8md4ev0kju5be.hd.mp4"
      - "https://cdn.flixel.com/flixel/zjqsoc6ecqhntpl5vacs.hd.mp4"
      - "https://cdn.flixel.com/flixel/jvw1avupguhfbo11betq.hd.mp4"
      - "https://cdn.flixel.com/flixel/8cmeusxf3pkanai43djs.hd.mp4"
      - "https://cdn.flixel.com/flixel/guwb10mfddctfvwioaex.hd.mp4"

    'partlycloudy':
      - "https://cdn.flixel.com/flixel/13e0s6coh6ayapvdyqnv.hd.mp4"
      - "https://cdn.flixel.com/flixel/aorl3skmssy7udwopk22.hd.mp4"
      - "https://cdn.flixel.com/flixel/qed6wvf2igukiioykg3r.hd.mp4"
      - "https://cdn.flixel.com/flixel/3rd72eezaj6d23ahlo7y.hd.mp4"
      - "https://cdn.flixel.com/flixel/9m11gd43m6qn3y93ntzp.hd.mp4"
      - "https://cdn.flixel.com/flixel/hrkw2m8eofib9sk7t1v2.hd.mp4"

    'cloudy':
      - "https://cdn.flixel.com/flixel/13e0s6coh6ayapvdyqnv.hd.mp4"
      - "https://cdn.flixel.com/flixel/aorl3skmssy7udwopk22.hd.mp4"
      - "https://cdn.flixel.com/flixel/qed6wvf2igukiioykg3r.hd.mp4"
      - "https://cdn.flixel.com/flixel/3rd72eezaj6d23ahlo7y.hd.mp4"
      - "https://cdn.flixel.com/flixel/9m11gd43m6qn3y93ntzp.hd.mp4"
      - "https://cdn.flixel.com/flixel/hrkw2m8eofib9sk7t1v2.hd.mp4"

    'mostlycloudy':
      - "https://cdn.flixel.com/flixel/e95h5cqyvhnrk4ytqt4q.hd.mp4"
      - "https://cdn.flixel.com/flixel/l2bjw34wnusyf5q2qq3p.hd.mp4"
      - "https://cdn.flixel.com/flixel/rrgta099ulami3zb9fd2.hd.mp4"

    'clear-night':
      - "https://cdn.flixel.com/flixel/x9dr8caygivq5secll7i.hd.mp4"
      - "https://cdn.flixel.com/flixel/v26zyfd6yf0r33s46vpe.hd.mp4"
      - "https://cdn.flixel.com/flixel/ypy8bw9fgw1zv2b4htp2.hd.mp4"
      - "https://cdn.flixel.com/flixel/rosz2gi676xhkiw1ut6i.hd.mp4"

    'fog':
      - "https://cdn.flixel.com/flixel/vwqzlk4turo2449be9uf.hd.mp4"
      - "https://cdn.flixel.com/flixel/5363uhabodwwrzgnq6vx.hd.mp4"

    'rainy': "https://cdn.flixel.com/flixel/f0w23bd0enxur5ff0bxz.hd.mp4"


title: Home
views: ...

Configuration

Configuration for Animated Background goes into the root of your Lovelace config.

Animated Background Configuration Options

Name Type Requirement Description
default_url string or list(string) Optional If no matching state is found, this is the fallback video url. You can either define a single url or an array. If an array is defined then a random video will be selected from that array.
enabled bool Optional Set to false to disable Animated Background
display_user_agent bool Optional If set to true you will get an alert with your current user agent. This will help determine your device to use in excluded_devices or included_devices
debug bool Optional Get more detailed log messages
views list (views) Optional Allows you to set custom configurations per view
groups list (group) Optional Allows you to set custom configurations that can be referenced in lovelace view configurations
entity string Optional Entity to check for state changes
state_url map Optional Map of states and video or image urls. Any mp4, webm, or image link will work, even relative /local/ links. Using locally stored videos will greatly improve loading times. It is recommended to 'cinemagraphs', these videos are only a few seconds long and are meant to loop . Set to 'none' to disable background for the defined state (see example). You can either define a single url or an array. If an array is defined then a random video will be selected from that array. Required if entity is defined.
included_users list (string) Optional List of users that will display animated background. If this option is set any users not included in this list will be excluded.
included_devices list (string) Optional List of devices that will display animated background. If this option is set any devices not included in this list will be excluded. Ex: iphone, ipad, windows, macintosh, android
excluded_users list (string) Optional Users to be excluded
excluded_devices list (string) Optional Devices to be excluded Ex: iphone, ipad, windows, macintosh, android

While all entries are optional, it is recommended to at least set default_url or entity with state_url. Without one of those set you would never know this plugin was installed.

View Configuration

Name Type Requirement Description
path string Required The path to the Lovelace view you want to configure. Whatever comes after /lovelace/ in your view's url. Even if you are using a different dashboard than /lovelace/, you still just use the last part of the url.
config config Required See stored config for requirements and options

Ex:

animated_background:
  default_url: "https://cdn.flixel.com/flixel/ypy8bw9fgw1zv2b4htp2.hd.mp4"
  included_users:
    - Villhellm
  # This entity is just an example, use whatever entity you would like
  entity: "weather.home"
  state_url:
    'sunny':
      - "https://cdn.flixel.com/flixel/hlhff0h8md4ev0kju5be.hd.mp4"
      - "https://cdn.flixel.com/flixel/zjqsoc6ecqhntpl5vacs.hd.mp4"
      - "https://cdn.flixel.com/flixel/jvw1avupguhfbo11betq.hd.mp4"
      - "https://cdn.flixel.com/flixel/8cmeusxf3pkanai43djs.hd.mp4"
      - "https://cdn.flixel.com/flixel/guwb10mfddctfvwioaex.hd.mp4"

    'partlycloudy':
      - "https://cdn.flixel.com/flixel/13e0s6coh6ayapvdyqnv.hd.mp4"
      - "https://cdn.flixel.com/flixel/aorl3skmssy7udwopk22.hd.mp4"
      - "https://cdn.flixel.com/flixel/qed6wvf2igukiioykg3r.hd.mp4"
      - "https://cdn.flixel.com/flixel/3rd72eezaj6d23ahlo7y.hd.mp4"
      - "https://cdn.flixel.com/flixel/9m11gd43m6qn3y93ntzp.hd.mp4"
      - "https://cdn.flixel.com/flixel/hrkw2m8eofib9sk7t1v2.hd.mp4"

    'cloudy':
      - "https://cdn.flixel.com/flixel/13e0s6coh6ayapvdyqnv.hd.mp4"
      - "https://cdn.flixel.com/flixel/aorl3skmssy7udwopk22.hd.mp4"
      - "https://cdn.flixel.com/flixel/qed6wvf2igukiioykg3r.hd.mp4"
      - "https://cdn.flixel.com/flixel/3rd72eezaj6d23ahlo7y.hd.mp4"
      - "https://cdn.flixel.com/flixel/9m11gd43m6qn3y93ntzp.hd.mp4"
      - "https://cdn.flixel.com/flixel/hrkw2m8eofib9sk7t1v2.hd.mp4"

    'mostlycloudy':
      - "https://cdn.flixel.com/flixel/e95h5cqyvhnrk4ytqt4q.hd.mp4"
      - "https://cdn.flixel.com/flixel/l2bjw34wnusyf5q2qq3p.hd.mp4"
      - "https://cdn.flixel.com/flixel/rrgta099ulami3zb9fd2.hd.mp4"

    'clear-night':
      - "https://cdn.flixel.com/flixel/x9dr8caygivq5secll7i.hd.mp4"
      - "https://cdn.flixel.com/flixel/v26zyfd6yf0r33s46vpe.hd.mp4"
      - "https://cdn.flixel.com/flixel/ypy8bw9fgw1zv2b4htp2.hd.mp4"
      - "https://cdn.flixel.com/flixel/rosz2gi676xhkiw1ut6i.hd.mp4"

    'fog':
      - "https://cdn.flixel.com/flixel/vwqzlk4turo2449be9uf.hd.mp4"
      - "https://cdn.flixel.com/flixel/5363uhabodwwrzgnq6vx.hd.mp4"

    'rainy': "https://cdn.flixel.com/flixel/f0w23bd0enxur5ff0bxz.hd.mp4"
  views:
    - path: gaming
      config:
        default_url: "https://cdn.flixel.com/flixel/ypy8bw9fgw1zv2b4htp2.hd.mp4"
        entity: "light.game_room"
        state_url:
          'on':  "https://cdn.flixel.com/flixel/8cmeusxf3pkanai43djs.hd.mp4"
          'off': "https://cdn.flixel.com/flixel/ypy8bw9fgw1zv2b4htp2.hd.mp4"
title: Home
views: ...

Group Configuration

Name Type Requirement Description
name string Required The name you would like to use to define your group.
config config Required See stored config for requirements and options

Groups can be used to easily reuse Animated Background configurations. After defining your groups: block with at least one entry, you can add a single line to any of your views to use this configuration.

Ex:

animated_background:
  default_url: "https://cdn.flixel.com/flixel/ypy8bw9fgw1zv2b4htp2.hd.mp4"
  groups:
    - name: weather
      config:
        entity: "weather.home"
        state_url:
          'sunny':
            - "https://cdn.flixel.com/flixel/hlhff0h8md4ev0kju5be.hd.mp4"
            - "https://cdn.flixel.com/flixel/zjqsoc6ecqhntpl5vacs.hd.mp4"
            - "https://cdn.flixel.com/flixel/jvw1avupguhfbo11betq.hd.mp4"
            - "https://cdn.flixel.com/flixel/8cmeusxf3pkanai43djs.hd.mp4"
            - "https://cdn.flixel.com/flixel/guwb10mfddctfvwioaex.hd.mp4"

          'partlycloudy':
            - "https://cdn.flixel.com/flixel/13e0s6coh6ayapvdyqnv.hd.mp4"
            - "https://cdn.flixel.com/flixel/aorl3skmssy7udwopk22.hd.mp4"
            - "https://cdn.flixel.com/flixel/qed6wvf2igukiioykg3r.hd.mp4"
            - "https://cdn.flixel.com/flixel/3rd72eezaj6d23ahlo7y.hd.mp4"
            - "https://cdn.flixel.com/flixel/9m11gd43m6qn3y93ntzp.hd.mp4"
            - "https://cdn.flixel.com/flixel/hrkw2m8eofib9sk7t1v2.hd.mp4"

          'cloudy':
            - "https://cdn.flixel.com/flixel/13e0s6coh6ayapvdyqnv.hd.mp4"
            - "https://cdn.flixel.com/flixel/aorl3skmssy7udwopk22.hd.mp4"
            - "https://cdn.flixel.com/flixel/qed6wvf2igukiioykg3r.hd.mp4"
            - "https://cdn.flixel.com/flixel/3rd72eezaj6d23ahlo7y.hd.mp4"
            - "https://cdn.flixel.com/flixel/9m11gd43m6qn3y93ntzp.hd.mp4"
            - "https://cdn.flixel.com/flixel/hrkw2m8eofib9sk7t1v2.hd.mp4"

          'mostlycloudy':
            - "https://cdn.flixel.com/flixel/e95h5cqyvhnrk4ytqt4q.hd.mp4"
            - "https://cdn.flixel.com/flixel/l2bjw34wnusyf5q2qq3p.hd.mp4"
            - "https://cdn.flixel.com/flixel/rrgta099ulami3zb9fd2.hd.mp4"

          'clear-night':
            - "https://cdn.flixel.com/flixel/x9dr8caygivq5secll7i.hd.mp4"
            - "https://cdn.flixel.com/flixel/v26zyfd6yf0r33s46vpe.hd.mp4"
            - "https://cdn.flixel.com/flixel/ypy8bw9fgw1zv2b4htp2.hd.mp4"
            - "https://cdn.flixel.com/flixel/rosz2gi676xhkiw1ut6i.hd.mp4"

          'fog':
            - "https://cdn.flixel.com/flixel/vwqzlk4turo2449be9uf.hd.mp4"
            - "https://cdn.flixel.com/flixel/5363uhabodwwrzgnq6vx.hd.mp4"

          'rainy': "https://cdn.flixel.com/flixel/f0w23bd0enxur5ff0bxz.hd.mp4"
views:
  - path: home
    title: Home
    cards:
      - entity: weather.home
        type: weather-forecast
  - path: display
    title: Display
    animated_background: weather #this is the line to add to your view to use the "weather" group configuration.
    #Set to 'none' if you would like to disable the background for this view
    cards:
      - entity: weather.home
        type: weather-forecast

Stored Config

Name Type Requirement Description
default_url string or list(string) Optional If no matching state is found, this is the fallback video url. You can either define a single url or an array. If an array is defined then a random video will be selected from that array.
enabled bool Optional Set to false to disable Animated Background
entity string Optional Entity to check for state changes
state_url map Optional Map of states and video or image urls. Any mp4, webm, or image will work, even relative /local/ links. Using locally stored videos will greatly improve loading times. It is recommended to 'cinemagraphs', these videos are only a few seconds long and are meant to loop . Set to 'none' to disable background for the defined state (see example). You can either define a single url or an array. If an array is defined then a random video will be selected from that array. Required if entity is defined.
included_users list (string) Optional List of users that will display animated background. If this option is set any users not included in this list will be excluded.
included_devices list (string) Optional List of devices that will display animated background. If this option is set any devices not included in this list will be excluded. Ex: iphone, ipad, windows, macintosh, android
excluded_users list (string) Optional Users to be excluded
excluded_devices list (string) Optional Devices to be excluded Ex: iphone, ipad, windows, macintosh, android
background string Optional CSS option for the background overlay. Default is 'transparent'

Example if you want a different background for night and day when a switch changes (or any combination of entities)

A few people have asked about tying this to multiple entities. The good news is this is already possible with the use of a template sensor. Here is an example of a template sensor that would allow a different background for night/day when a bedroom switch changes.

configuration.yaml

sensor:
  - platform: template
    sensors:
      sun_bedroom:
        friendly_name: "Sun and Bedroom"
        value_template: "{{states('sun.sun') + '-' + states('switch.bedroom')}}"
        #this will return a state like 'above_horizon-on'

sun.sun has two states, above_horizon and below_horizon AKA day and night. So now if you use sensor.sun_bedroom instead of just switch.bedroom, the beginning of the state will give you the binary state of the sun's position. Here is an example of an Animated Background configuration that will use this sensor to give a different background based on the switch and whether it is day or night.

ui-lovelace.yaml (or raw configuration)

animated_background:
  default_url: "https://cdn.flixel.com/flixel/ypy8bw9fgw1zv2b4htp2.hd.mp4"
  entity: "sensor.sun_bedroom"
  state_url:
    'above_horizon-on': "https://cdn.flixel.com/flixel/hlhff0h8md4ev0kju5be.hd.mp4"

    'below_horizon-on': "https://cdn.flixel.com/flixel/9m11gd43m6qn3y93ntzp.hd.mp4"

    'above_horizon-off': "https://cdn.flixel.com/flixel/zjqsoc6ecqhntpl5vacs.hd.mp4"

    'below_horizon-off': "https://cdn.flixel.com/flixel/hrkw2m8eofib9sk7t1v2.hd.mp4"
    

Warning to mobile users

While I've done my best to perfect the device/user exceptions, I am not perfect. If you are using a mobile device and using an exception to prevent Animated Background from loading, please keep an eye on the Home Assistant app data use. If you notice unusually high usage after installing the plugin open an issue immediately and I will do my best to fix it. With the way themes function after Home Assistant .108 it is possible that the background video is being loaded behind the theme background (though I am pretty sure I've caught and destroyed all the bugs in that area).

If you plan on using Animated Background on a mobile device, be aware that this will most likely use a lot of mobile data.

Troubleshooting

lovelace-animated-background's People

Contributors

jr-k avatar sellerone avatar villhellm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lovelace-animated-background's Issues

Support for Casting

Hey.

Got this up and running. Looks great. :-)
I was looking to get cast a Lovelace panel to my Chromecast when it's idle. The casting works, but there's no video in the background.
I'm using Nabu Casa for remote access, don't know if that's an issue with casting? Wouldn't think so though...

Any chance you could implement?

Thanks

Ray

Clarify HACS install procedures please.

Sorry having issues with this.

Installed with HACS all ok.
I add this using the raw configuration editor:

animated_background: default_url: /local/backgrounds/ypy8bw9fgw1zv2b4htp2.hd.mp4 included_users: - chris entity: weather.home state_url: null sunny: - 'https://cdn.flixel.com/flixel/hlhff0h8md4ev0kju5be.hd.mp4' - 'https://cdn.flixel.com/flixel/zjqsoc6ecqhntpl5vacs.hd.mp4' - 'https://cdn.flixel.com/flixel/jvw1avupguhfbo11betq.hd.mp4' - 'https://cdn.flixel.com/flixel/8cmeusxf3pkanai43djs.hd.mp4' - 'https://cdn.flixel.com/flixel/guwb10mfddctfvwioaex.hd.mp4'

Nothing happens.
Can you point me in the right direction please?

Would love to get this working.

Thanks

Bug report: Configuration options overriding each other

First of all I'd like to thank you for releasing this stellar frontend integration! It's made a huge aesthetic difference to my dashboard and I very much appreciate your work on this project.

Describe the bug
It appears there is a race condition governing whether or not the included/excluded devices will prevail over the included/excluded users and vice versa. If using both included users and excluded devices configuration options as I do in my config, sometimes the excluded devices will not display the background but most times they do. Testing this with an excluded device and included user produces the same results as testing with an excluded user and included device. Removing one or the other configuration option resolves the problem.

EDIT: upon further testing it appears that explicitly setting the enabled bool to true will override both of these configuration options, i.e. no matter if the user and device both match a condition for exclusion, the animated background will appear regardless. This does not occur vice versa, i.e. if set to false, any included users/devices will not cause such an override.

Your Animated Background configuration

animated_background:
  enabled: true
  debug: true
  default_url: 'https://cdn.flixel.com/flixel/v26zyfd6yf0r33s46vpe.hd.mp4'
  included_users:
    - xBelladonna
  excluded_devices:
    - windows
    - android
  entity: sensor.sun_weather
  state_url:
    <huge map of sensor states and video url lists>

Version Numbers

  • Home Assistant: 0.118.2
  • Animated Background: v0.6.3

Browser console log
Console logs report device exclusion however animated background is still observed:

Animated Background DEBUG: Current device is excluded
Animated Background DEBUG: Removing view background for configuration: 
Object { enabled: true, debug: true, default_url: "https://cdn.flixel.com/flixel/v26zyfd6yf0r33s46vpe.hd.mp4", included_users: (1) […], excluded_devices: (2) […], entity: "sensor.sun_weather", state_url: {…} }
animated-background.js:44:15
Animated Background DEBUG: Starting, Debug mode enabled 
Animated Background DEBUG: Configured entity sensor.sun_weather is now above_horizon-cloudy 
true animated-background.js:44:15
Animated Background DEBUG: Current device is excluded
Animated Background DEBUG: Starting, Debug mode enabled 
Animated Background DEBUG: Configured entity sensor.sun_weather is now above_horizon-cloudy 
true animated-background.js:44:15
Animated Background DEBUG: Current device is excluded
Animated Background DEBUG: Starting, Debug mode enabled 
Animated Background DEBUG: Configured entity sensor.sun_weather is now above_horizon-cloudy 
true animated-background.js:44:15
Animated Background DEBUG: Current device is excluded
Animated Background DEBUG: Starting, Debug mode enabled 
Animated Background DEBUG: Configured entity sensor.sun_weather is now above_horizon-cloudy 
true animated-background.js:44:15
Animated Background DEBUG: Current device is excluded
Animated Background DEBUG: Removing view background for configuration: 
Object { enabled: true, debug: true, default_url: "https://cdn.flixel.com/flixel/v26zyfd6yf0r33s46vpe.hd.mp4", included_users: (1) […], excluded_devices: (2) […], entity: "sensor.sun_weather", state_url: {…} }

To Reproduce
Steps to reproduce the behavior:

  1. Configure both an included/excluded users and included/excluded devices section
  2. Set the configuration such that the current device/user will be included by one of these options (either by device or by user, either one works) and excluded by another, either by explicit or implicit inclusion/exclusion
  3. Clear browser cache and refresh page to ensure new settings are loaded
  4. Observe that background is still loaded (most of the time) despite browser console reporting exclusion of device/user

Expected behavior
It is expected that if a user/device matches a condition to be excluded, it will not be included by another configuration option, and vice versa, i.e. if a user has been explicitly excluded (or not explicitly included) then no matter if they are using an included (or not explicitly excluded) device, they will not observe an animated background, and if the user is included (or not explicitly excluded) but is using a device which has been explicitly excluded (or not explicitly included), they will also not observe an animated background.

It is also expected that the enabled option, if explicitly set to true, does not override the animated background display if a device/user has matched a condition for exclusion.

Device (please complete the following information):

  • OS: Windows, Android, Linux (tested on all three)
  • Browser: Firefox
  • Version 83.0 (64-bit)

snow wallpaper animation

I found that there is no scene of snow in the video playback animation. Where can I find such a link or video? Please give me some suggestions

Local stored animated backgrounds??

Hi! Is it possible to use a local stored background? Cannot find a way to do this :( Tried a few things but no luck. Maybe possible already? More a question how to do it the a new feature. Hope someone can help me out! Really like this animated backgrounds!

default_url as list

Describe the bug
A clear and concise description of what the bug is.
On a test view I don't want to define the background from the state of a specific entity but I would like to cycle from different backgrounds (mainly to test them).

Your Animated Background configuration

groups:
  - name: test
    config:
      default_url:
        - "/local/animated_backgrounds/test/Androm_Spin.mp4"
        - "/local/animated_backgrounds/test/biostorm.mp4"
        - "/local/animated_backgrounds/test/biostorm2.mp4"
        - "/local/animated_backgrounds/test/Bubbles_Animation.mp4"
        - "/local/animated_backgrounds/test/light_burst_animation.mp4"
        - "/local/animated_backgrounds/test/scifi-spin-v4.mp4"
        - "/local/animated_backgrounds/test/scifitunnel03.mp4"
        - "/local/animated_backgrounds/test/scifitunnel03.mp4"
        - "/local/animated_backgrounds/test/spin_cycle.mp4"

Your view configuration if it contains animated_background

animated_background:
  your_config

Version Numbers
"Latest" is not a version number

  • Home Assistant: 0.109.6
  • Animated Background: 0.5.0

Browser console log
Post anything related to animated-background.js

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.
Havint the background to cycle from the default_url without having to be binded to a specific entity.

Device (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Screenshots
If applicable, add screenshots to help explain your problem.

Animated background applied on non-included devices.

Your Animated Background configuration

animated_background:
  default_url: /local/animated_backgrounds/sunny.html
  included_users:
    - Andrea Iannucci
  included_devices:
    - windows
  entity: "weather.dark_sky"
  state_url:
    'sunny': /local/animated_backgrounds/sunny.html
    'partlycloudy': /local/animated_backgrounds/cloudy.html
    'cloudy': /local/animated_backgrounds/cloudy.html
    'mostlycloudy': /local/animated_backgrounds/mostlycloudy.html
    'clear-night': /local/animated_backgrounds/night.html
    'fog': /local/animated_backgrounds/fog.html

Version of Home Assistant 0.109.2
"Latest" is not a version number. Please provide the actual version number.

Describe the bug
Even configuring only "windows" as allowed device, I can see a white background (not the theme background) on the HA Mobile App and using Chrome

Browser console log
Post anything related to animated-background.js

To Reproduce
Steps to reproduce the behavior:

  1. Configure only "windows" as allowd device
  2. Open the UI using a mobile phone browser or HA Companion App

Expected behavior
Not showing a white background but the theme one

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: OnePlus 5
  • OS: OxygenOS 9.0.11 based on Android 9
  • Browser: Chrome
  • Version: 81.0.4044.117
  • App: Home Companion App 1.8.0-159 and Chrome 81.0.4044.117
  • Version: 1.8.0-159

Screenshots
If applicable, add screenshots to help explain your problem.
image

Additional context
Add any other context about the problem here.

view specific backgrounds broken?

Hi, Great addon. Your default example (animated backgrounds for all views) works. If I add a view option for a specific path I get the same background for all views. If I add two view specific options, I don't get anything.

Windows 10, chrome, latest version of home assistant.

Doesn't Work:
animated_background:
views:
- config:
default_url: >-
/community_plugin/lovelace-animated-background/background-animations/night.html
entity: sun.sun
path: new
- config:
default_url: >-
/community_plugin/lovelace-animated-background/backgound-animations/fog.html
path: blank

Works:
animated_background:
default_url: /local/animated-background/background-animations/sunny.html
included_users:
- Villhellm
entity: "weather.dark_sky"
state_url:
'sunny': /local/animated-background/background-animations/sunny.html
'partlycloudy': /local/animated-background/background-animations/cloudy.html
'cloudy': /local/animated-background/background-animations/cloudy.html
'mostlycloudy': /local/animated-background/background-animations/mostlycloudy.html
'clear-night': /local/animated-background/background-animations/night.html
'fog': /local/animated-background/background-animations/fog.html

Doesn't Work:
animated_background:
default_url: /community_plugin/lovelace-animated-background/background-animations/sunny.html
included_users:
- Villhellm
entity: "weather.dark_sky"
state_url:
'sunny': /community_plugin/lovelace-animated-background/background-animations/sunny.html
'partlycloudy': /community_plugin/lovelace-animated-background/background-animations/cloudy.html
'cloudy': /community_plugin/lovelace-animated-background/background-animations/cloudy.html
'mostlycloudy': /community_plugin/lovelace-animated-background/background-animations/mostlycloudy.html
'clear-night': /community_plugin/lovelace-animated-background/background-animations/night.html
'fog': /community_plugin/lovelace-animated-background/background-animations/fog.html
views:
- path: gaming
config:
default_url: /community_plugin/lovelace-animated-background/background-animations/sunny.html
entity: "light.game_room"
state_url:
'on': /community_plugin/lovelace-animated-background/background-animations/sunny.html
'off': /community_plugin/lovelace-animated-background/background-animations/night.html

Bug report

Describe the bug
occasional white screen till ctrl-f5 doesn't do it every time but enough to be annoying

Your Animated Background configuration

animated_background:
  default_url: 'https://cdn.flixel.com/flixel/ypy8bw9fgw1zv2b4htp2.hd.mp4'
  entity: weather.forecast
  state_url:
    clear-night:
      - 'https://cdn.flixel.com/flixel/x9dr8caygivq5secll7i.hd.mp4'
      - 'https://cdn.flixel.com/flixel/v26zyfd6yf0r33s46vpe.hd.mp4'
      - 'https://cdn.flixel.com/flixel/ypy8bw9fgw1zv2b4htp2.hd.mp4'
      - 'https://cdn.flixel.com/flixel/rosz2gi676xhkiw1ut6i.hd.mp4'
    cloudy:
      - 'https://cdn.flixel.com/flixel/13e0s6coh6ayapvdyqnv.hd.mp4"'
      - 'https://cdn.flixel.com/flixel/aorl3skmssy7udwopk22.hd.mp4'
      - 'https://cdn.flixel.com/flixel/qed6wvf2igukiioykg3r.hd.mp4'
      - 'https://cdn.flixel.com/flixel/3rd72eezaj6d23ahlo7y.hd.mp4'
      - 'https://cdn.flixel.com/flixel/9m11gd43m6qn3y93ntzp.hd.mp4'
      - 'https://cdn.flixel.com/flixel/hrkw2m8eofib9sk7t1v2.hd.mp4'
    fog:
      - 'https://cdn.flixel.com/flixel/vwqzlk4turo2449be9uf.hd.mp4'
      - 'https://cdn.flixel.com/flixel/5363uhabodwwrzgnq6vx.hd.mp4'
    mostlycloudy:
      - 'https://cdn.flixel.com/flixel/e95h5cqyvhnrk4ytqt4q.hd.mp4'
      - 'https://cdn.flixel.com/flixel/l2bjw34wnusyf5q2qq3p.hd.mp4'
      - 'https://cdn.flixel.com/flixel/rrgta099ulami3zb9fd2.hd.mp4'
    partlycloudy:
      - 'https://cdn.flixel.com/flixel/13e0s6coh6ayapvdyqnv.hd.mp4"'
      - 'https://cdn.flixel.com/flixel/aorl3skmssy7udwopk22.hd.mp4'
      - 'https://cdn.flixel.com/flixel/qed6wvf2igukiioykg3r.hd.mp4'
      - 'https://cdn.flixel.com/flixel/3rd72eezaj6d23ahlo7y.hd.mp4'
      - 'https://cdn.flixel.com/flixel/9m11gd43m6qn3y93ntzp.hd.mp4'
      - 'https://cdn.flixel.com/flixel/hrkw2m8eofib9sk7t1v2.hd.mp4'
    rainy:
      - 'https://cdn.flixel.com/flixel/f0w23bd0enxur5ff0bxz.hd.mp4'
    sunny:
      - 'https://cdn.flixel.com/flixel/hlhff0h8md4ev0kju5be.hd.mp4'
      - 'https://cdn.flixel.com/flixel/zjqsoc6ecqhntpl5vacs.hd.mp4'
      - 'https://cdn.flixel.com/flixel/jvw1avupguhfbo11betq.hd.mp4'
      - 'https://cdn.flixel.com/flixel/8cmeusxf3pkanai43djs.hd.mp4'
      - 'https://cdn.flixel.com/flixel/guwb10mfddctfvwioaex.hd.mp4'

Version Numbers

  • Home Assistant: 0.109.6
  • Animated Background: 0.60

Browser console log
Post anything related to animated-background.js

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Device (please complete the following information):

  • OS: windows 10
  • Browser chrome
  • Version 81.0.4044.138

Screenshots
Screenshot_32

Per user filter stopped working

Your Animated Background configuration

animated_background:
  default_url: /local/animated_backgrounds/sunny.html
  included_users:
    - Andrea Iannucci
  included_devices:
    - windows
  entity: "weather.dark_sky"
  state_url:
    'sunny': /local/animated_backgrounds/sunny.html
    'partlycloudy': /local/animated_backgrounds/cloudy.html
    'cloudy': /local/animated_backgrounds/cloudy.html
    'mostlycloudy': /local/animated_backgrounds/mostlycloudy.html
    'clear-night': /local/animated_backgrounds/night.html
    'fog': /local/animated_backgrounds/fog.html

Version of Home Assistant : 0.109.3
"Latest" is not a version number. Please provide the actual version number.

Describe the bug
A clear and concise description of what the bug is.
The "inlcude_user" filter I believe stopped working from last release

Browser console log
Post anything related to animated-background.js

animated-background.js:193 Uncaught TypeError: Cannot read property 'user' of null
    at enabled (animated-background.js:193)
    at animated-background.js:244
enabled @ animated-background.js:193
(anonymous) @ animated-background.js:244

To Reproduce
Steps to reproduce the behavior:

  1. Filter Animated Background to be used by a specific user only (haven't tried the exclude part)
  2. Open Lovelace

Expected behavior
A clear and concise description of what you expected to happen.
The specified user should be the only able to see the animate background

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: 81.0.4044.129

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

[Feature Request] Allow configuring opacity of the background

This is a feature request to adjust the opacity of the background. This is useful for dark themed backgrounds so that bright colours in the mp4 can be muted using opacity.

I've manually done this by editing line 488 of the js and adding in my desired opacity but it would be good if this could be done using the lovelace yaml configuration.

Simple question- help

I completed installation steps for HACS (second method).

How do I display the animated background on a dashboard tab now? I tried adding weather.home as an entity to a blank dashboard but I don't see the animated background.

Thanks!

Edit:
Figured out my problem- had to delete user from the example.

Any way to make it so the animated background is only displayed on certain dashboard views?

Edit2:
Nevermind. Had to delete default url and adding a group as described.

no longer shows backgrounds

since updating to "d0699ca" home assistant 0.109.2 the backgrounds no longer load
if i set my background opacity to a low number the backgrounds show but the configuration pages and development pages are awful.
it worked fine pre this update

animated_background:
  default_url: /hacsfiles/lovelace-animated-background/background-animations/sunny.html
  entity: weather.forecast
  state_url:
    clear-night: /hacsfiles/lovelace-animated-background/background-animations/night.html
    cloudy: /hacsfiles/lovelace-animated-background/background-animations/cloudy.html
    fog: /hacsfiles/lovelace-animated-background/background-animations/fog.html
    mostlycloudy: >-
      /hacsfiles/lovelace-animated-background/background-animations/mostlycloudy.html
    partlycloudy: /hacsfiles/lovelace-animated-background/background-animations/cloudy.html
    sunny: /hacsfiles/lovelace-animated-background/background-animations/sunny.html

Screenshot_1

Dashboard nest hub

Hi,

I cant get my Google nest hub to show the animated background, only on my Android phone, have i done something wrong?

Read animations from folders

Great work. Would you be willing to add the ability to use folders instead of URLs. For example, I would like to put my videos in folders such as:
/local/animated-backgrounds\rainy
/local/animated-backgrounds\cloudy
/local/animated-backgrounds\foggy
etc

This way we can simply drop new mp4 files into the folder and the dashboard would cycle through the videos in those folders.

White background (instead of the theme one) when no animated_backround is configured

Your Animated Background configuration

I only have this in ui-lovelace.yaml , not in the additional dashboards (management and test ones)

animated_background:
  default_url: /local/animated_backgrounds/sunny.html
  included_users:
    - Andrea Iannucci
  included_devices:
    - windows
  entity: "weather.dark_sky"
  state_url:
    'sunny': /local/animated_backgrounds/sunny.html
    'partlycloudy': /local/animated_backgrounds/cloudy.html
    'cloudy': /local/animated_backgrounds/cloudy.html
    'mostlycloudy': /local/animated_backgrounds/mostlycloudy.html
    'clear-night': /local/animated_backgrounds/night.html
    'fog': /local/animated_backgrounds/fog.html

Version of Home Assistant
"Latest" is not a version number. Please provide the actual version number.
1.109.2

Describe the bug
A clear and concise description of what the bug is.
All the dashboards are loading a white background instead of the theme background presumably because the animated background is not configured for those dashboards.

Browser console log
Post anything related to animated-background.js
Not apparent/clear related error in the dashboard

To Reproduce
Steps to reproduce the behavior:

  1. Create a new dashboard
  2. Don't configure any animated_background
  3. View the dashboard

Expected behavior
A clear and concise description of what you expected to happen.
Use the default theme background if no configuration is present.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: 81.0.4044.129

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Screenshots
If applicable, add screenshots to help explain your problem.
image

Additional context
Add any other context about the problem here.

Background won't load

Hi, thank you for creating this plugin. It looks great, but i cant seem to get it to work. I get this error:

Uncaught DOMException: Failed to execute 'insertAdjacentHTML' on 'Element': The element has no parent.

Can you tell me what I am doing wrong?

expected expression, got '<'

Just loaded this and getting animated-background.js:7:0 SyntaxError: expected expression, got '<

I would love to use this plugin. I tried both the manual setup and the HACS, both give the same error

WARNING: 2023.4.0b0 or newer break Animated Background

As many things on the WebUI were overhauled completely and more will come with future versions most of the paths the addin docks onto are not on the former locations anymore. Thus the whole addin is DEAD. Maybe someone who already forked it and did some tinkering wants to look into that?

Screen starts flickering on tablet and mobile (Both Samsung)

20200810_170244_1 (1).mp4.zip

Describe the bug
I have a tablet on the wall and installed animated background latest version. This works great, but sometimes, especially after waking up, the screen starts to flicker. It looks like it happens when the background is reloaded. I saw the same issue on my mobile phone.

On the tablet i'm running Fully Kiosk Browser

Without animated background i don't have this issue. On a mac with Chrome also not.

Your Animated Background configuration

animated_background:
  debug: true
  default_url: /local/backgrounds/guwb10mfddctfvwioaex.hd.mp4
  enabled: true
  entity: weather.edison
  state_url:
    clear-night:
      - /local/backgrounds/x9dr8caygivq5secll7i.hd.mp4
      - /local/backgrounds/v26zyfd6yf0r33s46vpe.hd.mp4
      - /local/backgrounds/ypy8bw9fgw1zv2b4htp2.hd.mp4
      - /local/backgrounds/rosz2gi676xhkiw1ut6i.hd.mp4
    cloudy:
      - /local/backgrounds/13e0s6coh6ayapvdyqnv.hd.mp4
      - /local/backgrounds/aorl3skmssy7udwopk22.hd.mp4
      - /local/backgrounds/qed6wvf2igukiioykg3r.hd.mp4
      - /local/backgrounds/3rd72eezaj6d23ahlo7y.hd.mp4
      - /local/backgrounds/9m11gd43m6qn3y93ntzp.hd.mp4
      - /local/backgrounds/hrkw2m8eofib9sk7t1v2.hd.mp4
    fog:
      - /local/backgrounds/vwqzlk4turo2449be9uf.hd.mp4
      - /local/backgrounds/5363uhabodwwrzgnq6vx.hd.mp4
    mostlycloudy:
      - /local/backgrounds/e95h5cqyvhnrk4ytqt4q.hd.mp4
      - /local/backgrounds/l2bjw34wnusyf5q2qq3p.hd.mp4
      - /local/backgrounds/rrgta099ulami3zb9fd2.hd.mp4
    partlycloudy:
      - /local/backgrounds/13e0s6coh6ayapvdyqnv.hd.mp4
      - /local/backgrounds/aorl3skmssy7udwopk22.hd.mp4
      - /local/backgrounds/qed6wvf2igukiioykg3r.hd.mp4
      - /local/backgrounds/3rd72eezaj6d23ahlo7y.hd.mp4
      - /local/backgrounds/9m11gd43m6qn3y93ntzp.hd.mp4
      - /local/backgrounds/hrkw2m8eofib9sk7t1v2.hd.mp4
    rainy: /local/backgrounds/f0w23bd0enxur5ff0bxz.hd.mp4
    sunny:
      - /local/backgrounds/hlhff0h8md4ev0kju5be.hd.mp4
      - /local/backgrounds/zjqsoc6ecqhntpl5vacs.hd.mp4
      - /local/backgrounds/jvw1avupguhfbo11betq.hd.mp4
      - /local/backgrounds/8cmeusxf3pkanai43djs.hd.mp4
      - /local/backgrounds/guwb10mfddctfvwioaex.hd.mp4

Your view configuration if it contains animated_background

animated_background: your_config

Version Numbers

  • Home Assistant: 0.113.3
  • Animated Background: v0.6.3

Browser console log
I cannot see that on my tablet or phone.

To Reproduce
Steps to reproduce the behavior:
see video

Expected behavior
Not this issue.

Device (please complete the following information):
See above

Screenshots
See attached video

Sun, snow, wind and........ rain?

Hi

First of all, awesome project, really love the video backgrounds, especially with the sync to weather status. From the available weather statuses I imagine you live in a lovely place, maybe some tropical island or somewhere where its just nice all the time. And whilst I love the fact things default to some beautiful sunny background, give me solace from the torrential downpour, mostly like going on outside.... I wondered if you could help us less fortunate at least be reminded of the reality of what is going on outside. At the very least so I stop wearing shorts all the time.

Here in Manchester, UK the weather is fairly changeable, usually between "Rainy" and "Cloudy". It would also be interesting if there were perhaps fog, snow, windy, thunderstorms (I'm not entirely sure on all the naming in DarkSky).

As an aside, I notice that DarkSky reports "Clear Night" to which there are options, but I wondered if there is anything I can do to just deal with night perhaps relating to sun set rather than the weather status and be able to display some night videos?

Thanks again for the great project.

Andy

problem in new versions of HA

Hi.
Plugin stopped working after upgrade HA version 2023.3.6 to 2023.4.X.

js is loaded, but in console "Configuration not found"

Make Removing Existing Background a Configurable Option

Love your work on this.

I see you've done some good code around setting any existing css background to transparent.

My setup has a scenario where I'm using a background image, and a semi-transparent background colour on it, to give it a glassy/opaque look that matches my theme, and helps mute the background image so it doesn't interfere with the ui.

The CSS I'm using is essentially this one liner:

background: linear-gradient(#241b2fdd, #241b2fdd), center / cover no-repeat  url("/local/backgrounds/synthwave-2.jpg") fixed;

The effect can be seen in this screenshot:

Screenshot 2020-05-20 at 2 38 32 am

It would be great to be able to replicate this effect whilst using your video background plugin.

Describe the solution you'd like
It would be great if we could add a config setting, that allows us to disable setting the background to transparent (in the removeDefaultBackground() function.

I guess you would probably still default to removing any default background (as this is probably the most common expectation when using this), but having the ability to disable that would allow me to modify the CSS I used above, to something like the following, which only sets the partially transparent background, and not also the background image as before:

background: linear-gradient(#241b2fdd, #241b2fdd);

That way, I can still have the purple overlaying the video, as to dull it down on mute it's visiblility, and not interfere with the UI elements on top.

Thanks again for your great work.

Video doesn't show when in panel mode

Your Animated Background configuration

animated_background:
  default_url: /hacsfiles/lovelace-animated-background/background-animations/sunny.html
views:
  - cards:
      - type: entities
        style: 'ha-card {background: none;}'
        entities:
          - remote.sovrum
    path: default_view
    panel: true
    title: Home

Version of Home Assistant
0.109.2

Describe the bug
Video doesn't show when in panel mode

Browser console log
Animated Background: Starting
Animated Background: Applying default background

Additional context
Even if the cards background is set to none

custom sensor problem - only showing default url

After creation of a custom sensor to sum sun and weather, only the standard background is being showed.

Configuration.yaml (copied from example in documentation, I didn't build any template manually)

sensor:
  - platform: template
    sensors:
      sun_weather:
        friendly_name: "Sun and Weather"
        value_template: "{{states('sun.sun') + '-' + states('home.weather')}}"

Your view configuration if it contains animated_background

raw config

animated_background:
  default_url: 'https://cdn.flixel.com/flixel/ypy8bw9fgw1zv2b4htp2.hd.mp4'     #that's the only one showing up
  entity: sensor.sun_weather
  state_url:
    above_horizon-sunny:
      - 'https://1drv.ms/v/s!AlUhvEdB-IMWxC7vu17T6mqTsHiF'
    above_horizon-partlycloudy:
      - 'https://1drv.ms/v/s!AlUhvEdB-IMWxCXubRfvvYmCP_mX'
    above_horizon-cloudy:
      - 'https://1drv.ms/v/s!AlUhvEdB-IMWxC8b3r8ZOLDBkwTU'

There are other sensor values, but I also tried with only these and the original urls and got the same problem (only default url showing up)

Version Numbers

  • Home Assistant: 0.116.4
  • Animated Background: v0.6.3

Browser console log
Uncaught TypeError: Cannot read property 'background' of null
at removeDefaultBackground (animated-background.js:535)
at animated-background.js:576
animated-background.js:28 Animated Background: Starting
chunk.dbba5c652adfa0940143.js:26537 Detected removal of the top Blocking Element.
Uncaught (in promise)
Animated Background: Starting
Failed to load resource: the server responded with a status of 404 (Not Found)

To Reproduce
I created the new sensor in configuration.yaml, changed from standard weather to new sensor (sun and weather) in raw editor, added new weather status as per its documentation (like snowy-rain and windy, for example) and new video sources. Restarted HA. Now it's cloudy and sun above horizon. I tried replacing the new video for the standard one (previously working), with no difference. The new custom sensor is being recognized by the system. Re-replaced the videos by the original ones. Re-restarted HA. No difference.

Expected behavior
I expected to add custom videos (hosted in One Drive, Dropbox or other) to mirror weather and sun condition (night videos for night time and day videos for day time, according to their respective weather conditions).

Device (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version 86.0.4240.111 (Official Build) (64-bit)

Screenshots
It seems something is wrong in my sensor configuration, but since the codes are here, I wouldn't know what screenshot would be further helpful.

Sorry to bother, I'm a beginner with these technical configurations, so I'm pretty sure it's my fault.

FR - Ability to block some device-type

Hi there,
thanks for this plugin, it's really nice!

I wanted to block the background to be loaded from my phone since it become quite pointless (and barely visible) and when not in Wifi it is also a data consumer :)

Using the devices in HA I didn't yet manage to don't load it, but I was wondering if this can be improved a bit with the ability to block maybe per user-agent basis (using wildcard) or device type somehow.

Thanks :)

Andrea

Play next video in array after current one finishes

For each given state i define a couple of videos, but only one gets picked randomly and looped infinitely. I'd like it to play the videos one after the other like a playlist, and additionally have an shuffle option so that I can toggle whether it will start playing in order or randomly.

Switching by days of the week + sunrise or sunset

I can configure switching video wallpapers by days of the week or sunrise or sunset. Tell me how to make it so that you can switch not only by days of the week but also by sunrise or sunset? The first example works on days of the week, and the second example does not work on days of the week + sunrise or sunset.

This option works on days of the week

animated_background:
  default_url: /local/animated-background/day/01.mp4
  included_users:
    - users_01
  entity: sensor.dayoftheweek
  state_url:
    Thursday:
      - /local/animated-background/day/Switzerland_01.mp4
      - /local/animated-background/night/04.mp4
      - /local/animated-background/night_space/Space_05.mp4
    Friday:
      - /local/animated-background/day/Switzerland_01.mp4
      - /local/animated-background/night/04.mp4

This option does not work on days of the week + sunrise or sunset

animated_background:
  default_url: /local/animated-background/day/01.mp4
  included_users:
    - users_01
  entity: sensor.dayoftheweek
  state_url:
    Thursday:
      above_horizon:
        - /local/animated-background/day/Switzerland_01.mp4
        - /local/animated-background/night/04.mp4
      below_horizon:
        - /local/animated-background/night_space/Space_05.mp4
    Friday:
      above_horizon:
        - /local/animated-background/day/Switzerland_01.mp4
        - /local/animated-background/night/04.mp4
      below_horizon:
        - /local/animated-background/night_space/Space_05.mp4

Force stream to mobile devices or allow force stream to certain ip addresses

Your idea as completely as you can describe it
I'm running home assistant (0.112.3) and the lovelace ui on a raspberry pi 3b+ using chromium in kiosk mode. Chromium reports that it's a mobile device. This is some how making the animated background perform like it's a mobile app and so there is no background. This is problematic because though I wouldn't want the mp4 to play on an actual mobile device the device I'm using is not a mobile device. I think this issue may be because of chromium. I have opened the videos just fine by hitting the url in a regular browser and they play fine on the same device using another tab. But they will not play in home assistant. I noticed at the end of your documentation that you mentioned adding code that attempts to block video streaming if it detects a mobile device so I'm assuming that's what is preventing it. Is there a way to force it to stream when a certain ip address is requesting it?
I only believe that Chromium is reporting that it is a mobile device because I was attempting to run the spotify web player using chromium and it forced me to download the mobile app (which I cannot because it's not a mobile device!) The animated background works just fine on my computer.

Describe the solution you'd like
To make this easier, I would suggest either adding a control that would allow me to force override the mobile device logic and just play the videos no matter what. I don't access home assistant via any mobile devices and if I did it would be through wifi anyway so not a big deal. Plus I've downloaded the videos to the device hosting home assistant and they are pulling local files now anyway.

Doesn't load on 2nd dashboard, unless page is refreshed

Hey Villhellm,
Thanks for the great addition to Home Assistant. I have a question about how it loads on different dashboards.

In my HA setup I have 2 Dashboards and I would like to add the animated backgrounds on the second dashboard only. Each dashboard uses its own Lovelace config file and I've added the config below to the 2nd dashboard only.

animated_background:
  views:
    - config:
        default_url: /local/backgrounds-animated/sunny.html
        entity: sun.sun
        state_url:
          above_horizon: /local/backgrounds-animated/sunny.html
          below_horizon: /local/backgrounds-animated/night.html
      path: /lovelace-rineke/temperatuur
    - config:
        default_url: /local/backgrounds-animated/sunny.html
        entity: sun.sun
        state_url:
          above_horizon: /local/backgrounds-animated/sunny.html
          below_horizon: /local/backgrounds-animated/night.html
      path: /lovelace-rineke/weer

But when I view the second dashboard, it opens with it's static background (in my case a custom image) The animated background only shows after I manually refesh the page.
Is there any way to avoid that and have the animated background show right away when opening the second dashboard?

Home Assistant version: 0.108.9
Animated Background version: dd7563b
Browser: Chrome (81.0.4044.129)

Thanks for your time :)

animated background disappears after few minutes

Hi,

Thanks for your great work. Your recent fix resolved the issue i had with animated background as it didn't work after upgrading to .108.3. Current issue is that animated background goes off (plain background) after few minutes. I had to reload the url to get the animated background again. Also, background is applied only to the first tab. Other tabs just has a blank screen. Any possibility to look into these issues?

Resolution change?!

Your idea as completely as you can describe it
There is any way in order to change the resolution of the background? I see that it is rendering a lower resolution and the quality it is not perfect. I have a tablet with 1920 x 1200, but the resolution which this add-on is showing, it is less than 1280x .... I think is somewhere around 900 x ..... which is pretty low

Describe the solution you'd like
A clear and concise description of what you want to happen.

Weather: day and night

I have the latest version installed Home Assistant 2021.2.3.
У меня установлена последняя версия Home Assistant 2021.2.3.

I don't have a day and night like you, in the weather I don't have a clear-night, how do I do the same as you?
У меня нет как у вас дня и ночи, в состоянии погоды у меня нет clear-night, как мне сделать также как у вас?

weather
web

Logic improvment?

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Not a problem, more like an idea to improve the usage of this card on multiple views.

Describe the solution you'd like
A clear and concise description of what you want to happen.
Instead of having each view in the ui-lovelace.yaml file, it might be better define "groups" (that literally replace view, the rest is the same).
In each view then everyone can define the group that view is part of, such as:

animate_background: weather

or

animate_background: none

This way you can prevent redundancy in the configuration of the backgrounds having in each view the ability to add animate_background and assign a preset pre-defined in the ui-config.yaml (technically, the lack of animate_bacgkround in the view would still be considered "none".

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
The only alternative I can think of is to create a single config for each view, and sometimes this would be the same for multime views.

Another alternative would be that the view in the ui-lovelace.yaml would be a comma separated list of views where to apply the config, but I do think that a "group" (or template or preset if you wish) would be more "elegant".

Additional context
Add any other context or screenshots about the feature request here.

display_user_agent: true does not do anything

Describe the bug
display_user_agent: true does not show any message in chrome or Microsoft Edge browser. I did a reboot, but still nothing.

Your Animated Background configuration

animated_background:
  default_url: 'https://cdn.flixel.com/flixel/ypy8bw9fgw1zv2b4htp2.hd.mp4'
  display_user_agent: true
  entity: weather.openweathermap
  state_url:
    sunny:
      - 'https://cdn.flixel.com/flixel/hlhff0h8md4ev0kju5be.hd.mp4'
      - 'https://cdn.flixel.com/flixel/zjqsoc6ecqhntpl5vacs.hd.mp4'
      - 'https://cdn.flixel.com/flixel/jvw1avupguhfbo11betq.hd.mp4'
      - 'https://cdn.flixel.com/flixel/8cmeusxf3pkanai43djs.hd.mp4'
      - 'https://cdn.flixel.com/flixel/guwb10mfddctfvwioaex.hd.mp4'
    partlycloudy:
      - 'https://cdn.flixel.com/flixel/13e0s6coh6ayapvdyqnv.hd.mp4'
      - 'https://cdn.flixel.com/flixel/aorl3skmssy7udwopk22.hd.mp4'
      - 'https://cdn.flixel.com/flixel/qed6wvf2igukiioykg3r.hd.mp4'
      - 'https://cdn.flixel.com/flixel/3rd72eezaj6d23ahlo7y.hd.mp4'
      - 'https://cdn.flixel.com/flixel/9m11gd43m6qn3y93ntzp.hd.mp4'
      - 'https://cdn.flixel.com/flixel/hrkw2m8eofib9sk7t1v2.hd.mp4'
    cloudy:
      - 'https://cdn.flixel.com/flixel/13e0s6coh6ayapvdyqnv.hd.mp4'
      - 'https://cdn.flixel.com/flixel/aorl3skmssy7udwopk22.hd.mp4'
      - 'https://cdn.flixel.com/flixel/qed6wvf2igukiioykg3r.hd.mp4'
      - 'https://cdn.flixel.com/flixel/3rd72eezaj6d23ahlo7y.hd.mp4'
      - 'https://cdn.flixel.com/flixel/9m11gd43m6qn3y93ntzp.hd.mp4'
      - 'https://cdn.flixel.com/flixel/hrkw2m8eofib9sk7t1v2.hd.mp4'
    mostlycloudy:
      - 'https://cdn.flixel.com/flixel/e95h5cqyvhnrk4ytqt4q.hd.mp4'
      - 'https://cdn.flixel.com/flixel/l2bjw34wnusyf5q2qq3p.hd.mp4'
      - 'https://cdn.flixel.com/flixel/rrgta099ulami3zb9fd2.hd.mp4'
    clear-night:
      - 'https://cdn.flixel.com/flixel/x9dr8caygivq5secll7i.hd.mp4'
      - 'https://cdn.flixel.com/flixel/v26zyfd6yf0r33s46vpe.hd.mp4'
      - 'https://cdn.flixel.com/flixel/ypy8bw9fgw1zv2b4htp2.hd.mp4'
      - 'https://cdn.flixel.com/flixel/rosz2gi676xhkiw1ut6i.hd.mp4'
    fog:
      - 'https://cdn.flixel.com/flixel/vwqzlk4turo2449be9uf.hd.mp4'
      - 'https://cdn.flixel.com/flixel/5363uhabodwwrzgnq6vx.hd.mp4'
    rainy: 'https://cdn.flixel.com/flixel/f0w23bd0enxur5ff0bxz.hd.mp4'
title: Мой дом
views:
  - badges: []
    cards:
  ...

Version Numbers

  • Home Assistant: 2021.1.0
  • Animated Background: v0.6.3

Expected behavior
I want to exlude HA mobile app from animated background.

Device (please complete the following information):

  • OS: Windows 10
  • Browser Chrome
  • Version 87.0.4280.88

per view condition - idea

First off I love this plugin makes my dashboard more striking.

I have no idea how possible this would be but do you think there could be scope for conditional backgrounds based on current view as well as an entity's state

I have a gaming, security, weather, light etc etc views and it would look awesome.

I could have a different dynamic background for each tab that shows a relevant background based on an appropriate entity state for that view

Bug report

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:
- 'https://cdn.flixel.com/flixel/hlhff0h8md4ev0kju5be.hd.mp4'
- 'https://cdn.flixel.com/flixel/zjqsoc6ecqhntpl5vacs.hd.mp4'
- 'https://cdn.flixel.com/flixel/jvw1avupguhfbo11betq.hd.mp4'
- 'https://cdn.flixel.com/flixel/8cmeusxf3pkanai43djs.hd.mp4'
- 'https://cdn.flixel.com/flixel/guwb10mfddctfvwioaex.hd.mp4'
partlycloudy:
- 'https://cdn.flixel.com/flixel/13e0s6coh6ayapvdyqnv.hd.mp4'
- 'https://cdn.flixel.com/flixel/aorl3skmssy7udwopk22.hd.mp4'
- 'https://cdn.flixel.com/flixel/qed6wvf2igukiioykg3r.hd.mp4'
- 'https://cdn.flixel.com/flixel/3rd72eezaj6d23ahlo7y.hd.mp4'
- 'https://cdn.flixel.com/flixel/9m11gd43m6qn3y93ntzp.hd.mp4'
- 'https://cdn.flixel.com/flixel/hrkw2m8eofib9sk7t1v2.hd.mp4'
cloudy:
- 'https://cdn.flixel.com/flixel/13e0s6coh6ayapvdyqnv.hd.mp4'
- 'https://cdn.flixel.com/flixel/aorl3skmssy7udwopk22.hd.mp4'
- 'https://cdn.flixel.com/flixel/qed6wvf2igukiioykg3r.hd.mp4'
- 'https://cdn.flixel.com/flixel/3rd72eezaj6d23ahlo7y.hd.mp4'
- 'https://cdn.flixel.com/flixel/9m11gd43m6qn3y93ntzp.hd.mp4'
- 'https://cdn.flixel.com/flixel/hrkw2m8eofib9sk7t1v2.hd.mp4'
mostlycloudy:
- 'https://cdn.flixel.com/flixel/e95h5cqyvhnrk4ytqt4q.hd.mp4'
- 'https://cdn.flixel.com/flixel/l2bjw34wnusyf5q2qq3p.hd.mp4'
- 'https://cdn.flixel.com/flixel/rrgta099ulami3zb9fd2.hd.mp4'
clear-night:
- 'https://cdn.flixel.com/flixel/x9dr8caygivq5secll7i.hd.mp4'
- 'https://cdn.flixel.com/flixel/v26zyfd6yf0r33s46vpe.hd.mp4'
- 'https://cdn.flixel.com/flixel/ypy8bw9fgw1zv2b4htp2.hd.mp4'
- 'https://cdn.flixel.com/flixel/rosz2gi676xhkiw1ut6i.hd.mp4'
fog:
- 'https://cdn.flixel.com/flixel/vwqzlk4turo2449be9uf.hd.mp4'
- 'https://cdn.flixel.com/flixel/5363uhabodwwrzgnq6vx.hd.mp4'
rainy: 'https://cdn.flixel.com/flixel/f0w23bd0enxur5ff0bxz.hd.mp4'
title: Home
views:

  • path: default_view
    cards:
    • type: media-control
      entity: media_player.kitchen_speaker
    • type: media-control
      entity: media_player.living_room
    • type: media-control
      entity: media_player.office_speaker
    • type: entities
      entities:
      • binary_sensor.rpi_power_status
      • binary_sensor.updater
        title: Binary Sensor
    • type: media-control
      entity: media_player.living_room_2
    • type: entities
      entities:
      • person.gregory
        title: Person
    • type: entities
      entities:
      • remote.living_room
        title: Remote
    • type: entities
      entities:
      • sensor.hp_photosmart_7520_series
      • sensor.hp_photosmart_7520_series_black_ink
      • sensor.hp_photosmart_7520_series_cyan_ink
      • sensor.hp_photosmart_7520_series_light_black_ink
      • sensor.hp_photosmart_7520_series_magenta_ink
      • sensor.hp_photosmart_7520_series_yellow_ink
      • sensor.hacs
        title: Sensor
    • type: entities
      entities:
      • sun.sun
        title: Sun
    • type: weather-forecast
      entity: weather.home
      show_forecast: true

Version Numbers
"Latest" is not a version number

  • Home Assistant: core-2021.3.4
  • Animated Background: v0.6.3

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):

  • OS: MacOS
  • Browser: Chrome Beta
  • Version 90.0.4430.51

Lil suggestion I use for my theme. Transparent Sidebar

Your idea as completely as you can describe it

I love the idea of a animated background and as my modified "Your Name" theme is all for transparency I saw a problem in the sidebar not being animated. After some fight and a lil help from the community it's working. Maybe you want to mention the lil JS snippet needed for that. https://github.com/dreimer1986/yourname_card_mod/blob/master/www/styles.js

You still need the help of card-mod, but this fixes the last non transparent layer the sidebar is made of. If someone wants to tinker around, the theme yaml shows the rest you need under the card-mod-sidebar section.

Describe the solution you'd like

Solution is found above, too. ^^

Result:

Snow Option?

Unfortunately I live in Northeast US and we are getting snow.. ( yea i know i don't like it either) I am not sure if i have the code right to add in another weather condition. Or what happens when weather is giving 2 weather conditions at the same time. ie snowy,rainy. Right now it goes to the default.. anyway to change that?

Describe the solution you'd like
Would like the option of adding additional weather conditions and to possibly accommodate the 2 conditions given by weather home.

BTW love the backgrounds! Reminds me of places I have been.

Thanks so much in advance.

Unable to load module

im currently trying to add your module, but HA unable to load it with errors in Firefox console:

Loading module from “http://192.168.1.204:8123/community/lovelace-animated-background/animated-background.js” was blocked because of a disallowed MIME type (“text/plain”).
default_view
Loading failed for the module with source “http://192.168.1.204:8123/community/lovelace-animated-background/animated-background.js”. default_view:1:1
uncaught exception: http://192.168.1.204:8123/community/lovelace-animated-background/animated-background.js

Misleading console message when user is not included

Describe the bug
When limiting the animated dashboard to a specific user (or a list), opening the Home Assistant GUI and the user is not in the list, the log just states:

No configuration found for this dashboard

which is quite misleading.
Turning on the debug mode I actually got this message:

Animated Background DEBUG: Current user: Markus Ressel is not included

Your Animated Background configuration

I used the default config, with a limit to a user that was is not present in my Home Assistant instance (typo).

Version Numbers

  • Home Assistant: 0.111.2
  • Animated Background: v0.6.1

Browser console log
see above

To Reproduce
see above

Expected behavior
Print the "user" message instead of the "dashboard" one.

Device (please complete the following information):

  • OS: Arch Linux
  • Browser: Firefox
  • Version latest...

Screenshots
n/a

rpi 3b+ video stutter

Describe the bug
background video is stuttering slightly (video is not smooth), maybe this is a problem with hw or raspberry os
no problem on more powerful device

Version Numbers
HACS v0.6.3

  • Home Assistant:
  • Animated Background:

Device (please complete the following information):

  • OS: raspberry OS
  • Browser default chromium browser
  • Version 10

Animated Background doesn't get "disabled" on view change

Your Animated Background configuration

Dashboard config

---
# This is actually just a bootstrap for my Lovelace configuration.
# It loads all resources for Lovelace dynamically from subfolders
# inside the `lovelace/resources` directory.
#
# Views are actually include one by one, this to guarentee the order of
# the tabs of the view in the UI.
#
title: Test
preload_cards:
  - markdown
preload_rows:
  - divider
custom_header:
  compact_mode: true
  footer_mode: false
  hide_header: false
  header_text: '{{ time }}' # See templates section for more on this.
  hide_config: true
  hide_raw: true
  hide_unused: true
  hide_help: true
  # Add the below to theme the header
  background: var(--app-header-background-color)
  elements_color: var(--app-header-text-color)
  active_tab_color: var(--state-icon-active-color)
  tab_indicator_color: var(--state-icon-active-color)
animated_background: !include lovelace/animated_backgrounds/test.yaml
decluttering_templates: !include_dir_merge_named lovelace/templates/
views:
  - !include lovelace/views/test.yaml
  - !include lovelace/views/test_map.yaml
  - !include lovelace/views/surveillance.yaml

test.yaml

---
debug: true
included_users:
  - Andrea Iannucci
included_devices:
  - windows
groups:
  - name: test
    config:
      entity: "weather.dark_sky"
      state_url:
        'partlycloudy': /local/animated_backgrounds/test.html

Version of Home Assistant
"Latest" is not a version number. Please provide the actual version number.
0.109.3
Describe the bug
A clear and concise description of what the bug is.

Browser console log
Post anything related to animated-background.js
First load

Animated Background DEBUG: Configured entity weather.dark_sky is now partlycloudy
animated-background.js:28 Animated Background DEBUG: Starting
animated-background.js:35 Animated Background DEBUG: Debug mode enabled
animated-background.js:37 {auth: u, connection: l, connected: true, states: {…}, config: {…}, …}
animated-background.js:35 Animated Background DEBUG: Panel mode detected
animated-background.js:35 Animated Background DEBUG: Removing view background
animated-background.js:37 {entity: "weather.dark_sky", state_url: {…}}

Update without cache:

 
animated-background.js:24 Animated Background: Starting
animated-background.js:35 Animated Background DEBUG: Debug mode enabled
animated-background.js:37 {auth: u, connection: l, connected: true, states: {…}, config: {…}, …}
animated-background.js:28 Animated Background DEBUG: Configured entity weather.dark_sky is now partlycloudy

Change view (in the same dashboard), this view have no animated_background configured.

Animated Background DEBUG: View switched, no configuration found

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.
The theme default background should be restored upon view change, if the view doesn't have animated_background configuration.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome
  • Version 81.0.4044.129

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Screenshots
If applicable, add screenshots to help explain your problem.

First fresh load (no cache):
image

View change:
image

View reload:
image

Back to first view (with animated_background)
image

Additional context
Add any other context about the problem here.

Config not found and no animated background loaded

Your Animated Background configuration

---
# This is actually just a bootstrap for my Lovelace configuration.
# It loads all resources for Lovelace dynamically from subfolders
# inside the `lovelace/resources` directory.
#
# Views are actually include one by one, this to guarentee the order of
# the tabs of the view in the UI.
#
title: Home Control Panel
preload_cards:
  - hui-element
  - markdown
  - conditional
preload_rows:
  - divider
custom_header:
  compact_mode: true
  footer_mode: false
  hide_header: false
  header_text: '{{ time }}' # See templates section for more on this.
  hide_config: true
  hide_raw: true
  hide_unused: true
  hide_help: true
#  button_icons:
#    menu: mdi:skull
#    voice: mdi:home
#    options: mdi:death-star-variant
#  hide_tabs:
#    - 5 to 9
#    - 0
#    - home
#  tab_icons:
#    0: mdi:skull
#    home: mdi:home
#    7: mdi:death-star-variant
  exceptions:
    - conditions:
        user: sonia
      config:
         hide_tabs:
           - 9 to 20
#        menu_dropdown: true
#    - conditions:
#        user: maykar, Bram Kragten, Ludeeus
#        user_agent: Mobile
#        media_query: "(max-width: 600px)"
#      config:
#        footer_mode: true
#        reverse_button_direction: true
#        reverse_tab_direction: true
#    - conditions:
#        query_string: kiosk
#      config:
#        kiosk_mode: true
  # Add the below to theme the header
  background: var(--app-header-background-color)
  elements_color: var(--app-header-text-color)
  active_tab_color: var(--state-icon-active-color)
  tab_indicator_color: var(--state-icon-active-color)
animated_background: !include lovelace/animated_backgrounds/default.yaml
decluttering_templates: !include_dir_merge_named lovelace/templates/
views:
  - !include lovelace/views/house.yaml
  - !include lovelace/views/living_room.yaml
  - !include lovelace/views/kitchen.yaml
  - !include lovelace/views/studio.yaml
  - !include lovelace/views/master_bedroom.yaml
  - !include lovelace/views/bedroom_luca.yaml
  - !include lovelace/views/bathroom.yaml
  - !include lovelace/views/laundry_room.yaml
  - !include lovelace/views/patio.yaml
  - !include lovelace/views/health.yaml
  - !include lovelace/views/weather.yaml

default.yaml

---
debug: true
included_devices:
  - windows
groups:
  - name: weather
    config:
      entity: "weather.dark_sky"
      state_url:
        'sunny': /local/animated_backgrounds/sunny.html
        'partlycloudy': /local/animated_backgrounds/cloudy.html
        'cloudy': /local/animated_backgrounds/cloudy.html
        'mostlycloudy': /local/animated_backgrounds/mostlycloudy.html
        'rainy': /local/animated_backgrounds/rainy.html
        'clear-night': /local/animated_backgrounds/night.html
        'fog': /local/animated_backgrounds/fog.html

Version of Home Assistant
"Latest" is not a version number. Please provide the actual version number.
0.109.3

Describe the bug
A clear and concise description of what the bug is.
Animated background not loaded despite the config (somehow work on another dashboard, see other ticket)

Browser console log
Post anything related to animated-background.js

Animated Background: Starting
animated-background.js:35 Animated Background DEBUG: Debug mode enabled
animated-background.js:37 {auth: u, connection: l, connected: true, states: {…}, config: {…}, …}
animated-background.js:35 Animated Background DEBUG: Not loaded, this is the currently found configuration

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.
Animated background to load :)

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome
  • Version 81.0.4044.129

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Screenshots
If applicable, add screenshots to help explain your problem.
image

Additional context
Add any other context about the problem here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.