One energy sensor, 2 virtual energy sensors depending on which car is charging

I’ve got a sensor (sensor.kwh_meter_energy_import) that is connected to my charging pole for my electric car, so I can now measure how much my car uses.

First world problems; I’ve got a second electric car that I want to charge as well, but I also would like to know how much each car charges. I think I can make a selector switch to indicate which car is charging, but how can I add a virtual energy sensor that will increase if car A is charging and after switching to car B, virtual sensor for car B will increase…?

This is exactly what a utility_meter can do. Create one, and create one tariff for each car:

Then for one input energy sensor, you will get two output energy sensors, one for each car, and a select entity that allows you to pick between them.

1 Like

Can you be a bit more specific?

Tariff should be the same. I don’t see an option to create something like your screenshot ‘Car1’, ‘Car 2’…

In the supported tariff field, type anything you want and hit enter. Each “tariff” will be for a different car.

This is the menu you get when you add a new helper and select Utility Meter.

1 Like

But how does the utility meter know when Car 1 is charging and when the other?

It creates a select entity that you can select which one is active. You change the select entity (either manually, or through an automation).

1 Like