Skip to content

Sub Button Heading Text #1222

Discussion options

You must be logged in to vote

You can use this code to change the text of the sub-button:

.bubble-sub-button-name-container{
  flex-wrap: wrap !important;
}
${card.querySelector('.bubble-sub-button-name-container').innerHTML = "Dishwasher"+"<br/>"+"<b>Actual Mode</b>"}

Or use this to display an entity's state:

.bubble-sub-button-name-container{
  flex-wrap: wrap !important;
}
${card.querySelector('.bubble-sub-button-name-container').innerHTML = "Dishwasher"+"<br/>"+"<b>"+ hass.states['you_entity_here'].state +"</b>"}

If this solves your problem, mark this as solved and close the discussion.

Replies: 2 comments 1 reply

Comment options

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

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

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