Jump to content

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


Recommended Posts

Posted

I have a universal sensor with a normal moving sensor (id 55).

With a timer the lights will go off in 2 minutes even when there is a movement.

How can i reset the scene so that the light(id 11) will be on when there is movement and the timer will be working when there is no movement anymore.

tnx

Posted

You need to have a loop which checks every second or so whether there is still movement. If there is still movement, the timer should be reset. I have something similar with this scene:

Please login or register to see this code.

Now, what this scene does, is to turn on a room light when the light sensor reads below a certain value (set at 50) and the motion detector detects motion. It will turn on the light to a predetermined value (default 80), and keep it that way for a set amount of time (preset at 60 seconds). After the 60 seconds, it will slowly dim to 0 and then turn off the lamp (dimming to 0 is not the same as off!). If motion is detected before it reaches 0, it will reset the timer and turn the lamp back on to full blast.

If you want to use above code, you need to go into the Variables Panel and create a global variable called "motionoverride". When set at 0, the light will turn on to 80, when set at 1, the lights will turn on to 25. If you change 25 to 0, it will not turn on the light even if motion is detected. I use this at night to make sure light doesn't come on in the bedroom while we are sleeping.

Just remember to change all the id values (including 24 value, and 27 value in the properties) to the ids of your motion and light sensor.

  • Topic Author
  • Posted

    Tnx will try it

    Please login or register to see this image.

    /emoticons/default_icon_mrgreen.gif" alt=":mrgreen:" />

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...