Tanks
Code: Select all
UpdateDev('Power',0,'12;1;0;0;300;0')
Code: Select all
-- Contatore potenza
return {
on = {
timer = { "every 1 minutes"}
},
execute = function(dz,trigger)
local device_power = dz.devices(72).getupvalue
print(dz.devices(72).state)
UpdateDev('Power',0,'12;1;0;0;300;0')
end
}