From the FAQ: Format your code
This line in your template doesn’t return the sensor’s value:
{{ 'sensor.smartmeter_data' }}
Change it to this:
{{ states('sensor.smartmeter_data') }}
Reference: Templating - States
In addition, your template’s regex pattern produces more than one matching value.
The float filter cannot process multiple values so it will result in an error (and that’s why the sensor’s value is unknown).
