Closed jordanryle closed 1 month ago
Bumping to confirm that this issues is still present with Bubble Card v2.3.0-beta.1 installed
Hi, I'm working on an other issue that might fix this, in the pop-up settings there is an option to let it update in background, in fact this option is not doing anything since the v2.0.0 😅 I really hope that fixing this and enabling it for your pop-up is the solution.
Unfortunately, it does not appear the v2.3.0-beta.2 has resolved this issue. The card does not update styling until the entire page is refreshed.
Have you tried to toggle the Update pop-up in background
option in the editor?
I have yes, and confirmed that background_update: true
was present in the YAML. I have tried clearing the browser cache as well, but unfortunately the issue persists. I appreciate your help trying to solve this!
Another issue is that button-card is not maintened anymore, I understand that it is working outside of a pop-up but have you considered migrating all of this to Bubble Card?
tl;dr for people coming across a similar issue and just want the result: take a look at triggers_update as a part of the button card documentation.
Longer explanation:
Thanks @Clooos for your suggestion as it led me down a rabbit hole to figure this out!
I had already done quite a bit of setup work with button card templates that wouldn't translate easily to Bubble Card as you suggested, but then I realized I never tried the card outside of a popup. I copied all the code to a different layout, and lo-and-behold it still didn't update! Apologies I never tried this and blamed Bubble Card!
Once I realized the problem was with button card and not Bubble Card, it led me to the triggers_update parameter, and once I added
triggers_update:
- '[[[ return variables.activity_sensor ]]]'
to both the remote_card template and the activity_button template, this card worked flawlessly.
I copied it back to the popup, and voila it worked!
Please consider this issue closed, and appreciate the great work on the Bubble Card!
That's the kind of issue ending I like the most 😁
Glad that I helped you figuring this out!
Describe the Bug
I am seeing an issue where with a pop-up card, any elements that have template-based formulae relying on another entity do not update when the template value has changed.
In the code below, I am using a popup card to display a remote, with a picture-entities card showing the remote activity, and buttons that may be visible or omitted based upon the activity. The picture-entities card updates when an activity is changed, but the styling and layout of the other buttons don't change until I refresh the page. Even if I close and re-open the popup, it is still the same.
I have marked the template functions that are not applied when a sensor updates with the comment "This value isn't updated on the popup..." below.
To Reproduce
Steps to reproduce the behavior:
YAML
Information:
Screenshots: The remote with SHIELD TV activity active:
Changing to the Nintendo Switch activity (picture-entity updates, other icons do not):
After refreshing the page (correct states and layout shown):
Thank you for your amazing work on this card!