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
Guest imparator
Hi, can some one give me a example to next one :
i have a pir sensor, that turns lights on and off after 3 minutes.
when i click the lights on with one click and i walk in the room , the sensor see movement, it turns the lights off after 3 minutes.
What i will is :
that the manual click overrule the sensor, when i put the lights on, with a click, the lights stay on
till i click it off.
so the sensor don't put the lights off automatic .
Lua:
--[[
%% autostart
%% properties
200 value
200 armed
%% globals
kleedkamer_sensor
--]]
local startSource = fibaro:getSourceTrigger();
if (
( fibaro:getGlobalValue("kleedkamer_sensor") == "Aan" )
and
( (tonumber(fibaro:getValue(200, "value")) > 0 and tonumber(fibaro:getValue(200, "armed")) == 0) )
or
startSource["type"] == "other"
)
then
fibaro:call(188, "setValue", "20");
setTimeout(function()
fibaro:call(188, "turnOff");
end, 240000)
end
14 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.