template: - sensor: - name: total_solar_numeric state: '{{states("sensor.total_solar")|int(0)}}'