Skip to content
Discussion options

You must be logged in to vote

I will gladly help you.

Bubble-Cards don't support jinja2 (yet).
See documentation about templates
In the examples there is one about the sub-button icon color.

type: custom:bubble-card
card_type: button
entity: switch.luz_hall_transeiras_switch_0
name: Luz
show_attribute: false
show_state: true
show_last_changed: true
force_icon: false
sub_button:
  - entity: sensor.sensor_movimento_hall_transeiras_battery
    show_name: false
    show_state: true
    state_background: true
    show_attribute: true
    name: Battery
styles: |-
  .bubble-sub-button-1 {
      color: ${ hass.states['sensor.sensor_movimento_hall_transeiras_battery'].state > 80 ? 'green':
                hass.states['sensor.s…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by MrBearPresident
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment