Code: Select all
local d = domoticz.devices('Light 1')
domoticz.log(d.name)
local colorSet = d.color
domoticz.log(colorSet)
local t = colorSet.t
domoticz.log(t)
Code: Select all
2020-12-14 18:11:49.589 Status: dzVents: Info: Switch 1: Light 1
2020-12-14 18:11:49.589 Status: dzVents: Info: Switch 1: {"b":0,"cw":102,"g":0,"m":2,"r":0,"t":153,"ww":153}
2020-12-14 18:11:49.589 Status: dzVents: Info: Switch 1: nil
I'm new to Lua and dzVents... Is this Lua playing rough? Or how to get a value from a (seemingly) correct color set?
Thanks for any light you can shed