I have a total_increasing sensor (kWh). I‘d like to create two template sensors of it.
One which counts, when the state of another sensor is 1 (on on), the other when it‘s 0 (or off). is that possible?
Yes. Feed your energy sensor to a utility meter with two tariffs. This will create two sensors.
Switch the tariff using an automation triggered by the state of your other sensor.
1 Like
ok, thanks! I’ll give it a try!