Giter Site home page Giter Site logo

Comments (18)

Villhellm avatar Villhellm commented on May 13, 2024

That is not valid YAML. Please post your configs in code blocks with proper formatting. Also if you have the lines

included_users:
  - Villhellm

the config shouldn't work unless the home assistant user you are logged in as is Villhellm.

from lovelace-animated-background.

Fredfishface avatar Fredfishface commented on May 13, 2024

Leaving in Villhellm would have been a total doofus move :-).
Home Assistant 0.108.6
Frontend version: 20200407.2 - latest

Doesn't work (no backgrounds for any paths):

animated_background:
views:
- path: alarm
config:
default_url: /community_plugin/lovelace-animated-background/background-animations/fog.html

Works (all path backgrounds are sunny):

animated_background:
default_url: /community_plugin/lovelace-animated-background/background-animations/sunny.html

Doesn't Work (all backgrounds are sunny, view path is also sunny - not fog - can be any existing path):

animated_background:
default_url: /community_plugin/lovelace-animated-background/background-animations/sunny.html
views:
- path: alarm
config:
default_url: /community_plugin/lovelace-animated-background/background-animations/fog.html

from lovelace-animated-background.

Fredfishface avatar Fredfishface commented on May 13, 2024

When I submit, the yaml collapses. All of it is correctly formatted. If there is a trick to entering it here, please let me know.

from lovelace-animated-background.

Villhellm avatar Villhellm commented on May 13, 2024

You need to put code in code blocks. Surround the yaml with ``` on the line above and bellow
Ex:
```
animated_config:
default_url: /test
```
becomes

animated_config:
  default_url: /test

from lovelace-animated-background.

Villhellm avatar Villhellm commented on May 13, 2024

0.108.6 is not the latest, by the way. Remember it is important to always give actual version numbers as "latest" changes regularly.

from lovelace-animated-background.

Fredfishface avatar Fredfishface commented on May 13, 2024

Thank you.

Home Assistant 0.109.2
Frontend version: 20200427.1 - latest

Does not work:

animated_background:
views:
- path: alarm
config:
default_url: /community_plugin/lovelace-animated-background/background-animations/fog.html

Does Work:

animated_background:
default_url: /community_plugin/lovelace-animated-background/background-animations/sunny.html

Does not Work:

animated_background:
default_url: /community_plugin/lovelace-animated-background/background-animations/sunny.html
views:
- path: alarm
config:
default_url: /community_plugin/lovelace-animated-background/background-animations/fog.html

from lovelace-animated-background.

Fredfishface avatar Fredfishface commented on May 13, 2024

I placed the yaml within ```. I'll find another background solution.

from lovelace-animated-background.

Villhellm avatar Villhellm commented on May 13, 2024

This is not me being pedantic, spaces are critical in yaml. If I can't see an accurate config I can't accurately tell you what's wrong.

Are you seeing any errors in the browser console?

from lovelace-animated-background.

Fredfishface avatar Fredfishface commented on May 13, 2024

I didn't believe you were.

No, the console log shows that the default animated background is loaded (which it is).

from lovelace-animated-background.

Villhellm avatar Villhellm commented on May 13, 2024

The only other thing I could think to check without more information is make sure that your path is an exact match.

from lovelace-animated-background.

Fredfishface avatar Fredfishface commented on May 13, 2024

kk. I'll put some debug lines in the js and see where I end up. Thanks.

from lovelace-animated-background.

Villhellm avatar Villhellm commented on May 13, 2024

You can also set breakpoints in Chrome and follow it through each step

from lovelace-animated-background.

Villhellm avatar Villhellm commented on May 13, 2024

When I test your two "Does not work" configs and properly format the yaml it works on my machine. Be sure to update the plugin as well, I fixed a bug recently that may have been affecting one of those configs.

from lovelace-animated-background.

Fredfishface avatar Fredfishface commented on May 13, 2024

from lovelace-animated-background.

Villhellm avatar Villhellm commented on May 13, 2024

Can you try to post your config one more time? Maybe a screenshot if you can't get the formatting to work?

from lovelace-animated-background.

Fredfishface avatar Fredfishface commented on May 13, 2024

Hi, I believe I managed to post the correctly formated yaml from the raw config editor for the dashboard in https://community.home-assistant.io/t/lovelace-animated-background-based-on-entity-state/132208/36
Apologize for the delay. Work beckoned.

from lovelace-animated-background.

Villhellm avatar Villhellm commented on May 13, 2024

Your path: line is not properly indented. It needs to be on the same level as config:

from lovelace-animated-background.

Fredfishface avatar Fredfishface commented on May 13, 2024

Call me doofus. I'd love to tell you that it still doesn't work but it is fixed :-). Many thanks. In addition I now know how to make custom cards.

from lovelace-animated-background.

Related Issues (20)

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.