Take a sensor and use it to set the upper bounds of a mini graph card

Templates are not supported for options in mini-graph-card.
A possible way could be using a card supporting templates like config-template-card etc.
Suggest to ask all related questions on the dedicated thread instead of creating new threads.