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

Cover: Attibute "0" not displayed #750

Closed
zimbo86 opened this issue Aug 26, 2024 · 2 comments
Closed

Cover: Attibute "0" not displayed #750

zimbo86 opened this issue Aug 26, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@zimbo86
Copy link

zimbo86 commented Aug 26, 2024

Describe the bug
I want to use type: cover and display attribute "current_position".
Current position is between 0 (closed) and 100 (opened).
When attribute = 0 the attribute is not updated and it displays the last state of the posistion instead 0.

To Reproduce
Steps to reproduce the behavior:

See Sample card in yaml mode

Expected behavior
Display 0 or "closed"

Screenshots

image
image

YAML
If applicable, add any relevant YAML code.

            - type: custom:bubble-card
              card_type: cover
              entity: cover.shutter_livingroom
              name: Rolladen (Lichtband)
              show_attribute: true
              attribute: current_position

Informations (please complete the following information):

  • OS: [e.g. iOS]
  • Browser/App: [e.g. edge latest]
  • Bubble Card version: [e.g. 2.2]
  • Home Assistant version: [e.g. 2024.6.4]

### Can someone stop those Bots?
Please dont click these links with zip downloads...

@zimbo86 zimbo86 added the bug Something isn't working label Aug 26, 2024
Repository owner deleted a comment Aug 26, 2024
Repository owner deleted a comment Aug 26, 2024
Repository owner deleted a comment Aug 26, 2024
@Clooos
Copy link
Owner

Clooos commented Aug 26, 2024

Thank you for the feedback, I will take a look.

And I've reported these bots.

@Clooos
Copy link
Owner

Clooos commented Aug 28, 2024

I have tried and for some reason this issue is only happening if you don't display the state, with the state + attribute this is working as expected. I will fix this in the next release.

Clooos added a commit that referenced this issue Sep 15, 2024
- [x] Added CSS variables for most important values to allow simple editing in themes.
- [x] Sub-buttons background color is now changing based on light color.
- [x] It is now possible to change the styles of a select card with the new variables #725
- [x] Button slider haptic feedback is now triggered only on release.
- [x] Button slider update is now triggered only on release #686 (partial optimization for #764)
- [x] Cover: Attribute "0" not displayed #750
- [x] Disabling "Text scrolling effect" then ignores "Show name" #598
- [x] Fixed the back button on sub views that was not working anymore after the v2.2.4 release.
@Clooos Clooos closed this as completed Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants