Sensor Template doesn't work

Hello,
I have tried to creare a template to transform the energy values from W to kW.

I have tested it with Models and it works but when I try to Check the Configuration:

Why?
thanks for your support

You can’t have a period in your sensor slug.

Hi petro,
thanks for your prompt reply but I’m not expert at all in yaml language.
Could you give me some more explanation?
Thanks

Please post code as formatted text in future: see points 11 and 14 here.

Legacy format template sensors are described here:

Your line:

sensors:
  sensor.solarmanf...

should read:

sensors:
  solarmanf...

HA will then create sensor.solarmanf....

You’ve also mis-spelled “measurement”.

image

Understood!
Thanks to both petro and Troon