I used the first template today to combine the three phases of my Shelly energy meter. now i have a total value. So far everything is good.
Now I would like to change this value from watts to kWh. Can someone give me a tip here.
I would then like to combine this value with my electricity price and see the daily cost. Unfortunately I found some examples in the forum, but I haven’t found a suitable one yet. Here is my current template.
Hi, the sensor you have created is just calculating the total current in Amps.
I think you need to check if your Shelly provides an entity for power (in W or kW) and then use the Utility Meter Integration to calculate kWh for the hour/day/month etc.
For the energy cost you need to define an input_number and set this to the energy cost in your currency/kWh. You then need another template sensor/s e.g. to multiple the hourly/daily/monthly energy from the Utility Meter by the input_number to give the cost for the ones you require.
I also struggled with this problem for a long time … in the old updates it did not show anything, but there was no update of the amount, in the new one the warning ‘Unsupported unit of measure’ is now lit. Until I switched to english, the interface could not understand what the problem was … in me it was ‘RUB/кВтч’ (as in the description: ‘Следующие объекты не имеют значений в единицах измерения {currency}/кВтч или {currency}/Втч:’). After the transition, I saw that he needs your currency and in English ‘kWh’. As fixed - everything is ok.