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
Razvanv 0
Hello,
I have a motion sensor downstairs and one upstairs. I use them to turn on the stair lights for 30 seconds
The problem is I can only make it work in a time interval (block scene) but the time interval is irrelevant every other season because the day and night are changing all the time
I Try to use sunset and sunrise function but it got me nowhere.
Someone helped me with a LUA scene but that didn't work either. It's like Fibaro cannot understand that I want the light to be triggered by motion sensors only in this interval: 20 minutes after sunset and 20 minutes before sunrise.
Here is the LUA script I have but is not working. It triggers the light all day long.
DECLARATIONS (Conditions/Triggers)
{
conditions = { {
conditions = { {
id = 291,
isTrigger = true,
operator = "==",
property = "value",
type = "device",
value = true
}, {
id = 395,
isTrigger = true,
operator = "==",
property = "value",
type = "device",
value = true
} },
operator = "any"
}, {
conditions = { {
isTrigger = false,
operator = ">=",
property = "sunset",
type = "date",
value = 30
}, {
isTrigger = false,
operator = ">=",
property = "sunrise",
type = "date",
value = -20
} },
operator = "any"
} },
operator = "all"
}
==========================================
ACTIONS
hub.call(55, 'setValue', 20)
hub.setTimeout(20000, function()
hub.call(55, 'turnOff')
end)
==========================================
Please help me fix this!
Thak you!
Please login or register to see this attachment.
Please login or register to see this attachment.
Edited by RazvanvTypos
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.