How to update a Dummy value with dzvents Topic is solved

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
watchmyhome
Posts: 8
Joined: Saturday 18 September 2021 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

How to update a Dummy value with dzvents

Post by watchmyhome »

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
}
hestia
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

Post by hestia »

Code: Select all

dz.devices(theDummyDeviceId).updateLux(Lux_East)
watchmyhome
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

Post by watchmyhome »

thx, easier than expected :)
hestia
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

Post by hestia »

:)
Post Reply

Who is online

Users browsing this forum: Xenomes and 1 guest