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!



Smart Home Forum by FIBARO Team

  • 0

Scene in a scene does not work



Hey All,

I created a "scene A" light on and after 10" licht off via a wall plug, this scene works fine.

Now I create "scene B" as follows: If KeyFob "button 2 press hold" then "scene A". This "scene B" does not work. What is wrong, anyone an idea? To activate a scene from an other scene must be possible isn'it?

Thx for your replies.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

try the following:-


  • sceneID: The number of the scene which is to be started.
Link to comment
Share on other sites

  • 0
  • Inquirer
  • The command startScene is written down in the script. See LUA script hereafter with KeyFob button 1:

    Please login or register to see this image.

    /monthly_2018_04/SciptLUA.jpg.3bc70883d71dc7383680d8c65e180a88.jpg" alt="SciptLUA.jpg.3bc70883d71dc7383680d8c65e180a88.jpg" />

    Link to comment
    Share on other sites

    • 0

    I have a similar setup like you want to implement. My code is working. Difference with yours is that I have

    if (
        -- Perform action on RC click
        startSource["type"] == "event"
        startSource["type"] == "other"


    So I do not have you AND clause.....



    Link to comment
    Share on other sites

    • 0

    I don't really understand why You nreed the "if" part.


    What are the ways to run the scene?
    I can see 2 options:
    1. hold the button

    2. start scene manually.

    And both options olways return true i the "if".


    So the code should be (it changes nothing in fuctionality, if I didn't miss some "if" params):

    Please login or register to see this code.

    (don't trust it, there might be some misspellings) - OK... this was out of scope of question...


    You need some debuging.
    First of all chack of the scene B runs. Just write: "print('works')", and check the result in debug window.
    Check if fibaro:startScene(56) starts when it's at the begigng of code, before any "if" statement.

    Print the values of variables in "if".
    Print inside the if some debug, ie: print("i'm inside");


    I'm new to LUA, but I'm programming in other languages for 10+ years, and that's the thing I always do in sitiuation where I can see no problem in code but something's not working.

    Edited by pogo
    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.

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