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 based on time AND variable


RiccardoCanetta

Question

Hi,

I am trying to build a scene that is executed only at a certain time of the day IF and only IF a GlobalVariable has value == 1 (as in attached jpg). The problem:

- if the "Triggering variable" is flagged for the GlobalVariable, then the scene is executed every time the variable is set to 1 during the day (that is, every time a specific sensor is breached, while I want it to be executed only once at 20.30, if the sensor is breached at least once during the day)

- if the "Triggering variable" is not flagged, then the scene is not executed at 20.30, even if the GlobalVariable has value =1 at that time

Any idea of what am I doing wrong? shall I just move to a LUA-based scene?

Thanks,

Riccardo

Please login or register to see this attachment.

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Check the code in LUA, this might be an error in HC software.

Which version of HC software you are using?

I have created exatly the same scene and it's working…

EDIT

check scene in LUA if the condition has the right time format:

…...string.format("%02d", currentDate.min) == "20:30"…..

Link to comment
Share on other sites

  • 0
  • Inquirer
  • Hi Richo

    when I converted to LUA I read

    Please login or register to see this code.

    so it seems correct! Any other idea of what may be wrong? I'm using 3.548

    Thanks!

    Riccardo

    Link to comment
    Share on other sites

    • 0

    rcanetta, to be sure you got option on yes "start with hc2" in that scene?

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • rcanetta, to be sure you got option on yes "start with hc2" in that scene?

    Hi, now it is checked but it could be that it wasn't before, I noticed it when I converted to LUA - let's see what happens tonight

    Please login or register to see this image.

    /emoticons/default_icon_smile.gif" alt=":-)" />

    Thanks!

    Riccardo

    Link to comment
    Share on other sites

    • 0

    How often will this scene logic be checked as i've seen some scenes run in an endless while() loop which seems wrong (to me) compared to this which is a simple If Then...

    Link to comment
    Share on other sites

    • 0

    Rcanetta, did this work for you ?

    I have a similar problem where I'm using the iPhone ping technique so the hc2 knows I'm home, then at 6am I want it to check the athome variable and activate the scene accordingly.

    I'm finding tho that when I get home anytime of the day, my bedroom light comes on

    Please login or register to see this image.

    /emoticons/default_icon_curve.gif" alt=":-/" />

    Please update

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Rcanetta, did this work for you ?

    I have a similar problem where I'm using the iPhone ping technique so the hc2 knows I'm home, then at 6am I want it to check the athome variable and activate the scene accordingly.

    I'm finding tho that when I get home anytime of the day, my bedroom light comes on

    Please login or register to see this image.

    /emoticons/default_icon_curve.gif" alt=":-/" />

    Please update

    Yes, my problem was probably the missing "start when hc2 starts" flag. Also, Check that the checkbox under "triggering variables" is NOT selected.

    Hope it helps

    R

    Link to comment
    Share on other sites

    • 0
    Yes, my problem was probably the missing "start when hc2 starts" flag. Also, Check that the checkbox under "triggering variables" is NOT selected.

    Hope it helps

    R

    Ive checked these and it hasn't cured it. the bedroom light still comes on regardless of time.

    It does work at 6 am in the morning but also reacts to the status change. i shall monitor over the weekend to see if the light comes on at 6 whilst im not there.

    [ Added: 2013-07-08, 23:09 ]

    Ok I think I've fixed it.

    Because I was using blocks to make this scene, I converted it to LUA and it still showed the variable at the start. I deleted that and now it does not come on when I come into range. It should however come on tomorrow at 6am.

    Good night

    Link to comment
    Share on other sites

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