Any mp4, webm, or image link will work, even relative /local/ links. This will help determine your device to use in excluded_devices or included_devicesĪllows you to set custom configurations per viewĪllows you to set custom configurations that can be referenced in lovelace view configurations If set to true you will get an alert with your current user agent. Set to false to disable Animated Background If an array is defined then a random video will be selected from that array. You can either define a single url or an array. If no matching state is found, this is the fallback video url. Animated Background Configuration Options Name ConfigurationĬonfiguration for Animated Background goes into the root of your Lovelace config. 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. If you are in yaml mode follow the lovelace docs and add the URL /hacsfiles/lovelace-animated-background/animated-background.js as a module. Step 2Īdd the resource to your configuration. Make sure you have HACS installed, find Animated Background in the plug section, and install. Villhellm # This entity is just an example, use whatever entity you would like entity: " " state_url: Step 3Īdd 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. If you are using the UI to manage resources then go you /config/lovelace/resources and add the URL /local/animated-background.js as a javascript module. If you are in yaml mode follow the lovelace docs. Install animated-background by copying animated-background.js from this repo to /Step 2Īdd the resource to your configuration. 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.Ī big thanks to Customer Header and VideoBackground-Card for the inspiration. This module is for Lovelace on Home AssistantĬreate animated backgrounds based on the state of one of your entities. YOUR ANIMATED BACKGROUND CONFIGURATION WILL NEED TO BE UPDATED, follow the new configuration guidelines below.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |