-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
view specific backgrounds broken? #13
Comments
That is not valid YAML. Please post your configs in code blocks with proper formatting. Also if you have the lines
the config shouldn't work unless the home assistant user you are logged in as is |
Leaving in Villhellm would have been a total doofus move :-). Doesn't work (no backgrounds for any paths): animated_background: Works (all path backgrounds are sunny): animated_background: Doesn't Work (all backgrounds are sunny, view path is also sunny - not fog - can be any existing path): animated_background: |
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. |
You need to put code in code blocks. Surround the yaml with ``` on the line above and bellow
|
0.108.6 is not the latest, by the way. Remember it is important to always give actual version numbers as "latest" changes regularly. |
Thank you. Home Assistant 0.109.2 Does not work:
Does Work:
Does not Work:
|
I placed the yaml within ```. I'll find another background solution. |
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? |
I didn't believe you were. No, the console log shows that the default animated background is loaded (which it is). |
The only other thing I could think to check without more information is make sure that your path is an exact match. |
kk. I'll put some debug lines in the js and see where I end up. Thanks. |
You can also set breakpoints in Chrome and follow it through each step |
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. |
Hi,
Thanks for that. I found:
Error handling response: TypeError: Cannot read property 'enumerateDevices' of night.html:1 undefined
at get_devices (chrome-extension://gfhcppdamigjkficnjnhmnljljhagaha/content.js:119:25)
at chrome-extension://gfhcppdamigjkficnjnhmnljljhagaha/content.js:100:5
Let you know.
J
From: Villhellm <notifications@github.com>
Sent: May 1, 2020 11:47 AM
To: Villhellm/lovelace-animated-background <lovelace-animated-background@noreply.github.com>
Cc: Fredfishface <info@goodenuf.ca>; Author <author@noreply.github.com>
Subject: Re: [Villhellm/lovelace-animated-background] view specific backgrounds broken? (#13)
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#13 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AEEPRZZLUSEHPGLKGD3FBQ3RPMKKZANCNFSM4MWWKFMA> .
|
Can you try to post your config one more time? Maybe a screenshot if you can't get the formatting to work? |
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 |
Your |
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. |
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
The text was updated successfully, but these errors were encountered: