Skip to content
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

Crashing the browser consistently #152

Closed
Nuuki9 opened this issue Oct 31, 2023 · 74 comments
Closed

Crashing the browser consistently #152

Nuuki9 opened this issue Oct 31, 2023 · 74 comments

Comments

@Nuuki9
Copy link

Nuuki9 commented Oct 31, 2023

I commented on Issues #130 but as that's closed and this may be a different cause, I thought a fresh issue was preferable.

I'm seeing consistent stability issues. I just updated to v1.4.2 and after a few tests to nail down the bahaviour, here's what I'm seeing:

  1. Create a new dashboard tab.
  2. Add a Bubble pop-up card - add a hash value and nothing else. Save.
  3. Browse to that dashboard tab.
  4. Now, browse to any other dashboard tab.

At that point the browser freezes, and eventually crashes with an "out of memory" warning. Looking at Task Manager, I see my memory usage for the my browser start to rise quickly at step 4, until it crashes.

I've repeated this a bunch of times, using Brave and Edge, and its happening every time.

I'm running HA 2023.10.5 in a container.

@willliamchan
Copy link

In addition to Nuuki9 I'd like to add mine here in the same thread.

HAOS 2023.10.5
iOS 17.1

In the early stage I had my dashboard fully adapted to Bubble Card and dashboard is still crashing with v1.4.2.

Cards that are in use with Bubble Card are: -

Logbook Card
Mushroom
Timer Bar Card
mini-graph-card
Horizon Card
card-mod
Weather Card
Harmony Card

Tried the below and nothing really works so far

  1. Reboot iPhone
  2. Clear all browser caches (Safari and Edge in my case)
  3. Reload Theme (option from HA)
  4. Redownload Bubble Card

Any suggestions?

Cheers

@mrfrag1
Copy link

mrfrag1 commented Nov 1, 2023

Exactly the same for me.

@willliamchan
Copy link

I am not a programmer or advance Home Assistant user. But what I do found is whenever the crash/dashboard reload happens there are quite a few things logged by HA. I was able to collect them via Developer Tools > Events and listen to the call service events. The specific event that I am seeing every time is: -

event_type: call_service
data:
domain: system_log
service: write
service_data:
logger: frontend.js.latest.202310050
message: |-
Unhandled promise rejection from WebKit 605.1.15 on iOS 17.1
{
"code": "not_found",
"message": "Subscription not found."
}
level: debug
origin: LOCAL
time_fired: "2023-11-01T10:36:06.800693+00:00"
context:
id: {{various_ids}}
parent_id: null
user_id: {{my_user_id}}

Anyone got an idea how we might be able to help while Clooos is away? I do really like Bubble Card and hoping to use it as my only dashboard.

@willliamchan
Copy link

Once HA frontend is updated to 20231030.1 (Included from 2023.11.0 update) bubble card stability improved. A few points noted here:-

  • Viewing from iOS with HA App is more stable.
  • Viewing from iOS Edge/Safari is still not possible.
  • Picture Entity still causing Bubble Card crash on iOS, while no problem on iPadOS.
  • Editing from iPadOS has no problem.
  • Editing from Windows Edge browser still having problem. (When there are many cards)

Hope this help.

@Nuuki9
Copy link
Author

Nuuki9 commented Nov 2, 2023

I'm getting identical behaviour on 2023.11.0 as I was seeing before, from a Windows browser.

@mrfrag1
Copy link

mrfrag1 commented Nov 2, 2023

Even after the update to 2023.11.0 the error still exists.

@Nazze
Copy link

Nazze commented Nov 2, 2023

Hey! I recently opened a bug with problems on mobile browser (any like safari, edge and Firefox). In HA companion it was completely refreshing. It got better for a while with version 1.4.2 (or was it even with 1.4.1), why the bug was closed, but I am now seeing it regularly again. I had to revert again to version 1.0.3 to have a stable setup again.

For me it looks like this in HA companion app (Firefox is default browser). Do you have similar issues?

RPReplay_Final1697095427.mov

PS: I hope that Clooos enjoys the holidays and the beer. Well deserved :-D

@mrfrag1
Copy link

