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

Question

Posted

Hi, 

I am trying the simpliest thing here - change the variable "presence state" when there is no motion on any motion sensor AND the sleep state is Awake. I did it by block scenes, worked for 3 days then it stopped.

Then I tried it with simple LUA, and it works for few days, it even debug nicely and the it stopped.

 

Can you guys just have a look at this?

 

Please login or register to see this code.

 

4 answers to this question

Recommended Posts

  • 0
Posted

The topic has been moved from "

Please login or register to see this link.

" to "

Please login or register to see this link.

".

 

Temat został przeniesiony z "

Please login or register to see this link.

" do "

Please login or register to see this link.

".

  • 0
Posted

Hi @HomeSystem.sk,

 

If I do this then I would make scene that is triggered every minute with Main scene FTBE and then loop through all motion sensors for last breach time, if they are all not breached for last defined time then I also check if SleepState is Awake and that CinemaState is off and if all that counts then set PresentState to Away.

  • 0
  • Inquirer
  • Posted (edited)
    2 hours ago, Sankotronic said:

    Hi @HomeSystem.sk,

     

    If I do this then I would make scene that is triggered every minute with Main scene FTBE and then loop through all motion sensors for last breach time, if they are all not breached for last defined time then I also check if SleepState is Awake and that CinemaState is off and if all that counts then set PresentState to Away.

    Hi,

     

    thanks for the info. So you mean, I make one scene, that will basically triger this scene I already have here every minute? So there will be 2 scenes:

     

    1 - every minute THEN start the scene Check away mode

    2 - If any of the motions are safe for 1800s AND "awake" THEN set away? (probably almost the same as above only without the autostart and the "others" trigger right?)

     

    Actually if there is any easier other way to do it with motion sensors then I would apreciate showing it to me :D

    Edited by HomeSystem.sk
    • 0
    Posted

    Hi @HomeSystem.sk,

     

    you can try to use this approach:

    I'm not at home at the moment so I can't write code and test it for you but just throwing some ideas how this can be done different way with much less coding. Even my first suggestion is different than your present code but it seems that I failed to explain it properly. 

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