After all is done, I have these numbers after a washing cycle:
Start kWh = 39599
End kWh = 39975
Used kWh = 376
Price per kWh = 0.22
The original script says
Code: Select all
MachineCost = (domoticz.data.MachineEndkWh - domoticz.data.MachineStartkWh) / 100000 * MachinePricePerkWh -- Deviding factor might need to be adjusted
MachineUsed = (domoticz.data.MachineEndkWh - domoticz.data.MachineStartkWh) / 1000 -- Deviding factor might need to be adjusted

Thanks for any help here!
S.