Shelly total energy cunsumption

Hello
I am trying to get my solar kwh and my consumption kwh with a shelly em on home assistant.
Sofar I am able to get the data but only there are 10 decimals and I cant get it to show only 2 decimals.
Here is my config

  - platform: rest
    name: Total Energy Used Integral
    resource: http://xxx.xxx.xxx.x/status 
#    username: !secret 
#    password: !secret 
    authentication: basic 
    value_template: "{{(value_json.emeters.0.total|float/1000)|round(2)}}" 
    scan_interval: 300 # no point updating faster than this. The Shelly only updates this every 5 minutes 
    unit_of_measurement: kWh 
  - platform: rest 
    name: Total Energy Solar
    resource: http://xxx.xxx.xxx.x/status 
#    username: !secret 
#    password: !secret 
    authentication: basic 
    value_template: "{{(value_json.emeters.1.total|float/1000)|round(2)}}" 
    scan_interval: 300 
    unit_of_measurement: kWh
    
  
utility_meter:
  daily_energy_used: 
   source: sensor.Total_Energy_Used_Integral
   cycle: daily 
  daily_energy_solar: 
   source: sensor.Total_Energy_Solar 
   cycle: daily 

Can anybody help?
When I dont use utility meter, I dont get the total energie used.
Whith the shelly1pm I do.
But with the shellyem I dont