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
pvo 2
Hey Guys,
I can't seem to figure this out. I really need some help. I've tried Fibaro support but that didn't help unfortunately.
So the idea is that this script runs only when Time=Night. I fire the script as part of scene. Problem is it always fire without checking the variable when the trigger is another scene. When i trigger it manually it works like i want it to... What am i missing?
local Time
Time = fibaro:getGlobalValue("Time")
if (Time == 'Night') then
fibaro:call(134, "turnOn");
fibaro:call(120, "pressButton", "1");
fibaro:call(137, "pressButton", "1");
fibaro:debug('I turned the lights on because its ' .. Time)
else
fibaro:debug('It didnt turn the lights on because its ' .. Time)
end
12 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.