Bubble-Card icon indicating copy to clipboard operation
Bubble-Card copied to clipboard

Module not getting saved

Open dpeter99 opened this issue 6 months ago • 32 comments

Describe the bug
When I add a new module and change it, the module is shown while the editor is opne but gets lost when closing the card editor.

To Reproduce
Steps to reproduce the behavior:

  1. Open a card editor
  2. Add a module by importing it using the YAML import
  3. Add a change to the options
  4. Save the module
  5. Save the card
  6. Open the card editor again

Expected behavior
It shoud still be there and have the cahnges

Screenshots
https://github.com/user-attachments/assets/11d1729f-6740-4a69-9c4e-c62d625de0c8

Informations (please complete the following information):

  • OS: Linux Fedora KDE
  • Browser/App: Chrome
  • Bubble Card version: 3.0.0-beta9
  • Home Assistant version: 2025.5.3

Thank you! 🍻

dpeter99 avatar May 28 '25 18:05 dpeter99

Hi! Thank you for that detailed feedback! I will check that!

Clooos avatar May 28 '25 19:05 Clooos

I just fixed this issue, thanks again for the feedback!

Clooos avatar Jun 03 '25 12:06 Clooos

I just release v3.0.0-rc.1, let me know if this is fixed! 😄

https://github.com/Clooos/Bubble-Card/releases/tag/v3.0.0-rc.1

Clooos avatar Jun 15 '25 14:06 Clooos

I just release v3.0.0-rc.1, let me know if this is fixed! 😄

https://github.com/Clooos/Bubble-Card/releases/tag/v3.0.0-rc.1

I tried to add a module by importing a yaml code. It's imported successfully it said, but when i save the card and edit again the new module are gone.

3.0.0 rc1

Poyaan avatar Jun 16 '25 17:06 Poyaan

Can you confirm you see v3.0.0-rc.1 at the bottom of the editor? Some pre-release are not correctly updated with the current HACS version.

Clooos avatar Jun 16 '25 17:06 Clooos

I seem to be having an at least similar issue.

When downloading a module from the store I see it added to the list of modules but after saving the card, it’s just gone.

I also can’t enable it for all cards at all. Also interesting and maybe related: Whenever I open the card editor I see the “module installed successfully” snack bar.

I’m on rc-1, also tried reinstalling from scratch without success.

If you need any debugging done on my end lmk. Thanks for the awesome work. Big fan 😊

alaneurich avatar Jun 16 '25 17:06 alaneurich

Can you confirm you see v3.0.0-rc.1 at the bottom of the editor? Some pre-release are not correctly updated with the current HACS version.

Yes it says 3.0.0 rc1 in the editor. Im very new to this module thing so it could be me doing something wrong too 😁 Im not even sure where my modules are supposed to be stored..😁

Poyaan avatar Jun 16 '25 17:06 Poyaan

I will check that again, of course modules should be stored in all cases 😄

Clooos avatar Jun 16 '25 17:06 Clooos

I will check that again, of course modules should be stored in all cases 😄

I mean, in which file are the downloaded modules stored? bubble-modules.yaml seems to store only the default one. I download another module "sub button below" but it doesnt exist in that yaml file which i thought it should. But as i said. I may have done something wrong.

The only thing i did was to add the yaml to my configuration.yaml then it could start using the module. Or which is the correct installation process?

Poyaan avatar Jun 16 '25 17:06 Poyaan

This is the way, the bubble-modules.yaml file is not required, this file is for users who don't want to use the editor at all.

In your case, all modules are stored in the sensor your created in your configuration.yaml 🙂

Clooos avatar Jun 16 '25 18:06 Clooos

This is the way, the bubble-modules.yaml file is not required, this file is for users who don't want to use the editor at all.

In your case, all modules are stored in the sensor your created in your configuration.yaml 🙂

Ah ok i see 👍🏻 Are the sensor needed to be i configuration.yaml?

I have this line of code in configuration.yaml

template:

  • binary_sensor: !include_dir_merge_list entities/templates/binary_sensors
  • sensor: !include_dir_merge_list entities/templates/sensors

