I read the total energy with a linux shell script :
E=$(curl -s -X POST -d '{"id":1, "method":"Shelly.GetStatus"}' http://192.168.66.187/rpc | jq -M . | grep total | sed s/^.*\ // | sed s/,//)
And I store that value on a local server.
Last night, I get a grid failure, and then I was surprised becaus the total energy value was reset to 0. I had understand the this value was stored in cas of power fail. Did I miss something ?