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

How doI stop a scene?


Guest jschun

Question

Guest jschun

Okay, I start a scene with:

Please login or register to see this code.

But how do I stop a scene? I tried:

Please login or register to see this code.

But I keep getting: "Attempt to call method 'killScene'(a nill value)"

Also tried endScene and stopScene, with same result ...

Anyone?

Please login or register to see this image.

/emoticons/default_sad.png" alt=":(" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

  • 0

also

fibaro:killScenes( 12)

the docs are correct in this case... yes an extra s on this one

Link to comment
Share on other sites

  • 0

jschun, Shad, You can play with LUA Editor in the HC2 Toolkit

Please login or register to see this image.

/emoticons/default_icon_wink.gif" alt=";-)" /> all methods available in Fibaro namespace are exposed... Soon there will be examples in IntelliSense tooltip for all Fibaro methods.

json.* and net.* namespace will also be implemented. A documentation is also in progress...

Regards.

Please login or register to see this attachment.

Link to comment
Share on other sites

  • 0

I know krikroff, but not everybody know your tool

Please login or register to see this image.

/emoticons/default_wink.png" alt=";)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />.

Link to comment
Share on other sites

  • 0

Hope fibaro are making the requisite

Please login or register to see this link.

Are you testing them all as docs have at least one error?

Link to comment
Share on other sites

  • 0
I know krikroff, but not everybody know your tool

Please login or register to see this image.

/emoticons/default_wink.png" alt=";)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />.
Now jschun knows

Please login or register to see this image.

/emoticons/default_icon_mrgreen.gif" alt=":mrgreen:" />
Link to comment
Share on other sites

  • 0
Guest jschun
  • Inquirer
  • LOL!! thanks guys ッ ... an extra S was all it took ... Funny thing is, I have a large S on my chest, but still I didn't think of it ړײ

    Thanks again!

    Link to comment
    Share on other sites

    • 0
    LOL!! thanks guys ッ ... an extra S was all it took ... Funny thing is, I have a large S on my chest, but still I didn't think of it ړײ

    Thanks again!

    Not long after I posted that response, I wrote a piece of code with startScenes(id)

    Please login or register to see this image.

    /emoticons/default_laugh.png" alt=":lol:" />

    That editor in the toolkit will save a lot of time.

    Brilliant work by Krikroff

    Link to comment
    Share on other sites

    • 0

    Is it possible to get the scene status (enabled or disabled) using Lua? I would like to make a single on/off button in a virtual device. So the main loop has to check the status and change the label accordingly, and the one button has to enable it when disabled and vice versa. Would be nice

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    Link to comment
    Share on other sites

    • 0

    rb338,

    you can use

    Please login or register to see this code.

    , checks if the scene with a given sceneID is active, but isn't the same as

    Please login or register to see this code.

    (count instance of the scene)

    Please login or register to see this code.

    Link to comment
    Share on other sites

    • 0
    Guest jschun
  • Inquirer
  • I tried this command in a small script (see below), to restart scenes that are not running (but should). But after some testing I found that this command only checks the 'Active Scene' on/off status (like the checkbox in the first Tab of each Scene).

    I hoped that it would show if the scene was running or not. Is there a command for that?

    p.s. I'm an OSX user, so the toolkit is not (yet??) available for me

    Please login or register to see this image.

    /emoticons/default_sad.png" alt=":(" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    Please login or register to see this code.

    Link to comment
    Share on other sites

    • 0
    I tried this command in a small script (see below), to restart scenes that are not running (but should). But after some testing I found that this command only checks the 'Active Scene' on/off status (like the checkbox in the first Tab of each Scene).

    I hoped that it would show if the scene was running or not. Is there a command for that?

    p.s. I'm an OSX user, so the toolkit is not (yet??) available for me

    Please login or register to see this image.

    /emoticons/default_sad.png" alt=":(" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    Please login or register to see this code.

    For the toolkit you could use Virtual machine "Parallels Desktop", work very well for members of the forums...

    as I said in my previous post, whether a scene is in execution you need to use "fibaro: countScenes(sceneID)", if return true then your scene is running

    Please login or register to see this image.

    /emoticons/default_icon_wink.gif" alt=";-)" />

    First, check if your scene is enabled, check if your scene is running, decide what action....

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