Welcome to Smart Home Forum by FIBARO
Dear Guest,
as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.
As a member you can:
- Start new topics and reply to others
- Follow topics and users to get email updates
- Get your own profile page and make new friends
- Send personal messages
- ... and learn a lot about our system!
Regards,
Smart Home Forum by FIBARO Team

Question
jsauser11 4
I could use some help creating a LUA scene for the IR Light on the Doorbird D10 doorbell.
My problem is that since the Doorbird uses a light sensor to toggle the IR lights on when the area is dark and there is a streetlamp in the field of view of the camera, the IR Light never comes on at night.
I have included the QA for the doorbird IR light, but the Doorbird toggles back to the sensor after 3 minutes, so my captured video at night is very poor.
I have attached a flow chart of what I am trying to accomplish with the LUA to trigger the IR Light on at sunset, and after delaying 180 seconds, test to see if a user created enumerated variable (LUX) is equal to 'Night'. If it is, then I want to loop back to the hub.call (line 1 of the ACTIONS). If the variable (LUX) is not equal to 'Night', then end the scene. Here is the code I have so far, but I am sure it is very wrong for doing the loop back.
hub.call(552, 'turnOn')
hub.setTimeout(180000, function()
hub.getGlobalVariable('LUX')
if 'LUX' == 'Night' then
goto 1
else
end)
If anyone can help me with this, it sure would be great.
Thanks.
Please login or register to see this attachment.
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.