mrfrag1 commented Nov 3, 2023

I have exactly the same problems.

When I use the popup card on a blank dashboard, HA becomes increasingly slow. Until it doesn't work at all anymore.

In the HA app on Android and in Edge on Windows.

It's only better in Chrome.

Still GREAT work. The bubble cards are great.

@florianferry
Copy link

Hey! I recently opened a bug with problems on mobile browser (any like safari, edge and Firefox). In HA companion it was completely refreshing. It got better for a while with version 1.4.2 (or was it even with 1.4.1), why the bug was closed, but I am now seeing it regularly again. I had to revert again to version 1.0.3 to have a stable setup again.

For me it looks like this in HA companion app (Firefox is default browser). Do you have similar issues?

RPReplay_Final1697095427.mov

PS: I hope that Clooos enjoys the holidays and the beer. Well deserved :-D

Exactly the same for me !

As I am currently redesigning my dashboard and desperately wanting some kind of sticky footer, I decided to let Bubble aside for the moment while hopefully it’ll get fixed and to try another one.

So I tried the Mobile First sticky footer, also very nice and also designed by Clooos (you make incredibly beautiful designs !!)

I ran into exactly the same issue ! My dashboard refreshes itself 2 or 3 times and ends up being stuck without anything displayed, exactly like the video previously posted.

Once the sticky footer is removed, everything is working fine.

Maybe the investigation should be oriented toward the compiled JS or something that might be coded the same way for both Mobile First and Bubble Card’s sticky footers instead of performance or memory leaks ?

@mrfrag1
Copy link

mrfrag1 commented Nov 4, 2023

With version 1.03 as Nazze said it works without memory problems

@mrfrag1
Copy link

mrfrag1 commented Nov 5, 2023

Correction: Even with 1.03 there are memory problems when editing the card in Edge. Only later

@hellomarb
Copy link

There are memory problems in 1.03, but it still works much better on my dashboards.
Chrome Desktop at least is stable, iOS webkit not, but let's wait for a fix for that.

@willliamchan
Copy link

I had my iPhone updated to 17.1.1 and it has not crashed for 2 hours.

@Nazze
Copy link

Nazze commented Nov 8, 2023

I had my iPhone updated to 17.1.1 and it has not crashed for 2 hours.

Yeah! If I reboot my iPhone, it is stable for a couple of hours. But then the problems appears again.

@Clooos
Copy link
Owner

Clooos commented Nov 8, 2023

Thanks a lot for all your comments, it helps me a lot! Bubble Card is working great with Chrome (my main browser) but indeed on the other browsers it's pretty terrible, I realize that only now! 😅

I was able to reproduce the issue and that's a good start, this issue is my first priority now.

And I really enjoyed my holidays, thanks!

@Clooos
Copy link
Owner

Clooos commented Nov 8, 2023

Please tell me that it's working 🤞

https://github.com/Clooos/Bubble-Card/releases/tag/v1.4.3

@hellomarb
Copy link

Welcome back ;)
I tested it on iOS 17.1.1: it's better, but I can provoke a reload by switching between 2 crowded views 2-3 times and scroll down and up .
Without debugging it feels like the listeners on the elements causing the memory hog on scroll.

@willliamchan
Copy link

Welcome back @cooos! Here is my result with iOS 17.1.1 + Bubble Card 1.4.3.

iOS
HA App - Becoming useable, blank screen/refresh twice still happening, it is easy to test by "swiping down" for a screen refresh multiple times.
Edge/Safari - Still not willing to load.

iPad
HA App - As usual, normal.
Edge/Safari - As usual, normal.
Dashboard Editing - As usual, normal.

Windows
Edge - As usual, no problem loading dashboard.
Dashboard Editing (on Edge) - Still slow response, compared to some of the previous versions it seems better but so far, I found it will take hours to know the truth.

@Clooos
Copy link
Owner

Clooos commented Nov 8, 2023

And can you all confirm that 1.0.3 was better than this version? I really need to understand what is the root cause of all of this. And thanks again for all all your feedbacks!

Edit: And if you have some console logs to show me when it happens it will help me even more!

