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

Scene crashes periodically


Question

Posted (edited)

I have a scene that crashes regularly at random times.

The scene is the following:

 

Please login or register to see this code.

the scene randomly crashes with this as output:

 

Please login or register to see this code.

You can see here it crashed multiple times, because I have another scene that checkes if this scene is running and restartes the scene.

I am certain that my scene does not contain strange characters.

 

Edited by redsave

Recommended Posts

  • 0
  • Inquirer
  • Posted

    This scene crashed aswell:

     

    Please login or register to see this code.

    Please login or register to see this code.

     

    • 0
    Posted
    1 hour ago, redsave said:

    I have a scene that crashes regularly at random times.

    The scene is the following:

     

     

    Hi @redsave,

     

    First try to reboot HC. If that doesn't help then delete scene and recreate it. 

     

    But I'm curious why this scene is endlessly looping and executing every second when can be triggered by sceneActivation? Something like this:

    Please login or register to see this code.

     

    • 0
  • Inquirer
  • Posted
    1 minute ago, Sankotronic said:

     

    But I'm curious why this scene is endlessly looping and executing every second when can be triggered by sceneActivation?

     

     

    Because if the alarm is running then the scene cannot start (I can only prevent the alarm from stop the scene, I can't run the scene with sceneActivation. By the way, oh Fibaro why you do this?).

    With this trick I can use a remote control to disarm the alarm, using SceneActivation, even if the alarm is running.

    • 0
    Posted

    So ticking option Do not allow alarm to stop scene while alarm is running doesn't help?

    • 0
  • Inquirer
  • Posted
    Just now, Sankotronic said:

    So ticking option Do not allow alarm to stop scene while alarm is running doesn't help?

     

    The last time I tried to run this scene, during alarm, using the SceneActivation trigger it failed to run even with that ticked. I don't know if something changed in the meanwhile. Maybe I'll try again.

    4 minutes ago, Sankotronic said:

    So ticking option Do not allow alarm to stop scene while alarm is running doesn't help?

     

    to be clear: the tick works, so this scene is not stopped by the alarm. But if the alarm runs before the scene starts, the scene is not starting when pressing a button of the remote control.

    • 0
    Posted
    3 minutes ago, redsave said:

     

    The last time I tried to run this scene, during alarm, using the SceneActivation trigger it failed to run even with that ticked. I don't know if something changed in the meanwhile. Maybe I'll try again.

     

    I have to check that too. I didn't use alarm for some time, but I have one scene that is triggered when alarm is breached and that scene sends push and e-mail notifications and also popup notification with two buttons of which one runs scene to disarm alarm and looks like this:

    Please login or register to see this attachment.

     

    That was working splendid. 

    • 0
  • Inquirer
  • Posted
    1 minute ago, Sankotronic said:

    That was working splendid. 

     

    Yes from phone it works pretty well, but I have two elderly persons at home and even the remote control with 4 buttons is kinda difficult to use for them, let alone the smartphone :)  So I'm forced to use this trick.

    • 0
    Posted
    29 minutes ago, redsave said:

     

    Yes from phone it works pretty well, but I have two elderly persons at home and even the remote control with 4 buttons is kinda difficult to use for them, let alone the smartphone :)  So I'm forced to use this trick.

     

    I will upgrade my alarm system with new scenes and VDs and when I do that will share here.

     

    Regarding that error in scenes, I had them just few times since I have only one scene looping endlessly and then rebooting HC helped and once I just restarted scene. This is interesting error but for now there is no any explanation why is happening occasionally.

    • 0
    Posted (edited)

    Regardless if this is the best way or not I can see no reason for the error getting thrown.  

     

    Only thing I can think to try. Change language? see if this is odd to your language setting?

     

    unless you are managing to abort a scene with setTimeout active. I have seen that cause issues.

    Edited by robmac
    • 0
  • Inquirer
  • Posted
    Just now, robmac said:

    Only thing I can think to try. Change language? see if this is odd to your language setting?

     

    I only use Fibaro in English.

    • 0
    Posted

    that rules that out

    • 0
  • Inquirer
  • Posted
    7 minutes ago, robmac said:

    unless you are managing to abort a scene with setTimeout active. I have seen that cause issues.

     

    No abort, this scene should run endlessly and it's not triggered by something.

    • 0
    Posted (edited)

    can see that..

     

    mad ideas

    1. another global variable name or contents has a bad char and fibrao code hits this when accessing your global vaiables used in this code
    2. another property has a bad value and even though you are not accessing it fibaro code hits it

     

    use the api to pull the json and see if you can spot anything

     

    Please login or register to see this link.

    /docs/#!/globalVariables/getGVariables

    http://

    Please login or register to see this link.

    /docs/#!/scenes/getScenes

     

    Edited by robmac
    • 0
  • Inquirer
  • Posted
    3 minutes ago, robmac said:

    Please login or register to see this link.

    /docs/#!/globalVariables/getGVariables

     

    tried this, no issues here.

    • 0
    Posted
    23 minutes ago, Sankotronic said:

     

    I will upgrade my alarm system with new scenes and VDs and when I do that will share here.

     

    Regarding that error in scenes, I had them just few times since I have only one scene looping endlessly and then rebooting HC helped and once I just restarted scene. This is interesting error but for now there is no any explanation why is happening occasionally.

    I just twigged that my fibaro button scene activation was not able to run with the alarm on, some poor person just came into my house and set the alarm off, only to find my "hidden" fibaro button disarm wasn't working! ;)

    when you use "Magic" to create scene activations on the button, it hides the actual SCENE it creates, I unhid it and ticked the box.. all is well now..

     

    look forward to a slightly better version when @Sankotronic gets a few hours free!

    • 0
  • Inquirer
  • Posted (edited)
    4 minutes ago, shaunfrost said:

    I just twigged that my fibaro button scene activation was not able to run with the alarm on, some poor person just came into my house and set the alarm off, only to find my "hidden" fibaro button disarm wasn't working! ;)

    when you use "Magic" to create scene activations on the button, it hides the actual SCENE it creates, I unhid it and ticked the box.. all is well now..

     

    look forward to a slightly better version when @Sankotronic gets a few hours free!

     

     

     So are you able to run the scene using SceneActivation if alarm is running after ticking the box?

    Edited by redsave
    • 0
    Posted
    2 minutes ago, redsave said:

     

     

     So you are able to run the scene using SceneActivation after ticking the box?

    yep.. now when the Fibaro Alarm goes off, it runs scenes to set sirens off, and push messages out, and if I activate the disarm with fibaro button it shuts up :)

    tried and tested... I just didn't realise when creating the button presses it was secretly making little hidden scenes...

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    • 0
  • Inquirer
  • Posted
    Just now, shaunfrost said:

    yep.. now when the Fibaro Alarm goes off, it runs scenes to set sirens off, and push messages out, and if I activate the disarm with fibaro button it shuts up :)

    tried and tested...

     

    well, great news! I will try this. Maybe they "fixed" something when they produced The Button...

     

    Quote

    I just didn't realise when creating the button presses it was secretly making little hidden scenes...

     

    It's the same when you are creating a block scene, "under the hood" is always a Lua Scene!

    • 0
    Posted
    3 minutes ago, shaunfrost said:

    look forward to a slightly better version when @Sankotronic gets a few hours free!

     

    [TEASER] I'm busy like hell! At the moment making wonders with Weather status VD and scene (with or without Netatmo weather station(s) and one or multiple places) :) 

    • 0
    Posted

    The topic has been moved from "

    Please login or register to see this link.

    " to "

    Please login or register to see this link.

    ".

     

    Temat został przeniesiony z "

    Please login or register to see this link.

    " do "

    Please login or register to see this link.

    ".

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