Clooos / Bubble-Card

Bubble Card is a minimalist card collection for Home Assistant with a nice pop-up touch.
MIT License
2k stars 58 forks source link

Old brightness is shown while light is Off #904

Closed biva closed 1 week ago

biva commented 2 weeks ago

Congrats on your fantastic work and results! This is really amazing.

Describe the bug
I have a slider button to manage a light, and the old brightness value remains displayed while the light is Off

To Reproduce

  1. Create a slider button to manage a light
  2. Activate Attribute (but not State)
  3. Action on tap: Toggle
  4. Turn on the light, for example to 35% brightness
  5. This displays 35% below the name of the light
  6. Turn it Off (click on the icon to toggle the light)
  7. 35% is still displayed

Expected behavior
The attribute should disappear

Screenshots
image

YAML

type: custom:bubble-card
card_type: button
button_type: slider
entity: light.dimmer_2_salon_escalier
show_state: false
show_attribute: true
attribute: brightness
tap_action:
  action: toggle
hold_action:
  action: more-info
layout_options:
  grid_columns: 2
  grid_rows: 1
card_layout: large
sub_button: []
name: Escalier
scrolling_effect: false

Workaround
If the State is displayed, then we see "Off" instead of 37% image

type: custom:bubble-card
card_type: button
button_type: slider
entity: light.dimmer_2_salon_escalier
show_state: true
show_attribute: true
attribute: brightness
tap_action:
  action: toggle
hold_action:
  action: more-info
layout_options:
  grid_columns: 2
  grid_rows: 1
card_layout: large
sub_button: []
name: Escalier
scrolling_effect: false
show_last_changed: false

Thank you! 🍻

Clooos commented 1 week ago

Hi, this issue is already fixed in the current beta, you can go on re-download on the Bubble Card HACS page, you can select the betas from there, or just wait for the next stable release 🙂