And keep my sensors in seperate single yaml files in /entities/templates/sensors/

But when added your sensor in my configuration.yaml i get some duplicate warning. So i ended removing my line of code to get the module store working.

Do you know how to keep your sensor in my external dir as all my other (2 😅 sensors) 😁

Poyaan avatar Jun 16 '25 18:06 Poyaan

I guess this should works as well, I'm not splitting my configuration.yaml so I'm not sure.

The duplicate issue is maybe because you haven't removed template: in the YAML to paste, or something like that.

Clooos avatar Jun 16 '25 19:06 Clooos

I guess this should works as well, I'm not splitting my configuration.yaml so I'm not sure.

The duplicate issue is maybe because you haven't removed template: in the YAML to paste, or something like that.

Thanks! I'll check if i can sort it out 👍🏻😀

Poyaan avatar Jun 16 '25 19:06 Poyaan

I'm experiencing this issue as well. Install the HA default config module, is available until i save. Gone when reloading. I'm also splitting my config in packages. In this case I have a folder called integrations. One of the files is templates.yaml that looks like this:

template:
  - sensor: !include_dir_list ../entities/templates/sensors
  - binary_sensor: !include_dir_list ../entities/templates/binary_sensors
  - select: !include_dir_list ../entities/templates/selects
  - trigger:
      trigger: event
      event_type: set_camera_description
    sensor:
      - unique_id: 4a4c8e53-9e68-4198-9cc5-b336e228ea4d
        name: Camera detection
        state: "{{trigger.event.data.key}}"
        attributes:
          full_description: "{{ trigger.event.data.value}}"
  - trigger:
      - trigger: event
        event_type: bubble_card_update_modules
    sensor:
      - name: "Bubble Card Modules"
        state: "saved"
        icon: "mdi:puzzle"
        attributes:
          modules: "{{ trigger.event.data.modules }}"
          last_updated: "{{ trigger.event.data.last_updated }}"

Sholofly avatar Jul 06 '25 08:07 Sholofly

I'm experiencing the same issue. I can install modules from the store and they work fine, but when I create my own module, click save, and then reload or reopen the page, it disappears.

Kirello avatar Jul 08 '25 10:07 Kirello

@Kirello Indeed, I had this issue as well yesterday, but only with an incomplete module, I wanted to try some forms for the editor, without any code in the code field, and it disappears in that case. Try again by filling all fields (the editor field is optional).

I will do my best to fix this in the next release 🙂

Clooos avatar Jul 08 '25 15:07 Clooos

@Clooos Thank you for your reply! Indeed, once I filled in all the fields, it saved successfully. I suspect that I hadn’t filled in the "creator" field before, because I definitely provided the code and description, and it didn’t work.

Kirello avatar Jul 10 '25 10:07 Kirello

I think my issue is different. If i install the module it's there. I can't click the all cards option then. As soon as i reload the page the module isn't installed anymore.

Sholofly avatar Jul 10 '25 14:07 Sholofly

@Sholofly if you have the bubble-modules.yaml, remove it. Having both the YAML file and the template sensor can lead to this issue. You just need the sensor in your case 🙂

Clooos avatar Jul 10 '25 15:07 Clooos

No, i've only the example variant in my community/Bubble-Card folder..

Sholofly avatar Jul 11 '25 08:07 Sholofly

Similar problem. It doesn't even make it to saving. I can download module from the store, and as soon as I change a parameter, the module disappears. It still says downloaded when I go back to the store.

sobchek avatar Jul 13 '25 03:07 sobchek

Similar problem. It doesn't even make it to saving. I can download module from the store, and as soon as I change a parameter, the module disappears. It still says downloaded when I go back to the store.

If you have added the yaml snippet, be careful how you’ve added it. I have a templates.yaml as an include, I have my sensors and binary sensors separated from each other so I only have the - sensor: heading once. So when I added the required yaml I made the mistake of adding a - trigger: section and moving the sensor under the current sensors section - everything showed up in HA, I could see the sensor under developers tool and monitoring the event I could see things being triggered, just the two were not linked so although it would say it’s downloaded, it would just disappear when I tried to do anything else.

  - trigger:
     - platform: event
       event_type: bubble_card_update_modules
    sensor:
      - name: "Bubble Card Modules”
        state: "saved"

Note there is no - before the sensor: part, so I moved that section from where my other sensors are listed and put it back to how it is shown and it started working as expected.

Scoobler avatar Jul 13 '25 06:07 Scoobler

Similar problem. It doesn't even make it to saving. I can download module from the store, and as soon as I change a parameter, the module disappears. It still says downloaded when I go back to the store.

If you have added the yaml snippet, be careful how you’ve added it. I have a templates.yaml as an include, I have my sensors and binary sensors separated from each other so I only have the - sensor: heading once. So when I added the required yaml I made the mistake of adding a - trigger: section and moving the sensor under the current sensors section - everything showed up in HA, I could see the sensor under developers tool and monitoring the event I could see things being triggered, just the two were not linked so although it would say it’s downloaded, it would just disappear when I tried to do anything else.

  - trigger:
     - platform: event
       event_type: bubble_card_update_modules
    sensor:
      - name: "Bubble Card Modules”
        state: "saved"

Note there is no - before the sensor: part, so I moved that section from where my other sensors are listed and put it back to how it is shown and it started working as expected.

Thank you - this fixed it for me.

abwino avatar Jul 13 '25 12:07 abwino

Similar problem. It doesn't even make it to saving. I can download module from the store, and as soon as I change a parameter, the module disappears. It still says downloaded when I go back to the store.

If you have added the yaml snippet, be careful how you’ve added it. I have a templates.yaml as an include, I have my sensors and binary sensors separated from each other so I only have the - sensor: heading once. So when I added the required yaml I made the mistake of adding a - trigger: section and moving the sensor under the current sensors section - everything showed up in HA, I could see the sensor under developers tool and monitoring the event I could see things being triggered, just the two were not linked so although it would say it’s downloaded, it would just disappear when I tried to do anything else.

  - trigger:
     - platform: event
       event_type: bubble_card_update_modules
    sensor:
      - name: "Bubble Card Modules”
        state: "saved"

Note there is no - before the sensor: part, so I moved that section from where my other sensors are listed and put it back to how it is shown and it started working as expected.

Like a kid on Christmas morning, I was so excited for modules, I tore open the package and DIDN'T READ THE INSTRUCTIONS!

User error.

sobchek avatar Jul 13 '25 14:07 sobchek

Saving does not work for me as well. Clicking on "Save module" does nothing, the "dialog" stays open. I can only click "Cancel" to make it finally disappear. Afterwards both the settings and the module are gone.

Running on current version of Firefox.

gpayer avatar Jul 17 '25 10:07 gpayer

When I try to save a module, I get an HA notification there was a login error.

EDIT: I had the Module template sensor in the configuration.yaml twice. But after taking that out I am still not able to save a module. The color of the slider (the module I'm trying to make) will change briefly, but moments later it's back to default.

TheDaveAbides avatar Jul 19 '25 00:07 TheDaveAbides

It happens to me too. I installed it manually and then installed it again, and it was good...

2025-08-02 21:39:18.969 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 10.0.0.30 (10.0.0.30). Requested URL: '/api/states/sensor.bubble_card_modules'. (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36)

ulounge avatar Aug 02 '25 20:08 ulounge

Hi! I've just released v3.0.1, your feedback is more than welcome 🙂

Clooos avatar Aug 11 '25 18:08 Clooos

Please add me to the list with this problem. I'm on Bubble Card 3.0.3 and cannot save my own modules. Modules from the Store are working though without any problems. After saving the editor dialog and opening it again, my custom module disappears and I don't see it in the "My Modules" list: Image

Nevertheless, I find my module in the "bubble_card_modules" sensor: Image

My template sensor is also correctly configured, as mentioned here and in #1756 : configuration.yaml: Image

templates.yaml: Image

bornste avatar Aug 18 '25 09:08 bornste

@bornste this is probably because your module's code is empty, have you tried with some code in it?

Edit: But I will block the Save button to avoid this issue in the future.

Clooos avatar Aug 18 '25 11:08 Clooos