@willliamchan
Copy link

And can you all confirm that 1.0.3 was better than this version? I really need to understand what is the root cause of all of this. And thanks again for all all your feedbacks!

Edit: And if you have some console logs to show me when it happens it will help me even more!

For me, the more bubbles the slower / unstable. Whenever I need to update something I am now using either raw editor or temporary move one of the bubble to another dashboard and once it's in another dashboard everything back to normal.

Can you provide step by step how exactly we can help and get you the console logs?

@Nazze
Copy link

Nazze commented Nov 8, 2023

Edit: And if you have some console logs to show me when it happens it will help me even more!

I tried to access the console log with developer mode to debug the Firefox on my iPhone from my Mac. But when the issue happens,also the console refreshed, so I am not able to see any errors or so. Really strange.

Would it make sense that you provide us with a special debug version, with debug outputs or debug logs?

@willliamchan
Copy link

Ok so I got two iPhones here, one for me and one for my partner. My partners' one is more like an end-user device who will not routinely restart/reboot apps and after half of a day yesterday it starts doing the refresh and blank screen again. Restarting HA app won't help much.

While on my device, I've been getting the same since last night (about 8 hours after upgraded to iOS 17.1.1) and same until now.

@Clooos Please do let me know how I can get you the debug log if that might help you fix the issue.

@mrfrag1
Copy link

mrfrag1 commented Nov 9, 2023

Excellent !!!

I work with Windows 11 and Edge.
With 1.43 i can now edit the bubble cards for 2 hours without it slowing down.

Thank you

@Clooos
Copy link
Owner

Clooos commented Nov 9, 2023

I'm installing the iOS simulator and I will try to debug this myself first. I really want to be able to reproduce this issue.

@Clooos
Copy link
Owner

Clooos commented Nov 11, 2023

Hi! I've just released v1.4.4, can you give me your feedbacks? 🤞
https://github.com/Clooos/Bubble-Card/releases/tag/v1.4.4

@willliamchan
Copy link

Hi! I've just released v1.4.4, can you give me your feedbacks? 🤞 https://github.com/Clooos/Bubble-Card/releases/tag/v1.4.4

This is great! For the very first time it runs with Edge on iOS, although I am still getting the same with Safari but I don't actually use Safari much.

I believe it will again take hours or days to observe if there are still any other issues and at this point, please see my other findings.

  • Rotate between portrait mode and landscape, this one is obvious. Once it rotates and will get blank screen again. You have to restart HA app to get back to the dashboard.

  • Not sure if it is included from 1.4.4 but I found bubble card is very sensitive to invalid entity, let say if there is an invalid entity and bubble card will not give any visible error and simply just stop loading the button card, and seems like anything after the invalid entry will be ignored.

Talking about new features, do you have plans to support things like select, vacuum, fan, radiator... etc? Can't wait to migrate everything to bubble!

@hellomarb
Copy link

hellomarb commented Nov 12, 2023

I experience the same crash and stuttering while scrolling as before. In an empty "demo" dashboard it works without problems, in a more complex one with picture cards, swiper and tabs it crashes on scroll down/up.

I will check later in the simulator, if it's happening there too.

Update: the browser rendering stack is overloaded by my cards. When I move the content of the popups in conditional cards based on an input_boolean the performance is good again. I did it only for the heaviest cards and now it is stable on iOS. The only thing missing currenlty is a way to call a service on close to rest the state.

@Clooos
Copy link
Owner

Clooos commented Nov 12, 2023

Thanks for your feedbacks! Here is a new beta version, can you please try to follow the instructions to configure it?

https://github.com/Clooos/Bubble-Card/releases/edit/v1.5.0-beta.1

@hellomarb
Copy link

Yes, it looks like it is the one!
The speed increase is really great and until now I wasn't able to break it.
The shadow dom of the popup content is empty until the call, like it should be (kudos for winning that fight!).

Great work, finally Home Assistant feels more like an app and not like a web interface!
I will test it a bit over the next days.

@Clooos
Copy link
Owner

Clooos commented Nov 12, 2023

Just Yeah !!! 🍻

