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

api calls without internet connection hang my script


Question

Posted

Hi all,

 

On my HC2 I have been running a single LUA-script (with calls to helper scripts) to manage the whole house. For energy consumption reduction I switch off devices when not needed. Therefore also my internet modem is switched off during night hours.

For several years this never gave problems until recently.

The script stopped a few minutes after modem shutdown:

Quote

[DEBUG] 01:18:35: 2024-07-26 01:18:35.399387 [error] API: Host not found (authoritative)
[DEBUG] 01:18:40: 2024-07-26 01:18:40.405255 [error] API: Host not found (authoritative)
[DEBUG] 01:18:45: 2024-07-26 01:18:45.409963 [error] API: Host not found (authoritative)
[DEBUG] 01:18:50: 2024-07-26 01:18:50.415095 [error] API: Host not found (authoritative)
[DEBUG] 01:18:55: 2024-07-26 01:18:55.419512 [error] API: Host not found (authoritative)
[DEBUG] 01:18:55: 2024-07-26 01:18:55.426891 [error] timer handler failed with error: /opt/fibaro/ scenes/47.lua:939: attempt to perform arithmetic on a nil value

To my surprise the failing call had (as far as I understand) nothing to do with the internet:

Please login or register to see this code.

 

The global variable is a json array and exists. This array may be changed by another script, therefore I check this regularly. Why is it failing now after more than a year of uninterrupted use? And where is the dependency on an internet connection?

Also a call to the weather information did not hang the script during years without nightly internet. And now suddenly it did in a similar way as above.

Please login or register to see this code.

 

Can someone shed a light on this change in behavior?

 

thanks in advance

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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