I have a sensor that calculate the energy that the house is using.
sensor.total_electricity = (Solar production - solar sold to grid + imported to house)
When I put it into a “Utility meter” it is also possible to add the tariff.
I pay the electrician with variable price every houre represented in “sensor.tibber_price”
(This is automaticaly updated every houre)
My question is, how do I connect the price sensor to the teriff in the best way?
Thanks // Fredrik