Code: Select all
on = { timer = { "every 1 minutes" }}, -- Change to your liking to 1,2,3,4,5,6,10,12,15 or 20
execute = function(dz, item)
local Opbrengst = dz.devices(1813)
local Enphase = dz.devices("Enphase Panelen - total").counterToday
local Solaredge = dz.devices("OpbrengstTotaal").counterToday
Opbrengst.updateElectricity(dz.utils.round(Enphase + Solaredge), 0) -- Rounded to two decimals
end
}
And writes to a dummy general kwh device
It gives today a value of 19 wh but should be 19kwh

How can i change this ?
Regards