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 (edited)

Jan will copy when error's are back before I change anything. I suspect those errors shows only at the moment the rule is executed.

 

ErUpdater does't show my Eventrunner QA's again.

What did I do I restored my ER6 QA's after going back to earlier date of the HC3

Edited by Sjakie
ERUpdater
Posted

I have re-write all my rules from ER4 to ER6 and it works without any problems with super speed 😀 Thanks @jgab

 

I have only issue with Nodered. I would like to also use in ER6. How to do it?

I mean ie.

Please login or register to see this code.

 

 

  • Topic Author
  • Posted

    I

    23 minutes ago, petrkl12 said:

    I have re-write all my rules from ER4 to ER6 and it works without any problems with super speed 😀 Thanks @jgab

     

    I have only issue with Nodered. I would like to also use in ER6. How to do it?

    I mean ie.

    Please login or register to see this code.

     

     

    They are not there yet, I will port the nodered functions tomorrow or Saturday.

    • Thanks 1
  • Topic Author
  • Posted

    ER6 is missing some functions from ER5. I will provide them as "add-ins" which means that you have to add a file to the ER6 QA with the missing functions.
    This file could also be a good place to put your own Lua functions you use in your rules...
    There is some documentation

    Please login or register to see this link.

    There are

    Please login or register to see this link.

    for sync http calls and node-red integration.
    The node-red integration deserve some more documentation but works the same as in ER5 

     

    Posted

    Jan, unfortunately this error is back.

     

    Please login or register to see this code.

     

    Posted (edited)

    bug in ER6

    Please login or register to see this code.

    HT.DetectRestart is on for cca 3 seconds than it's automatically switched to off state.

    In log there is Start test, SwitchUnifi is off - it's OK but everything after wait is not done :( 

    I have also tried wait(00:01:00) - same result  - SwitchUnifi is not on and End test is not in log...

     

     

     

    Edited by petrkl12
    Posted (edited)

    @jgab Is it possible to add some summary after loading rules (ie. # rules, # rules with errors, # triggered variables etc.)?

     

    Is there also way/rule how to send notifcation in case of error in ER6?

     

    Edited by petrkl12
  • Topic Author
  • Posted (edited)

    The wait bug was introduced with the last wait fix... I have fixed the fix in v0.0.41


    There is an event posted for rule runtime errors
     

    Please login or register to see this code.


    I will add some more statistics that can be logged. If there is an error while loading rules it stops.

    Edited by jgab
    • Thanks 1
    Posted (edited)

    @jgab In version 0.0.41 it still doesn't work 

     

    Please login or register to see this code.

     

    Edited by petrkl12
    Posted (edited)

    I think Nodered integration can't work as you have in your example.

     

    There are minumum two bugs:

    1. 

     

    Please login or register to see this code.

    2. 

    Please login or register to see this code.

     

    Edited by petrkl12
    Posted (edited)

    Jan, if a light switch off I get this error:

    Please login or register to see this code.

    In ERUpdater  you can't see the present version of the QA, should be handy?

     

    Is it possible that this crash has to do with the lua:311 error because crash comes? after switching off lights

    Please login or register to see this code.

     

    Edited by Sjakie
    add crash
    Posted

    Jan the debug order is't  in order of execution.

     

     

    Please login or register to see this code.

    First        >>>>> $Bezetting_Toilet >>>> Vrij  (Occupation== Free)

    Second  >>>>> #licht_Toilet_Spaar_Plus        (light dim)

    Third      >>>>> #licht_Toilet_Uit                       (light off)

    remark # is a post

    Posted (edited)

    in version 42 there is still issue with wait(00:01)

     

    Edited by petrkl12
  • Topic Author
  • Posted
    1 hour ago, petrkl12 said:

    in version 42 there is still issue with wait(00:01)

     

    It works for me(!)

    00:01 is 1 minute =60 seconds 
    00:00:01 is one second.

  • Topic Author
  • Posted
    2 hours ago, Sjakie said:

    Jan the debug order is't  in order of execution.

     

     

    Please login or register to see this code.

    First        >>>>> $Bezetting_Toilet >>>> Vrij  (Occupation== Free)

    Second  >>>>> #licht_Toilet_Spaar_Plus        (light dim)

    Third      >>>>> #licht_Toilet_Uit                       (light off)

    remark # is a post

    Events are processed strictly in the order  they are generated. 
    If you post an event, other rules may trigger before if their triggering events are already queued up.
    A wait in a rule let other events in queue run before

    Posted (edited)

     

    33 minutes ago, jgab said:

    It works for me(!)

    00:01 is 1 minute =60 seconds 
    00:00:01 is one second.

     

    Sorry, it's working - my mistake ....

     

     

    Edited by petrkl12
  • Topic Author
  • Posted

    It’s supposed to wait for 1 hour?

    Posted

    I was playing with wait and I setup 1 hour 😆

     

    I have some suggestion - It could be perfect to have possibility to setup name for rules - ie. rule('myVar=1', nameRule="Setting variable myVar")

    That name than could be in log

    [21.09.2025] [15:12:07] [DEBUG] [QA_ER6_1551]: 👎 [Rule:14 - Setting variable myVar]

    [21.09.2025] [15:12:08] [DEBUG] [QA_ER6_1551]: 🎬 [Rule:14 - Setting variable myVar]: #device{"id":55,"value":164.1,"old":357.7,"property":"power"}

  • Topic Author
  • Posted

    Yes, naming rules are on my todo-list.

    • Like 1
    Posted

    ok, thanks

    btw. nodered is working 👍

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