Tempate Sensor from Attributes

You’re missing a closing single quote after

and you have to have the default for you float… float(0) (This is required as of 2021.12)