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

I want this scene to run only once per day


Question

Posted

Can someone tell me what I've done wrong with this scene and if it is possible to get it to do what I want?

The scene is supposed to run once in the morning. It is supposed to turn off everything in my bedroom when the landing PIR is triggered and turn on various devices downstairs, which it does, but it seems to keep running the scene every time the landing PIR is triggered, so if I turn off the Sonos speaker in the kitchen (which had come on correctly initially), then if the landing PIR is triggered again, it starts up the Sonos again, same for any lights I turn off.

Any ideas.

Please login or register to see this attachment.

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

1) add: setGlobal Action: Set Variable RUNNED = 1

2) add above IF Global Value is RUNNED == 0 THEN you actions

3) create new block scene with time period out of 6AM - 11 AM - SET global value = 0

 

:)

Edited by 10der
  • 1
Posted
3 hours ago, 10der said:

1) add: setGlobal Action: Set Variable RUNNED = 1

2) add above IF Global Value is RUNNED == 0 THEN you actions

3) create new block scene with time period out of 6AM - 11 AM - SET global value = 0

 

:)

And a block scene setting the variable RUNNED to "1" from 11AM to 6AM..... I suppose :-)

  • 0
  • Inquirer
  • Posted

    Like this?

    I created the global variable HasRun=0 and added an (IF #HasRun=0 THEN) before the list of actions in the scene and added at the end of the scene #HasRun=1

    Then created another block scene to reset the HasRun, so that at midday it sets HasRun to 0 ready for the next morning.

    See attachment for my changes to the original scene as per what I understood your suggestions to mean.

     

    Please login or register to see this attachment.

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