Hello,
I’m trying to have this code for a custom:bar-card to work, as I want to have the max attribute be dynamic according to each file printed, so the progress bar reacts accordingly.
I’m aware that the card does not accept a string, but just a number so I though maybe I can circumvent the card restrictions with just a little template.
It does not work.
Is there a way to make this work?
entities:
- entity: sensor.bambu_p1s_current_layer
name: Current Layer
max: ${states["sensor.bambu_p1s_total_layer_count"].state}
type: custom:bar-card
Thank you in advance