I was going to give up and then I saw that this sensor is in W not kw/h.
You need to add an integration sensor, what you have done on post 2 to have kWh.
And recheck class.
Ps: I am confused too, first screenshot says kwh, second screenshot shows W.
Pps : see also Shelly 3EM 3-phases Energy sensor maybe a better solution but not clear if it’s base Shelly or shellyforhass