Sub-Buttons with templating #484
svb91
started this conversation in
Feature requests
Replies: 6 comments
|
In general would be templating great (also in the style tag) like this: .bubble-sub-button-1 |
0 replies
|
Would love that as well |
0 replies
|
Hi, go take a look at the Templates section in the documentation, Bubble Card doesn't supports Jinja templates but you can add JS templates, I've added many examples. |
0 replies
|
Any idea to achieve rounding values in sub buttons, without creating rounded values? |
0 replies
|
It's just Javascript so you can use If the value is coming from a state you'd need to use |
0 replies
|
Hi! Jinja templates will finally be available in v3.4.0! You will be able to use these to customize names, icons, sub-buttons and styles 🍻 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
It would be great if I could add a templated value to a sub-button like this:
show_last_updated: true
name: >
[[[ return states['sensor.og_as_h_heizung_temperature'].state + 'kW']]]
icon: mdi:home-thermometer-outline
The reason for that is, that my temperature entity does provide this information with 2 digits and I'd like to round the value before displaying it.
All reactions