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

strange VD error + error line is dumb


Question

Posted

Hi!

 

my VD works without any problems. but today....

 

Please login or register to see this image.

 

 

RUKWgN6lVs.png

 

wut?!

 

OK! I have added space char in the editor (dummy modify) 

and save

7LGHvlVdJB.png

 

no error.

VD work properly again.

 

Wait, I'm sorry, what's going on?!!!!!! @#%*&*&%!

 

 

2 answers to this question

Recommended Posts

  • 0
Posted

Hi @10der

The error would seem to suggest that when it read the value for the lamp, it read nil. Could the device have been plugged out or just went dead for a few minutes.

I think that adding the space didn't fix the issue but just saved the vd again and it worked

 

You try and trap the condition  if you're interested

Put a check for the value (nil, 0 or 1) before you  try and compare it and break if it's nil but message that it was read as nil and not 1 or 0 as you would expect...

I have seen this but the device stays dead until I resolve...

what type of device is it ?

  • 0
  • Inquirer
  • Posted (edited)
    1 hour ago, AutoFrank said:

    Hi @10der

    what type of device is it ?

    1

     

    China dimmer :) 

    0WuqXybgPA.png

     

    btw, It is good programming practice to always check for null pointers... but it' not solve the issue. AFAIK VD main loop always start as new LUA script isn't it? so when I am trying to run VD manually [Debug] button - I was rcvd same error.... while I not re-create VD via re-saving... my question why.

    I not sure what my China dimmer was "dead" but after re-saving VD - unexpectedly come to life :)

    Edited by 10der

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