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


  • 0

Scene turn on/off light coming/leaving home?


Question

Posted

Hi,

Need some help with this

Trying to get my light to turn on when I coming home and turn off when I'm leaving, and my scenes doesn't work 100%.

I'm using Fibaro motion/lux sensor and door sensor.

LUX_HALL = lux sensor

MK_YTTERD = door sensor

RD_HALL = motion sensor

 

Thanks

 

 

Please login or register to see this attachment.

Please login or register to see this attachment.

12 answers to this question

Recommended Posts

  • 0
Posted

What do you mean with “not working 100 %”? So it work sometimes?

 

I would guess that it is your motion sensor plays a trick on you. If the door is not opened the same time as the motion sensor see you, the if-then statement is false. The reason is, that the motion sensor has a short time after detection of movement before it can detect movement again. This saves power So the battery is not drained to quickly.

 

Look at the devise’s template. How long is the latency time? Is it long enough for you to open and close the door before motion is detected again? The lower it a bit.

 

  • 0
  • Inquirer
  • Posted
    12 minutes ago, Thomasn said:

    What do you mean with “not working 100 %”? So it work sometimes?

     

    I would guess that it is your motion sensor plays a trick on you. If the door is not opened the same time as the motion sensor see you, the if-then statement is false. The reason is, that the motion sensor has a short time after detection of movement before it can detect movement again. This saves power So the battery is not drained to quickly.

     

    Look at the devise’s template. How long is the latency time? Is it long enough for you to open and close the door before motion is detected again? The lower it a bit.

     

     

    When I coming home it turn on the light, but if I then leave after some time it doesn't turn off the light.

    But if I manually turn on the light and then leave after some time it will turn off the light. 

     

    What parameter should I try to lower? ;(

    I have set/lower the parameter 1 t = 10 and 6 = 10 (don't know I you talking about other parameters)

     

    • 0
    Posted (edited)

    my question is: why you use "breached" state in both scenes?

    sorry, but your logic is not clear to me!

    When you

    enter: 

    1) MK_YTTERD = breached

    2) RD_HALL = breached

    3) LUX_HALL = 0%

    ...............................

    turn light on

    LUX_HALL from 0% to 100% (for example. at random)

    ...............................

    leave:

    1) RD_HALL = breached

    2) MK_YTTERD = breached

    3) LUX_HALL = 100%

    ...............................

    now we want to turn off a light, right, yeah?

    so

     

    if LUX_HALL == 0% then

      if MK_YTTERD  == breached then

        if RD_HALL == breached then

           -- Yay!

          turn light on

        end

     end

    end

     

    if LUX_HALL == 100% then

      if MK_YTTERD  == breached then

        if RD_HALL == breached then

           -- Yay!

          turn light off

        end

     end

    end

     

    another way (I have asked you about breached in both scenes)

    we can check after MK_YTTERD == breached RD_HALL is NOT (safe) breached == 60 sec then  turn light  off

     

    if LUX_HALL == 100% then -- light still ON

      if MK_YTTERD  == breached then -- you closed the door

        if RD_HALL == safe 60 sec then -- no motion here.. at the least 1 min

           -- Yay!

          turn light off

        end

     end

    end

     

    Edited by 10der
    • 0
  • Inquirer
  • Posted

    @10der

    Sorry for my ignorance.

    I have no good answer why I using "breached" in my scenes, I just used that and it almost worked....

    Your suggestions, is that LUA or ?

     

    • 0
    Posted

    no suggestions from my side. :) 

    my code above not LUA code. :) 

    I am just trying to write block schemas for clearing understanding process. 

    you can use "blocks" and you can use LUA. Whatever!

    • 0
  • Inquirer
  • Posted

    @10der and everyone..

    Ok I understand ;)

    Still can't get the leave scene to turn lights off, have tried with the

    LUX is more than 20

    MK_ Breached

    RD_ Safe 60 s

    then

    turn light off

     

    So still I like to have some suggestions on a scene for leaving..

    I'm total nOOb on LUA so there I need some script that I can play with and figure what values to changes to get it to work....

     

    • 0
    Posted

    I can trying to help you to  build fibaro scenes blocks tonight after works. Kk 

    • 0
  • Inquirer
  • Posted

    @10der

    I appreciate it.

    • 0
    Posted

    Kindly advise how to turn on and off lights when the front door is open. I want the lights on when the door is open and off when closed. I am using Aeotec door sensor and Fibaro single switch for this purpose. Currently I have the lights turn on when the doors are open however I am not able to turn off the lights. 

    • 0
    Posted

    Hi @texan have you considered using geo location services?

     

    I have a variety of scenes that get triggered when I arrive or leave home, they work with all the family too.

     

    Have a look at my website for more info

    Please login or register to see this link.

     

    Ian

    • 0
    Posted
    10 hours ago, njhifi said:

    Kindly advise how to turn on and off lights when the front door is open. I want the lights on when the door is open and off when closed. I am using Aeotec door sensor and Fibaro single switch for this purpose. Currently I have the lights turn on when the doors are open however I am not able to turn off the lights. 

    you could create a seperate scene that checks the status of the door every one or two seconds, and when the door status changes to closed, it activates that seperate scene

    • 0
    Posted

    Yes I have created 2 separate scenes. Scene 1 turns the lights on when the door is open and scene 2 the light switches off  with a 1 minute delay. I couldn't get the lights go off instantly. But the delay is fine. I am now struggling with Fibaro double switch. I have set up the switch correctly and can also independently turn off/on my Fan and light connect to S1 and S2 respectively. I am not able to integrate these with Alexa for some reason. I have enables the Fibaro smart home skill set in Alexa . Named the room as living also gave a verbal command starting Alexa tell fibaro to turn on the fan in the living room however there seem to be a problem it just wont  work or may be I am doing something wrong    

    Join the conversation

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

    Guest
    Answer this question...

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