And now I really hope that it will stay stable after a few days of testing 🤞

@willliamchan
Copy link

To everyone here, by any chance do you have one or more cameras inside of your pop-ups? I've just tried without cameras and everything is really smooth (almost no CPU used by Bubble Card). I'm working on a way to disable the cameras when the pop-ups are closed.

Happy Thursday!

So far so good here on 1.4.4 without cameras.

When you are fixing the camera can you please also have a look at why it becomes less responsive when editing the dashboard using UI? It slows down usually after I add a card and when choosing entity.

@willliamchan
Copy link

I just went through re-pairing 110 ZigBee devices last weekend, and it turned out that a few of them got a different entity name after re-pairing. Of course, this has nothing to do with Bubble Cards, but what I found was that Bubble Cards are very sensitive to invalid entities.

The moment I had everything repaired, I looked at my Bubble dashboard and attempted to check if anything was missing. While the loading time was slow, and if there were any invalid entities, Bubble Cards hid them instead of giving a visible error. In this case, it is either the users knows/remember exactly what was being added or they will need to go through the codes manually.

This makes me wonder also, let say if I have an entity somehow dropped from the network, will it affect the performance of Bubble Cards too?

@Nazze
Copy link

Nazze commented Nov 16, 2023

To everyone here, by any chance do you have one or more cameras inside of your pop-ups? I've just tried without cameras and everything is really smooth (almost no CPU used by Bubble Card). I'm working on a way to disable the cameras when the pop-ups are closed.

Hi

I don't have cameras in my dashboard. I made an analysis, which cards I use.
Maybe that helps..

I have removed all "unreachable/invalid" entities from my dashboard, but there was no change wrt to stability (tested with 1.5 beta)

Cheers
Denis

tile | 97
custom:bubble-card | 90
card_separator | 60
vertical-stack | 38
horizontal-stack | 35
custom:mushroom-template-card | 31
card_pop-up | 30
custom:mushroom-chips-card | 16
gauge | 14
back | 12
custom:mushroom-climate-card | 12
custom:auto-entities | 11
light-brightness | 11
cover-open-close | 10
grid | 8
template | 7
conditional | 6
entities | 5
custom:mini-graph-card | 4
custom:mushroom-select-card | 4
sensor | 4
custom:apexcharts-card | 3
custom:mini-media-player | 3
custom:mushroom-number-card | 2
entity | 2
custom:clock-weather-card | 1
custom:mushroom-alarm-control-panel-card | 1
custom:mushroom-light-card | 1
media-control | 1

@Nazze
Copy link

Nazze commented Nov 16, 2023

You know that I am still running v1.0.3, @Clooos.
I am using it, because it is the last stable version with HA companion app for my setup.
But I just realized a few things with 1.0.3:

  • 1.0.3 is not stable on iOS Safari with 1.0.3 either (crashes right away. )
  • I can provoke a crash on edge, if I swipe up.
  • I can provoke a hang/blank screen with HA companion app, if I swipe up.

So it seems the error was always there but triggered only with swipe up.

See video with 1.0.3 on edge and ha.
I can retest with any other version.

RPReplay_Final1700168268.mp4
RPReplay_Final1700168319.mov

@willliamchan
Copy link

You know that I am still running v1.0.3, @Clooos. I am using it, because it is the last stable version with HA companion app for my setup. But I just realized a few things with 1.0.3:

  • 1.0.3 is not stable on iOS Safari with 1.0.3 either (crashes right away. )
  • I can provoke a crash on edge, if I swipe up.
  • I can provoke a hang/blank screen with HA companion app, if I swipe up.

So it seems the error was always there but triggered only with swipe up.

See video with 1.0.3 on edge and ha. I can retest with any other version.

RPReplay_Final1700168268.mp4
RPReplay_Final1700168319.mov

Hi Nazze

I am on iOS 17.1.1, Bubble Card 1.4.4 and HA App and it's been working fine for more than 48 hours. See if you want to give it a try.

@Clooos
Copy link
Owner

Clooos commented Nov 17, 2023

@willliamchan
Copy link

willliamchan commented Nov 17, 2023

Mate. It is just simply not working.

