Energy cost calculation

hello, I would like to create a piston that calculates the cost of energy and insert this data into a virtual device such as a temperature sensor. I created a variable containing the data calculated by expression. when I create the virtual device, webcore does not let me set the "temperature" .. is there a custom DTH that would allow me to do it?

Ops..! I’ve solved!

Download the Hubitat app