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


Recommended Posts

Posted

Hi there

 

 

I get after a few days always this error on  a scene

[DEBUG] 18:48:30: 2021-04-08 18:48:30.432433 [ error] API: Host not found (authoritative)
[DEBUG] 18:48:35: 2021-04-08 18:48:35.437767 [ error] API: Host not found (authoritative)
[DEBUG] 18:48:35: 2021-04-08 18:48:35.439204 [ fatal] Unknown exception: /opt/fibaro/scenes/414.lua:45: attempt to compare number with nil

 

 

Is this a bug , here is my scene , was working before without problem ,  is there a possibility to fix it

 

 

Please login or register to see this code.

 

Posted

 

  • Topic Author
  • Posted

    Thanks for the reply

     

    So if I understand correctly I should load the global variable into a local one ?

     

    But is this a bug or working as designed I don't really understand why this happens

  • Topic Author
  • Posted

    And in the while loop I added already the variable in local

     

    Please login or register to see this code.

    Posted

    Well AFAIK in my house it rarely happens because my internet (both WAN and LAN) are very, very reliable. The issue gets posted by users who have full or partial loss of the "internet" side of their router. I cannot confirm or deny the issue.

     

    To me it seems like increasing the reliability of your internet would give best and fastest results...

     

    On the other hand, for long running scenes or Virtual Devices or Quick Apps on HC3 to get the most reliable and stable performance it is best to add error checking and handling. I mean "error" in a broad way like API returning "nil" and json decode crashing due to invalid data you get from external servers and so on.

     

    If you only have a few scenes or CDs that are affected by then try "pcall"

     

    Please login or register to see this link.

     

    This won't *fix* the problem but might allow you to "keep stuff running".

     

  • Topic Author
  • Posted

    Hmm strange I have a very reliable internet conenction , Fibaro HC2 is connected Directly to my Unifi Dream Machine Pro.

    Fiber Internet connection

     

     

     

     

     

    Posted

    Here's what I would do. If that Unifi has logs (about connect/disconnect events for example) or keeps stats (like interface events and errors) - maybe you can correlate with those Lua errors. If that does not help, contact [email protected] so they can have a look at the internal log files of your HC2. You might have found a new issue but I doubt it because this 4.610 has been around for a while now.

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