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

Simple scene - Cannot check variable value with condition HC3 Lite


Question

Posted

I have a variable (Settings - General - Variable). In one scene, I set a value, and in another scene, I check if the variable has a certain value. However, it seems that the condition is always true, even if I set it to false or check for the opposite. In the screenshot example, I always get a push notification.

What i am missing ?

Thanks

 

 

Please login or register to see this attachment.

Please login or register to see this attachment.

10 answers to this question

Recommended Posts

  • 0
Posted

You don't seem to have a trigger for your blockscene. Do you test it with a manual push on the run button?

  • 0
  • Inquirer
  • Posted

    This is only a test scene that I run using the run button, but I have another similar scene where I use these variables the same way. This scene is run from another scene, but the behaviour is the same (sadly).

    • 0
    Posted

    If you run it manually (or trigger it from another scene), it doesn’t uses the conditions.

     

    • 0
  • Inquirer
  • Posted

    Why is that ? So where or when can i use these variables and conditions ? 

    • 0
    Posted

    If you say run, it runs, without hesitation 😁

     

    The conditions works fine within the scene. Just let the scene do its work. 

     

    Maybe explain to us what you want to achieve. 

    • 0
  • Inquirer
  • Posted

    So in short:

    I have scene that runs some siren sounds, it is triggered by KeyFob, so left side (declaration) scene keyfob , right side (action) scene siren sound.

    But if condition is met (variable has some value) i want play another different sound.

     

    It cannot be done within one scene, there is no place to another declaration(conditions) in action right side (i don't want to complicate it with lua code, seems to me that to this simple think must be some easy way to do it) so i tried from action scene run another scene which i mentioned in previous posts.

    • 0
    Posted

    Indeed, one Lua scene would be easy to solve it.
     

    With two blockscenes it should work. Conditions are keyfob and variable and action is the sirene. Difference between the two blockscenes is the variable value and the sirene sound. 
     

    If I understood you correctly. 

    • 0
  • Inquirer
  • Posted

    Aha, so i have to create two similar scenes where keyfob is trigger with variable value1 and another copy scene with variable value2 which play different sound, and it cannot be done by triggering another scene from action with simple condition check.

    • 0
    Posted

    Maybe there are different ways with a set of blockscenes. But I don’t think you can do it with less than two. 
     

    You could try to make a Lua scene from one of the blockscenes and add a condition in the action part to check the variable and play one of the two sounds. Then you can do it in one scene. 

    • 0
  • Inquirer
  • Posted

    Tested works fine with two scenes, thank you

    • Like 1

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