Energymeter with S0 bus

Is it possible to use a energymeter with a S0 bus output? I have one that gives 2000 impulses per kWh. This is basicly a dry contact that opens and closes every 0.5 Wh of energy.

I can use on the cerbo Digital I/O an impulsmeter, in the setup I can select cubic m, liter, gallon as a voulme unit. It would be nice to have Wh as a unit also.

Any suggestions ?

Wim

You can covert in Node Red with this Node

node-red-contrib-watt2kwh