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


HC3 multiple outcome depending on conditions in a LUA scene


Forall

Recommended Posts

Hi, i have a question that i could have done in HC2 but now with the new LUA setup i get lost on the HC3

 

The scene i am trying to create is started by double clicking on the dimmer and then starts turning of some lights

 

{
  conditions = { {
      id = 473,
      isTrigger = true,
      operator = "==",
      property = "sceneActivationEvent",
      type = "device",
      value = 14
    } },
  operator = "all"
}
 
fibaro.call({[1] = 416, [2] = 417, [3] = 461, [4] = 464, [5] = 474, [6] = 489, [7] = 448, [8] = 561, [9] = 425, [10] = 467, [11] = 422, [12] = 426, [13] = 468, [14] = 490, [15] = 443, [16] = 217, [17] = 465, [18] = 418, [19] = 566, }, 'turnOff')
 
then it is where it starts to get complicated thereafter i have some led driven downlights and therefore to turn them off need to chek if they are on and then "turn them on again" to turn them off. 
 
so to say if variabel "rooma" (power measeurement) is "on" then turn on Rooma (led push signal) 
then do the same for room b, c, d. 
finaly i wish to pull Room a,b,c,d power measurements agian to make sure thy now are 0. 
 
I think i have seen solutions on how to incorporate if then in the action part of the lua code but cant find that again. 
 
Best regards,
Daniel
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
Reply to this topic...

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