08.07.2023, 21:50
Hi all, I see this is an older tread, but i will give it a shot.
I would like to put my light at some places from the motion sensor at day full light and night dimmed. At the motion sensor ( Basalte aura ) i can chose there control day = 1 and night is 0
I tried the script and schedulers as mentioned above, but non of them will change my status. I'm a bit new in to KNX and scripting.
now = os.date('*t')
if now.hour >= 7 and now.hour < 22 then
grp.write('10/0/3', true)
elseif now.hour >= 22 and now.hour < 7 then
grp.write('10/0/3', false)
end
I would like to put my light at some places from the motion sensor at day full light and night dimmed. At the motion sensor ( Basalte aura ) i can chose there control day = 1 and night is 0
I tried the script and schedulers as mentioned above, but non of them will change my status. I'm a bit new in to KNX and scripting.
now = os.date('*t')
if now.hour >= 7 and now.hour < 22 then
grp.write('10/0/3', true)
elseif now.hour >= 22 and now.hour < 7 then
grp.write('10/0/3', false)
end