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


Please help with master switch scene


Recommended Posts

Hi,
Recently upgraded from HC2 to HC3 and have already spent a lot of time trying to convert a scene that was used as a master switch. I'm learning about changes in lua, but unfortunately I'm still a complete newbie )

There are several lights in the room, and the scene was implemented to turn on the lights if everything is completely off,

or turn off the whole room if at least one source is on.


Can anyone help?

 

Please login or register to see this code.

Edited by SyntezPro
Link to comment
Share on other sites

  • SyntezPro changed the title to Please help with master switch scene

I am not that good in HC2 but try to help to make the HC3 scene working.

1.) I don't exactly know what your device "24" is with which you control/try to control the scene?

2.) When does startSource["type"] = "other" trigger?

3.) Is it a physical device or how do you want to trigger the scene?

 

In HC3 you have to set the Conditions part and the Actions part in a Lua Scene.

For the conditions part you can get more information here: 

Please login or register to see this link.

Or just use a Block scene and convert it into Lua

 

I would do something like this.

The sourceTrigger.type == "user" triggers the scene when you manually start the scene.

Please login or register to see this code.

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