I have 2 Ikea sensors and one is set to 10 min and the second to 3 min.
I want to extend the second to 10 min so I changed the Off Delay but the lamps still turns off after 3 min even if I have set it to 1200 seconds.
Bug or is it something with zigbee ?
I use this script to control my lamps.
Code: Select all
return {
on =
{
devices =
{
'IKEA - Sensor sovrum'
},
},
logging =
{
level = domoticz.LOG_FORCE,
marker = "IKEASensorSovrum"
},
execute = function(dz, device)
local function logWrite(str,level)
dz.log(tostring(str),level)
end
local dimLevel = 0
logWrite('00...............Sensor triggerd')
if dz.time.isNightTime or dz.devices(59).state == 'Closed' then
if device.state ~= 'On' then
dimLevel = 0
logWrite('10...............Turning off the light')
else
dimLevel = 60
logWrite('20...............Night time')
end
logWrite('30...............Dim value is ' .. dimLevel ..'%')
dz.devices('IKEA - Taklampa Sovrum').dimTo(dimLevel)
dz.devices('IKEA - Taklampa Hall').dimTo(dimLevel)
end
end
}