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

1 hour ago, jgab said:

 

So, RoomLight:on sets lastID[322]={script=true,time=1577983180}

The RoomLight:on also generates a fibaro trigger that calls trackManual.

When we enter trackManual the time is 1577983185, 5s later...?

Do you have that kind of delays?

 

If we knew that we would get the trigger back (e.g. it was declared in the header) we could wait longer and assume it is from the script...

Try this, if it works for you then I will add it to next version.

Please login or register to see this code.

 

 it works! Thanks

Link to comment
Share on other sites

  • Topic Author
  • 50 minutes ago, jompa68 said:

    got trouble to connect to NR from ZBS

    Please login or register to see this code.

    Please login or register to see this spoiler.

    Check ZBS

    Have your PC changed IP address?

    Right port? 6872

    Log the whole message in NodeRed and see if address (-413) is correct.

     

    Link to comment
    Share on other sites

    1 hour ago, jompa68 said:

    @petrkl12 in what cases are you using "ID:manual" ?

     

    ie. when I want to stop  "automatic light on/off" in rooms 

     

    Please login or register to see this code.

     

    Edited by petrkl12
    Link to comment
    Share on other sites

    30 minutes ago, jgab said:

    Check ZBS

    Have your PC changed IP address?

    Right port? 6872

    Log the whole message in NodeRed and see if address (-413) is correct.

     

    mac ip is the same as earlier, have not changed.
    Port is right, 6872

    Result from ZBS in NR

    Please login or register to see this code.

    i guess the response function for my sonosStatus missing something. Have tried different setup without success.

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

  • Topic Author
  • 1 hour ago, petrkl12 said:

     

    ie. when I want to stop  "automatic light on/off" in rooms 

     

    Please login or register to see this code.

     

     

    I would check RoomLight:manual>=0 as it :manual returns seconds since last changed manual - It works if you check with a rule trigger, as the rule is triggered the same second as you flip the switch - but just to be sure if there is a delay...

    Link to comment
    Share on other sites

    11 minutes ago, jgab said:

     

    I would check RoomLight:manual>=0 as it :manual returns seconds since last changed manual - It works if you check with a rule trigger, as the rule is triggered the same second as you flip the switch - but just to be sure if there is a delay...

     OK, Thanks

    I have corrected in my previous post.

    Link to comment
    Share on other sites

    @jgab

    the iCal scene have some error in the code. Show scheduled entry every week even when it is set to every 2 weeks. See my picture.

    Please login or register to see this spoiler.

     

    Edited by jompa68
    Link to comment
    Share on other sites

    Good morning Jan,

    v3.0 b86

    uptime 13 hours due to kitchen renovation

    version 4.570

     

    Something weird happens last night>> alarm!

    Since a few weeks we dont close "tussendeur"

    I saw that if complex is being armed the "tussendeur" is armed also since a few days  it didt do that before.

    So far no problem (in my opinion it should not being armed).

    At 4:50 HC2 discover the "tussendeur" is open>>>alarm, why it discover so late that the door is open?

    Why only last night alarm something changed?

    Jan please can you check?

    I will send the scene ,

    Thanks in advance,

    //Sjakie

    Link to comment
    Share on other sites

    Hello Jan,

    I am still obsessed by the alarm at night.

    I tried several ways to arm the complex with an open "tussendeur" and I cant reproduce the arming of that open door.

    If door is open it will tell me door disarmed and breached

    the others are armed and safe.

    If I may conclude your proposals for arming my complex and ER are functioning well!

    But question stays what is changed?

     

     

    Link to comment
    Share on other sites

    Morning Jan,

    I got this error:

    Please login or register to see this image.

    /monthly_2020_01/image.png.a58e59b6e78bae3afae918f6892df684.png" />

    Rule.eval([[trueFor(01:00,$HumidityBadStart ~= nil) =>
            $HumidityBadStart=nil]]).start() -- Reset after  n-hour

    please advice,

    //Sjakie

    Link to comment
    Share on other sites

  • Topic Author
  • 23 hours ago, Sjakie said:

    Morning Jan,

    I got this error:

    Please login or register to see this link.

    Rule.eval([[trueFor(01:00,$HumidityBadStart ~= nil) =>
            $HumidityBadStart=nil]]).start() -- Reset after  n-hour

    please advice,

    //Sjakie

     

    Ok, it's a bug - I have problem compiling expressions with nil constant in them...

    For now, just do

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

  • Topic Author
  • A small tip.

    We know that editing global variables in the variable-panel will destroy values sometime.

    You can create and delete variables in ER that will not destroy other variables.

    You can also check if the value has been destroyed (e.g set to 'NaN')

    Please login or register to see this code.

    When variables are destroyed there is no trigger generated so we can't make a rule that triggers on it e.g. $Temperature == 'NaN' => $Temperature = 20

    Link to comment
    Share on other sites

    Good morning Jan,

    Thanks! for the nil fix.

    If I implement the GV check

     

     

     

     

     

    Please login or register to see this image.

    /monthly_2020_01/image.png.0802bf667284516923b99b7c78733a64.png" />

     

    -- Check if variable is "destroyed" at startup and set it back to some default value, here '20'...
    Rule.eval("$Wasdroger == 'NaN' & $Wasdroger = Aan")
    -- Create variable - if it doesn't already exists
    Rule.eval("global(Wasdroger); true")
    -- Delete variable -- if it exists
    Rule.eval("deleteglobal(Wasdroger); true")

     

    Please advice,

    //Sjakie

    Link to comment
    Share on other sites

    Hello Jan,

    UPDATE:

    "tussendeur" is open but in HC2 its reported as closed???

    I did a Telegram message on the status of the door and this morning bingo got  no  message and status changed.

    Should replace it.

    //Sjakie

     

     

    Link to comment
    Share on other sites

  • Topic Author
  • 14 minutes ago, Sjakie said:

    Good morning Jan,

    Thanks! for the nil fix.

    If I implement the GV check

     

     

     

     

     

    Please login or register to see this link.

     

    -- Check if variable is "destroyed" at startup and set it back to some default value, here '20'...
    Rule.eval("$Wasdroger == 'NaN' & $Wasdroger = Aan")
    -- Create variable - if it doesn't already exists
    Rule.eval("global(Wasdroger); true")
    -- Delete variable -- if it exists
    Rule.eval("deleteglobal(Wasdroger); true")

     

    Please advice,

    //Sjakie

     

    You need to quote the variable names to global and deleteglobal

    global('Wasdroger')

    Link to comment
    Share on other sites

  • Topic Author
  • 7 hours ago, jgab said:

     

    Ok, it's a bug - I have problem compiling expressions with nil constant in them...

    For now, just do

    Please login or register to see this code.

     

     

    Ok, pushed vB87 with a fix so nil constants can be used again.

    Link to comment
    Share on other sites

    Hello Jan,

    I am a bit lost.

    Today the house got armed at 23:00 hour, the last months it was arming when I pushed ladertelefoonsjaak. Something different with the new build?

        Rule.eval([[once(23:00..02:00,n/03:00 & hoofdslaapkamer.ladertelefoonsjaak:isOn) =>

    Please advice,

    //Sjakie

    Link to comment
    Share on other sites

  • Topic Author
  • 6 hours ago, Sjakie said:

    Hello Jan,

    I am a bit lost.

    Today the house got armed at 23:00 hour, the last months it was arming when I pushed ladertelefoonsjaak. Something different with the new build?

        Rule.eval([[once(23:00..02:00,n/03:00 & hoofdslaapkamer.ladertelefoonsjaak:isOn) =>

    Please advice,

    //Sjakie


    no last build only affected nil constant in rules.

    Be aware that the rule will execute at 23:00 if ladertelefoonsjaak has been set to on earlier during the evening.It’s the only explanation I have why it would run at 23:00

    Link to comment
    Share on other sites

    Jan,

    thanks

    I checked it also sorry I forget to mention it " telefoonlader sjaak" was off.

    For in case I forget to switch off I get a telegram and a repeated voice message.

    Thats why its so strange.

    //Sjakie

    Link to comment
    Share on other sites

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