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

Hey all,

 

I'm using a couple of Fibaro FGMS-001 Motion Sensors to control lighting in my hallway. I'm using them with OpenHAB and have a rule that acknowledges motion, turns the light on, then after 5 minutes turns the light off. This works well, regardless of whether the motion sensor turns the light on, or the manual switch.

 

The problem I have, is that, when the light goes off after 5 minutes, I am unable to immediately trigger motion again. I suspect this is due to the parameters I currently have set, and my lack of understanding about what they do.

 

Ideally, I want to 'disable' the PIR/motion sensing for the duration of the illumination, however, there doesn't seem to be any kind of parameter that will allow me to do this.

 

I've played with options 2 and options 6. Option 2 sounds most like what I want, but I can't define that as any higher than 15... Option 6, I have recently changed from 120, to 20, and this doesn't seem to have made any difference whatsoever.

 

Please login or register to see this image.

 

Any ideas?

 

 

 

 

OpenHAB rules if anyones bothered;

Please login or register to see this code.

Posted

 

Hey all,

 

I'm using a couple of Fibaro FGMS-001 Motion Sensors to control lighting in my hallway. I'm using them with OpenHAB and have a rule that acknowledges motion, turns the light on, then after 5 minutes turns the light off. This works well, regardless of whether the motion sensor turns the light on, or the manual switch.

 

The problem I have, is that, when the light goes off after 5 minutes, I am unable to immediately trigger motion again. I suspect this is due to the parameters I currently have set, and my lack of understanding about what they do.

 

Ideally, I want to 'disable' the PIR/motion sensing for the duration of the illumination, however, there doesn't seem to be any kind of parameter that will allow me to do this.

 

I've played with options 2 and options 6. Option 2 sounds most like what I want, but I can't define that as any higher than 15... Option 6, I have recently changed from 120, to 20, and this doesn't seem to have made any difference whatsoever.

 

Please login or register to see this image.

 

Any ideas?

 

 

 

 

OpenHAB rules if anyones bothered;

Please login or register to see this code.

Have you tried the parameter 2: down to 1 or 2

 

Please login or register to see this attachment.

  • Topic Author
  • Posted

    I haven't, but I shall 

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

  • Topic Author
  • Posted

    Dropping option 2 to "3" and updating my rules to;

     

    rule "Turn Downstairs Hallway Light off after 5"
    when
        Item Toggle_2 received command
    then
        if(receivedCommand==ON) {
            if(tDownstairsLights==null) {
                // first ON command, so create a timer to turn the light off again
                tDownstairsLights = createTimer(now.plusSeconds(300)) [|
                    sendCommand(Toggle_2, OFF)
                ]
            } else {
                // subsequent ON command, so reschedule the existing timer
                tDownstairsLights.reschedule(now.plusSeconds(1))
            }

        } else if(receivedCommand==OFF) {
            // remove any previously scheduled timer
            if(tDownstairsLights!=null) {
                tDownstairsLights.cancel
                tDownstairsLights
    = null
            }    
        
    }
    end

     

     

    Seems to have helped

    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...