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
}
How to update a Dummy value with dzvents Topic is solved
Moderators: leecollings, remb0
-
- Posts: 8
- Joined: Saturday 18 September 2021 21:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
-
- Posts: 361
- Joined: Monday 25 December 2017 23:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: Paris
- Contact:
Re: How to update a Dummy value with dzvents
Code: Select all
dz.devices(theDummyDeviceId).updateLux(Lux_East)
-
- Posts: 8
- Joined: Saturday 18 September 2021 21:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: How to update a Dummy value with dzvents
thx, easier than expected 

Who is online
Users browsing this forum: Xenomes and 1 guest