Frankseijts wrote: ↑Sunday 20 October 2019 15:11
I did get my lamp on and of but now i want color to
can some one help me
I don't understand why you used myLight but maybe this is what you intended ?
Code: Select all
return {
active = true,
on = {
timer = {
'at 15:00-15:01',
},
},
execute = function(domoticz)
myHueLamp = .devices('Hue color lamp 3')
myHueLamp.toggleSwitch()
myHueLamp.setRGB(124, 233, 11)
end
}
If you start with a new script and it is not working as expected it can help to switch on debug loggging in the script and look at the log what happens during execiuion.
It would then look like
Code: Select all
return {
active = true,
on = {
timer = {
'at 15:00-15:01',
},
},
logging =
{
level = domoticz.LOG_DEBUG,
marker = "Hue light test",
},
execute = function(domoticz)
myHueLamp = .devices('Hue color lamp 3')
myHueLamp.toggleSwitch()
myHueLamp.setRGB(124, 233, 11)
end
}
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>>
dzVents wiki