How to update a Dummy value with dzvents
Posted: Sunday 24 April 2022 18:19
How to save the Lux_East Value to a Dummy device?
return
{
on =
{
timer =
{
'every minute',
},
},
execute = function(dz, device)
Lux_East = dz.utils.round(math.exp(dz.devices(142).temperature/10) , 0 ) --1-wire sensor idx 142 is reporting temperature and need to be converted to Lux
dz.log(Ost)
end
}
return
{
on =
{
timer =
{
'every minute',
},
},
execute = function(dz, device)
Lux_East = dz.utils.round(math.exp(dz.devices(142).temperature/10) , 0 ) --1-wire sensor idx 142 is reporting temperature and need to be converted to Lux
dz.log(Ost)
end
}