Upgrade from 1.4.4 to 1.5.0-beta.2 via HACS return no error, but bubble-pop-up.js is not downloaded. Manually downloaded and placed the file to bubble-card folder, manually add extra module, restart HA, reload themes. And I can't see any cards.

no matter it is 1.5.0b1 or b2, once bubble or bubble pop up js is added as extra_module and my whole HA (not only dashboard) slows down instantly.

I am rolling back to 1.4.4 and let see what come next.

@Nazze
Copy link

Nazze commented Nov 18, 2023

I have a similar problem. Changed the code and followed the installation instructions... Reverting now to 1.0.3, otherwise my wife will kill me 😂

grafik

@Clooos
Copy link
Owner

Clooos commented Nov 18, 2023

@Nazze indeed the bubble-pop-up.js is not included when it is installed with HACS, I thought that it will be downloaded too, my bad! Just add it next to bubble-card.js and it should work.

@willliamchan I really don't understand why you still have this issue. My guess is that some custom cards are in conflict, but I can't be sure without trying your config.

If any of you can create a new dashboard view, then if you can try adding different cards to see what card is slowing it down it would help me a lot! Because on my side this version is the best so far.

And if any of you can share with me its full dashboard YAML (on Pastebin or GitHub), it would help me a lot too!

Thanks in advance!

@willliamchan
Copy link

@Nazze indeed the bubble-pop-up.js is not included when it is installed with HACS, I thought that it will be downloaded too, my bad! Just add it next to bubble-card.js and it should work.

@willliamchan I really don't understand why you still have this issue. My guess is that some custom cards are in conflict, but I can't be sure without trying your config.

If any of you can create a new dashboard view, then if you can try adding different cards to see what card is slowing it down it would help me a lot! Because on my side this version is the best so far.

And if any of you can share with me its full dashboard YAML (on Pastebin or GitHub), it would help me a lot too!

Thanks in advance!

Happy weekend Clooos. It could have been too late last night when I was trying to upgrade and missed a step or two. I am going to give 150b2 another try and this time I will document each steps and you will know the outcome very soon.

@willliamchan
Copy link

willliamchan commented Nov 18, 2023

As a start, this is what I got with 1.4.4.

Before upgrade:-
image
image
image
image

