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


Question

Posted

Hi all,

Somebody has an idea what is wrong?

Please login or register to see this attachment.

4 answers to this question

Recommended Posts

  • 0
Posted
26 minutes ago, Sjakie said:

Hi all,

Somebody has an idea what is wrong?

There is something wrong in the expression you stored in the global variable "homeTable"

The error is from json.decode (probably the 2nd line). On the HC3 error lines reported are still a bit random...

The json parser complains that here is an 'm' character as the first character in the json string stored.

Can you check what you have there?

ex. by printing it to the log console.

print(fibaro.getGlobalVariable("homeTable"))

  • 0
  • Inquirer
  • Posted

    Jan, thanks!

    Played a bit with the line in HT>>>

    [21.06.2020] [17:52:10] [DEBUG] [SCENE33]:

    should be okay,  empty is no error?

    Now it shows nothing anymore time delay is enormous again!

    3 devices 3 scenes 20 HUE

    This ist fun at all.

    Please login or register to see this attachment.

     

     

    • 0
  • Inquirer
  • Posted

    If pir = detecting motion time delay 1-4 sec Light on

    Seems to me not good.

    //Sjakie

    • 0
  • Inquirer
  • Posted

    Hehe, restore and processors act normal again.

    Jan please can you upgrade this for QA or should I do it in ER4 or something else?

    Please advice,

     

    Util.defTriggerVar("openFromOutsideDoorToilet",false)

    rule([[toilet.door:breached =>
        || toilet.pir:safe >> openFromOutsideDoorToilet=true;  log2('orange','deftrigger openFromOutsideDoorToilet true')
        || toilet.pir:breached >> openFromOutsideDoorToilet=false;  log2('orange','deftrigger openFromOutsideDoorToilet false')
            log('TRIGGER:%s',tjson(env.event))
                ]])

    rule("openFromOutsideDoorToilet==true => post(#toiletOccupied); log('TRIGGER:%s',tjson(env.event)); log1('violet','#toiletBezet - post')")
    rule("openFromOutsideDoorToilet==false => post(#toiletFree); log('TRIGGER:%s',tjson(env.event)); log1('violet','#toiletVrij - post')")

     

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