Clooos / Bubble-Card

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

Tap on icon, tap on name? #476

Closed jockebq closed 2 months ago

jockebq commented 2 months ago

Using latest 2.0 beta, and changing the tap on icon works, but tapping on the name does only toggle the entity on or off? Can you make it so both are doing the same thing, or make it custom for the icon and the name?

Clooos commented 2 months ago

Hi! This issue is fixed on my side, I will release a new beta tomorrow! And I hope that everything will works this time! :D

Clooos commented 2 months ago

This issue should be fixed in the new beta! Can you confirm this?

https://github.com/Clooos/Bubble-Card/releases/tag/v2.0.0-beta.3

jockebq commented 2 months ago

Tested this again, but the behaviour is the same on Beta 5. I have only set the icon to Hold action, not tap. This works on the icon, but the name will still do the default behaviour. Can you separate them or make the behaviour the same on both?

Another issue I have is I cannot show a separate sensor next to the title: state: sensor.tanda_lampor It doesnt show up?

Clooos commented 2 months ago

I guess that you are not using the GUI editor, I still need to edit the documentation for that but you can change the tap actions on the button itself now.

In YAML it looks like this:

button_action:
  tap_action: 
    action: more-info

For the state you now have to add a sub-button, like this:

sub_button:
  - entity: sensor.kitchen_temperature
    icon: mdi:thermometer
    show_name: false
    show_icon: true
    show_background: false
    show_attribute: false
    show_state: true
    show_last_updated: false
    tap_action:
      action: more-info