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

Question
robmac 173
Hi all developers and @fibaro,
I think there might be an issue with setTimeout. If you get random scene stopping and use this call I suggest you try removing it.
I have tried to use it in the past in scenes and always suspected an issue with long running scene dying at random times a while after it was called one or more times. Remove the calls to setTimeout and normal service resumes with scenes running for months without issue.
Not sure if the setTimeout in scenes shares the same code with plugins but now I am working on plugins I am seeing the same issue. I have the debugger running and I have seen a fault that I think occurs only after this function was called. Also close of the plugin after a time left working. I can not be sure but this does seem to be the puppy by the pile of ****.
As most of the fibaro plugins use this call to remake closed net connections this may also cause unreliability of fibaro plugins with them dying at random times.
As I do not have all of the source, I cannot dig deeper and have not wasted too much time looking through logs as I think I can avoid use of the function.
If you are a scene developer and get random stops of scenes that should run for a long time or a plugin developer and get random stops of your plugin, I would suggest you look at any call to setTimeout.
Would love to have your test results and if @fibaro plugin developers could have a look it might explain the unreliability of some of the fibaro plugins.
Cheers,
Robert
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.