Upgrade steps: -

  1. Go HACS > Frontend > Bubble Card > Redownload > Enable "Show beta versions" > Select "v1.5.0-beta.2" from the drop-down list > Download.

  2. HA ask for Reload, confirm Reload.

  3. Confirmed v1.5.0-beta.2 is loaded as I am seeing message "Since v1.5.0 you need to manually add a new frontend extra module into your config.yaml"
    image

  4. Confirmed bubble-pop-up.js is not included using the re-download.
    image

  5. Process to remove Bubble Card via HACS, review path ./www/community/ and "Bubble-Card" folder is completely gone.

  6. Process to reinstall Bubble Card via HACS, again to select "Download" and select "v1.5.0-beta.2", Reload.

  7. Confirmed bubble-pop-up.js still not included
    image

  8. Process to download bubble-pop-up.js via https://github.com/Clooos/Bubble-Card/blob/main/dist/bubble-pop-up.js
    image

  9. Upload bubble-pop-up.js to /www/community/Bubble-Card/ using File editor.
    image

  10. Update config.yaml.
    image

  11. Edit dashboard > Raw config editor > replace all custom:bubble-card with custom:bubble-pop-up.
    image

  12. Restart HA. (Just to be sure, I had HA Rebooted)

  13. HA restarted. (Wait until message "Home Assistant is started")

  14. Check Dashboard and errors everywhere saying "Custom element doesn't exist: bubble-pop-up"
    image

  15. Attempt to manually add "bubble-pop-up.js" to resources. (I am not sure if this a correct troubleshooting step)
    image

  16. Restart HA. (Finger-crossed it will work)

  17. Review Dashboard again.

  18. Error is gone but something still not right. (But i believe it is because step 15 rather than adding it as extra_module.

  19. Attempt to roll-back all non card_type: pop-up to use custom:bubble-card

  20. Review Dashboard once again. Volia! Bubble Cards view with no errors. But HA is becoming slower.

  21. Attempt to "Reload Theme", didn't help much.

  22. Remove bubble-pop-up.js from extra_module (as I still had it added to resources and this is how I can actually get rid of the error), restart HA.

  23. It's getting worse, whole HA UI acting in slow motion.

  24. Trying so hard to explore to "Reload Themes" once again, restart browser.

  25. Volia! HA back to normal, not doing slow motion anymore and dashboard is completely back alive!

I think at this point I am officially on 1.5.0.beta.2. A few things to note here:-

  • Adding bubble-card.js and/or bubble-pop-up.js as extra_module won't help loading them, I have completely no idea why but loading card_mod.js as extra_module never gives me any issue.
  • When it comes to updating card type, make sure you update only card_type:pop-up to use custom:bubble-pop-up. Clooos you might want to warn any users just like me to ONLY update pop-up cards and not any other type of bubble.

To summarize / simpify the upgrade steps from my testing: -

  1. Upgrade Bubble Card to 1.5.0.beta.2 via HACS
  2. Manually download bubble-pop-up.js and place it to the same folder.
  3. Manually add bubble-pop-up.js as "resource"
  4. Update Dashboard. And update only card-type:pop-up to use custom:bubble-pop-up.
  5. Restart HA.
  6. Close Browser.
  7. Login HA, reload themes.

I hope this might help some of you to upgrade your Bubble Card to v1.5.0.beta.2

@willliamchan
Copy link

@Clooos

Quick question for you, let's say you fixed all those loading issues and I know putting js as extra_module will help loading them even faster. Do you think one step back to update your package and add bubble-pop-up.js as resource maybe something easier too? As an end-user like me who doesn't know much about the "behind the scenes" stuff would properly want to stick with easy steps only.

I can confirm here also Edge + Safari on iOS are both loading Bubble Card with no issue, even screen rotate can't break it.

@Nazze
Copy link

Nazze commented Nov 18, 2023

@Clooos

As an end-user like me who doesn't know much about the "behind the scenes" stuff would properly want to stick with easy steps only.

Yeah, I would appreciate this, too. I don't want to screw up my system by playing with files...🙈

I have uploaded my dashboard yaml to a private github repo and added you as collaborator, @Clooos . Did you get the invite? Never tried that before...

@hellomarb
Copy link

hellomarb commented Nov 18, 2023

I can confirm that 1.5.0b2 working now under iOS in a more complex setup.
Only that the card are on first launch are visible until the JS kicks in is not optimal when you have popup cards not at the end of the dashboard, perhaps we can define a initial state like height: 0?

@Clooos
Copy link
Owner

Clooos commented Nov 18, 2023

Hi again everyone, I've fixed the missing bubble-pop-up.js in the new beta. It was indeed an issue with how I configured my repo for HACS. And I'm glad to see that there are no more crashes on your setups!

https://github.com/Clooos/Bubble-Card/releases/tag/v1.5.0-beta.3

@willliamchan thank you for your detailed feedback! I understand that the previous beta was a nightmare to install, but I've just tried beta 3 by installing it from HACS, then I simply added the line in my configuration, restarted Home Assistant, and that's it. I understand that this is an additional step for the end-user, but this is the best way to have pop-ups that really work. I believe that if the user was able to install HACS, they would know how to add a simple line in YAML 🙂 But indeed, I will add something like "Update only card-type:pop-up to use custom:bubble-pop-up.", it will indeed be clearer.

@Nazze you don't risk anything by adding it. This file only impacts your frontend (your browser) and not your Home Assistant installation. I've received your invite and I will take a look at it, thanks!

@hellomarb indeed pop-ups have to be at the end of your view, but since beta 2 this should be fixed. I've never seen any pop-ups content when loading the page. Maybe because I have mostly Bubble Cards, a shopping list, and two cameras in my pop-ups. I will probably have to try a more complex setup to fully debug it. But I will try your suggestion, it's not a bad idea at all! Edit: Even if I put a pop-up at the first position I'm not able to see it when I reload the page, I've tried that with a simple pop-up with a single camera in it. But I will try with a more complex pop-up.

Thanks everyone, really!

Edit: And please tell me if you think that this version can be pushed as stable with a bit more work on it 🤞

@Clooos Clooos pinned this issue Nov 18, 2023
@willliamchan
Copy link

Alright. I am on 1.5.0.Beta.3 and had bubble-pop-up.js added as extra_module. Although my dashboard is working but is the below something expected or unexpected? As long as I stay in my dashboard this keeps happening.

image

@Clooos
Copy link
Owner

Clooos commented Nov 18, 2023

Try to clear your cache and/or remove it from your dashboard resources (keep it only in your configuration.yaml), this issue is because you seems to use it twice.

@Nazze
Copy link

Nazze commented Nov 18, 2023

@Clooos OK, I managed to install beta3. And the very first test looks quite good. 🥳 No crash on Safari, Edge and Firefox Mobile and on the HA companion app. On Desktop, when I reload, I can see some popup flashing up shortly and disappearing. But this is only during the loading process (you don't have lazy loading or similar mechanisms to speed up the loading?)

Thanks again for you continuous effort. This is really a great frontend integration. I am happy to be able to create my own dashboard with full flexibility and it is looking really cool!

@Clooos
Copy link
Owner

Clooos commented Nov 18, 2023

Thanks! I'm so glad you can't imagine! But the pop-up initialization can't be faster now, this update is probably the best that I can get with Bubble Card (for the pop-ups initialization only), if you are still experimenting this issue you can probably try to check if your pop-ups are not too complex. But I can maybe add some kind of "loading screen" that hide everything until everything is initialized, this should be possible for an extra module. I will try something like that!

@willliamchan
Copy link

Try to clear your cache and/or remove it from your dashboard resources (keep it only in your configuration.yaml), this issue is because you seems to use it twice.

Gotcha, what is your best suggestion when it comes to bubble-card and bubble-pop-up, put both in extra_module_url and remove them all from resources or what? I found if I remove bubble-card.js from resource I will always get an error saying element or something cannot be loaded.

@Clooos
Copy link
Owner

Clooos commented Nov 18, 2023

Just add bubble-pop-up.js as an extra module in your configuration.yaml, bubble-card.js need to stay as a resources.

This is not like in the first beta indeed.

@willliamchan
Copy link

Just add bubble-pop-up.js as an extra module in your configuration.yaml, bubble-card.js need to stay as a resources.

This is not like in the first beta indeed.

Okay. I am all set. One last request, can you come up with a nice "Select" card? I got quite a several select cards in my dashboard for switching between scenes, timer for heated airer, mode switch for radiator etc. As for now I am using the most basic select card and look like below. I ask because I got a feeling you are the one who can come up with something fancy and practical!

image

image

@Nazze
Copy link

Nazze commented Nov 18, 2023

I am using Mushroom Cards. It has a nice selector, too

https://github.com/piitaya/lovelace-mushroom/blob/main/docs/cards/select.md

@Clooos
Copy link
Owner

Clooos commented Nov 18, 2023

I ask because I got a feeling you are the one who can come up with something fancy and practical!

Flattery tends to work quite well with me! Good job 😂

@willliamchan
Copy link

I am using Mushroom Cards. It has a nice selector, too

https://github.com/piitaya/lovelace-mushroom/blob/main/docs/cards/select.md

Yea I know and there are part of my current dashboard using mushroom too (pending to be replaced when Clooos come up with a new set of entity support) But don't you feel Bubble Card is kinda unique and should have it own?

@willliamchan
Copy link

I ask because I got a feeling you are the one who can come up with something fancy and practical!

Flattery tends to work quite well with me! Good job 😂

Every single word came from the bottom of my heart! I am gonna treat your reply as a Yes anyway!

@Clooos
Copy link
Owner

Clooos commented Nov 18, 2023

I’m definitely going to do it, I’d just appreciate if you could add a new issue for a feature request so I can finally close this one! ❤️

Edit: Just saw that 👀
image

@Clooos Clooos closed this as completed Nov 18, 2023
@Clooos Clooos unpinned this issue Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants