Although config-template-card is a universal way to add templates - it is not recommended to use it in for the Gauge card. If you add a “needle” to the Gauge - it will “drop to 0” every time your sensor change.
Use auto-entities instead. Google in auto-entities main thread for “gauge”, I posted there a solution.