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 not starting


Question

Posted

Hi all,

 

So i managed to finally go over from HC2 to HC3 and i have started to copy some scenes into block programming (Just to see that its working and then go over to Lua when i see how the syntax differs)

I have a "checkPresentState" scene that should run every 10 minutes to see if a number of sensors hasnt been breached (within an hour) and if so i set the Profile to Away but it doesnt seem to trigger at all.

If i trigger it manually, it all works as expected.

 

I added this yesterday:

Please login or register to see this image.

/monthly_2025_09/image.png.f684fa3567aa893c22d539df90b21281.png" />

 

Which i thought should work (From 15:10 it should trigger the scene every 10 minutes) but it doesnt..

 

Have i missed something?

12 answers to this question

Recommended Posts

  • 0
Posted

Works just fine... could e you have more conditions that prevent the trigger?

Do you use "ALL OF THESE ARE TRUE"? try "ANY OF THESE ARE TRUE"

  • 0
  • Inquirer
  • Posted (edited)

    Hi Cag014,

     

    Yes, i use alot of sensors that needs to Not been breached within an hour and also that Profile must be "Home".

     

    Beginning of the scene:

     

    Please login or register to see this image.

    /monthly_2025_09/image.png.cfe80b03fc6189acdf0825c174d69bc9.png" />

     

     

    And at the end:

     

    image.png.4828319f65acfded8b51f83965d2c12e.png

     

    And as soon as i trigger it manually, it works as expected..

    I can also see in the History that its not run every 10 minutes..

     

    BR

     

    EDITED:

     

    Since i want all sensors to not been breach within an hour, i didnt use "OR"

    Edited by 747
    • 0
  • Inquirer
  • Posted

    Yes, if no movement has been triggered for 1 hour at home, i set the state to away in order to do other things (Like "arming" outdoor cameras so if movement has been detected outside, it will send photos if im away, etc)

     

    I did however, first adding all sensors to the scene, and after that i added the 10 minutes trigger block, maybe i should re-create the scene and add the 10min trigger first, then add all sensors but i thought it would work anyways?

     

    It worked great in HC2..

     

    BR

    • 0
    Posted

    Looks like you are correct, once have added sensors it doesn't work...

    Probably a bug... contact service

    Meanwhile create a lua scene with time interval condition and check the sensor by yourself.

    • 0
    Posted (edited)

    By the way, may I suggest using

    Please login or register to see this link.

    Just one line and you are set.

     

    Edited by cag014
    • 0
  • Inquirer
  • Posted

    Thanks cag01!

     

    Ill look into the All-in-one scene.

     

    BR

    • 0
  • Inquirer
  • Posted

    Hi cag014,

     

    I must say that your All-in-one-QA is fantastic!

    I have started porting pretty much everything to this instead of using separate scenes.

     

    Right now im reading your "how-to" which is also great, but i realize i need to study it for some time :)

    If i read correctly, i could still use my old HC for some of my VDs, which populates Global Variables on the HC2, but then just call these from the HC3 instead?

     

    BR

    • Thanks 1
    • 0
    Posted (edited)
    On 9/29/2025 at 11:36 AM, 747 said:

    If i read correctly, i could still use my old HC for some of my VDs, which populates Global Variables on the HC2, but then just call these from the HC3 instead?

    Yes, you can do it

    define your hc2 as a slave. for example

    jSlave= {
    hc2={user="xxxxx",passwd="xxx",ip="10.0.1.69",alarmPin=1111,slaveApiTime=1500},
    }

     

    now any global or device could be controlled/monitored by adding suffix "'hc2"

    HC2 global name of "Test" could be used as "&Test'hc2

    HC2 device 400 could be used "400'hc2"

    you can define a n alias for HC2 devices also in JS2n table

    light="400'hc2" use as all other devices in jM line "`light`"

     

    Edited by cag014
    • 0
  • Inquirer
  • Posted

    Thanks cag014!

    • 0
  • Inquirer
  • Posted

    Hi again cag014..

     

    I tried the following, but i must have misunderstood some parts:

     

    js2n={
        hc2IncreaseTemp="&MCIncreaseTemp'hc2","getGlobal",
    And then in the JM:
    (example)
    jM={
    {"`hc2IncreaseTemp`",{value>0, trueAct={"turnOnSwitch{value} nbr of times etc"}}},
    But it seems not to like the "value" part:
    [2025-09-30] [14:05:58] [ERROR] [AOQ3694]:  [30 Sep 14:05:58] AOQ369420.7 jM hash table:1:~: {0, "`hc2IncreaseTemp`"...}
    {0,"&MCIncreaseTemp'hc2",{"value"="0","falseAct"...

    (20) Unrecognized action/criteria table "value'
     
    BR
    Jimmie
    • 0
    Posted (edited)
    12 hours ago, 747 said:

    Hi again cag014..

     

    I tried the following, but i must have misunderstood some parts:

     

    js2n={
        hc2IncreaseTemp="&MCIncreaseTemp'hc2","getGlobal",
    And then in the JM:
    (example)
    jM={
    {"`hc2IncreaseTemp`",{value>0, trueAct={"turnOnSwitch{value} nbr of times etc"}}},
    But it seems not to like the "value" part:
    [2025-09-30] [14:05:58] [ERROR] [AOQ3694]:  [30 Sep 14:05:58] AOQ369420.7 jM hash table:1:~: {0, "`hc2IncreaseTemp`"...}
    {0,"&MCIncreaseTemp'hc2",{"value"="0","falseAct"...

    (20) Unrecognized action/criteria table "value'
     
    BR
    Jimmie

    you are missing state definition. Instead, value>0 

    {"`hc2IncreaseTemp`",{state="value>0", trueAct={"turnOnSwitch{value} nbr of times etc"}}},

    by default, if no property defined AOQ assumes it is "value", so you can skip the value statement

    {"`hc2IncreaseTemp`",{state=">0", trueAct={"turnOnSwitch{value} nbr of times etc"}}},

     

    It works in both cases...

     

    Edited by cag014
    • Like 1
    • 0
  • Inquirer
  • Posted

    Thanks again cag014!

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