Closed SeLLeRoNe closed 4 years ago
Can you also post the view configurations that you're having trouble with?
Do you need the entire thing or just the first few lines?
Just the first few lines as long as it includes any animated_background:
configuration
title: Home
icon: mdi:home
panel: true
animated_background: weather
cards:
- type: custom:layout-card
layout: vertical
cards:
- type: custom:stack-in-card
mode: vertical
cards:
- type: custom:decluttering-card
template: title
variables:
There should be a debug message right after Animated Background DEBUG: Not loaded, this is the currently found configuration
that contains the group
Actually I was able to recreate it, it's not printing the other debug message
I added some debug messages so we know why the enabled() function returns false. Give it a try
So, now I see this:
Animated Background: Starting
animated-background.js:39 Animated Background DEBUG: Debug mode enabled
animated-background.js:39 Animated Background DEBUG: Debug mode enabled
animated-background.js:39 Animated Background DEBUG: Not loaded, this is the currently found configuration
utils.ts:2 BATTERY-STATE-CARD 1.2.0
hui-element.js:1 HUI-ELEMENT 1.0.0 IS INSTALLED
3animated-background.js:39 Animated Background DEBUG: Debug mode enabled
2animated-background.js:39 Animated Background DEBUG: View switched, no configuration found
And a few lines down the console I got this again:
animated-background.js:39 Animated Background DEBUG: View switched, no configuration found
animated-background.js:39 Animated Background DEBUG: Debug mode enabled
Animated Background DEBUG: View switched, no configuration found
Animated Background DEBUG: Debug mode enabled
I wonder why you're getting spammed with the debug mode message... it's only supposed to display on load or on dashboard switch. I'm thinking the culprit might be another plugin doing something
Which would explain why it works on one dashboard and not the other
That's odd, this view has been like this for a few months and before the "group" introduction (and the animated_background entry= it was actually working fine.
Oddly enough, if I add the default_url it works, meaning that it fall back to that, so it's not able to "read" the group for some reason it seems to me
Hmm. I'll add some debug messages for you specifically. Maybe something is happening with the lovelace object when it tries to find the animated_background entry in a view
Alright with the latest commit you'll see a message that says "Current loaded Lovelace config" followed by the lovelace object. Expand it so you can see config>views>and the first view then take a screenshot
Just a note, somehow it's going forever:
Sorry, I meant the views on the lovelace object, not animated_background. I want to see if the views are fully loaded or not
If you use default_url do those messages repeat like that? Both of those things should only show up when something is being added to the lovelace panel, but that's not supposed to happen unless you change dashboards
Mmh, I think I lost you here, I have only that...
I'll try to see with default_url
Yeah that's the info I needed, thanks
Oh jeez, I think I see the issue. It's due to no path:
being defined, the groups statement was nested in a statement that required path to exist. I'll fix it
You know I thought about that? xD Stupid me not having that menthinooed.. I thought it was a stupid observation
Having the defaul_url still produces multiple lines, but way less (before were way more)
To be fair it was a stupid mistake on my part. Still not sure why the messages are being spammed, but that's why it wasn't loading at all. I fixed the statement issue, but I still don't think it will fully work if the panel is constantly changing for some reason.
Give it a try though if you don't mind
Don't mind at all :) Give me 2 mins
It works, but now the "change view" issue seems to be back
Actually, even stranger. Now also on update with cache clenup load the animated background from a view without it
Console-wise, the amount of entries has decreased, but still multiples are fired
We're gettin close! I didn't realize that up until now path:
was a requirement. It's how I've been getting the current view configuration, but I'm working on a fix to make it optional
Potential fix just uploaded. I'm sure you're getting pretty burnt out on testing today. I know I am 😉
I actually went to sleep because I thought you did the same :D
Testing it now
PS. I don't mind testing, I do have to test many stuff in my job already, so I am quite used to it :D
Everything seems to be working fine! :)
Thanks a lot for your time. I am sorry I had to make you work that much :/
Oh no, I don’t mind at all! I’m just happy we’re getting to a more stable point. I am very thankful for the help
No worries at all, if you need just ping me on Discord. Very happy to help on things I know how to do :D
Your Animated Background configuration
default.yaml
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
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen. Animated background to load :)
Desktop (please complete the following information):
Smartphone (please complete the following information):
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.