I can add this sensor into my Dashboard, but i cannot use it for Energy Grid
Consumption. But the Template has all the relevant properties like
state_class, unit_of_Measurement and device_class.
Go to Developer Tools → Statistics and see if there is a FIX ISSUE button to the right of your sensor.
There are a couple of optional improvements you can make:
You do not need to use underscores in names. The name option can take spaces and may look better on your dashboard. e.g.
sensor:
- name: "Amis Energy Sensor 1.7.0"
A one second scan interval is not needed for total sensors and is just spamming your resource. Set it to something sensible like 10 seconds minimum.
If you use the rest integration, rather than the rest sensor platform, you can create all the sensors with one call to the resource and without the need for extra template sensors.