Skip to content

How can I change both the text AND icon of a sub-button #1049

Discussion options

You must be logged in to vote

You have to use .bubble-sub-button-2 .bubble-sub-button-name-container

type: custom:bubble-card
card_type: button
entity: switch.esphome_web_1111b4_pool_pump
name: Pump
icon: mdi:pump
show_icon: true
sub_button:
  - entity: sensor.esphome_web_1111b4_pool_temperature
    show_state: true
    show_icon: true
    state_background: false
    show_background: false
    name: pool
    show_name: true
  - entity: sensor.co2click_temperature
    name: air
    show_background: false
    show_name: true
    show_state: false
    show_icon: true
    show_attribute: false
    show_last_changed: false
card_layout: large-2-rows
styles: >
  ${card.querySelector('.bubble-sub-button-2 .bubble-sub-button-n…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Juggler00
Comment options

Answer selected by Juggler00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment