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

Jan,

How I can make a back up of my ER scenes?

Instead of open them one by one and copy content into Notepath?

Thanks in advance,

//Sjakie

  • Topic Author
  • Posted

    On HC3? There you can just save the QA in one of the QA preference tabs (advanced).

    HC2? You need to run something on an external machine that download/backup the code. 

    I have a solution for ZBS. There is also the toolkit from @Krikroff 

     

    Posted

    Jan,

    Great thanks!!

    //Sjakie

    Posted (edited)

     

    On 8/14/2020 at 4:18 PM, Earybeongbeong7 said:

    Hello?

    The update is complete (ZBS, ER4 & all toolbox)

    Now the Incoming trigger content comes out.

     

    However, when you click the button, there is no response and you can see the following debug.

     

    [WARNING] [QUICKAPP442]: UI callback for element:debugTriggernot found.

    [WARNING] [QUICKAPP442]: UI callback for element:debugRulenot found.

     

    And

     

    rule("@{catch,05:00} => Util.checkForUpdates()")
    rule("#File_update{} => log('New file version:%s - %s',env.event.file,env.event.version)")
    rule("#File_update{} => Util.updateFile(env.event.file)")

     

    What updates are you checking for? (every 5 hours?)

    Do you check for updates to the ER4 toolbox and engine files?

    If there is an update when checking, will it be automatically updated?

    Please login or register to see this attachment.

     

     

    Hi. jgab.

     

    Since I deleted the ZBS update and installed a new FQA file, On/Off such as Incomming Triger works well.

     

    Thank you for responding quickly every time.

    Edited by Earybeongbeong7
    Posted

    @jgab Hi jgab..

     

    is there a site that describes the commands available in ER4 with explanations?

  • Topic Author
  • Posted
    17 hours ago, Earybeongbeong7 said:

    @jgab Hi jgab..

     

    is there a site that describes the commands available in ER4 with explanations?

    There are some docs for ER3 that is the same

    • Please login or register to see this link.

      .
    • Please login or register to see this link.

    • Please login or register to see this link.

       (

      Please login or register to see this link.

      )
    • Please login or register to see this link.

    • Please login or register to see this link.

     

    Posted
    11 hours ago, jgab said:

    There are some docs for ER3 that is the same

    • Please login or register to see this link.

      .
    • Please login or register to see this link.

    • Please login or register to see this link.

       (

      Please login or register to see this link.

      )
    • Please login or register to see this link.

    • Please login or register to see this link.

     

     

    That's great.

    Thank you very much.

    Does the page continue to be updated after that?

    Posted
    13 hours ago, jgab said:

    There are some docs for ER3 that is the same

    • Please login or register to see this link.

      .
    • Please login or register to see this link.

    • Please login or register to see this link.

       (

      Please login or register to see this link.

      )
    • Please login or register to see this link.

    • Please login or register to see this link.

     

    Hi. jgab,

     

     

    Rule("trueFor(00:10,downstair.door:breached) => phone:msg=log('Door is open for %s min',again(3)*10)")

     

    What does *10 mean in again(3)*10?

  • Topic Author
  • Posted
    1 hour ago, Earybeongbeong7 said:

    Hi. jgab,

    Rule("trueFor(00:10,downstair.door:breached) => phone:msg=log('Door is open for %s min',again(3)*10)")

    What does *10 mean in again(3)*10?

     

    trueFor is true when the condition has been true for the specified time (10min in the example).

    Then the action parts execute.

    The function 'again' resets the timer that trueFor monitors so it will start to watch another 10min and execute the action again. Without 'again' the door has to close and open again for the rule to start watching the condition.

    The typical use case is to warn if a windows is open for 10min, and then warn again every 10min the window continues to be open.

    'again' takes a number as argument that is the max number of times it should re-trigger the rules (0 means infinite). In the example, 3 times.

    The function 'again' returns the number of times the rule has repeated. In the example above we use it to log 10min, 20min, 30min in the message.

     

    Posted
    22 minutes ago, jgab said:

     

    trueFor is true when the condition has been true for the specified time (10min in the example).

    Then the action parts execute.

    The function 'again' resets the timer that trueFor monitors so it will start to watch another 10min and execute the action again. Without 'again' the door has to close and open again for the rule to start watching the condition.

    The typical use case is to warn if a windows is open for 10min, and then warn again every 10min the window continues to be open.

    'again' takes a number as argument that is the max number of times it should re-trigger the rules (0 means infinite). In the example, 3 times.

    The function 'again' returns the number of times the rule has repeated. In the example above we use it to log 10min, 20min, 30min in the message.

     

     

    Thanks for the explanation.  May I ask you additional questions?  Does the msg command not work in HC3?  It is displayed in the log, but there is no notification in the iPhone app.

     

    rule("trueFor(00:10,downstair.door:breached) => 179:msg=log('Door is open for %s min',again(3)")

    Please login or register to see this attachment.

  • Topic Author
  • Posted
    On 8/25/2020 at 12:58 PM, Earybeongbeong7 said:

     

    Thanks for the explanation.  May I ask you additional questions?  Does the msg command not work in HC3?  It is displayed in the log, but there is no notification in the iPhone app.

     

    rule("trueFor(00:10,downstair.door:breached) => 179:msg=log('Door is open for %s min',again(3)")

    Please login or register to see this attachment.

     

    I realised that there was a bug in ER4. The format is slightly changed from HC2 to HC3 and I missed that. 

    I just pushed v0.5,fix4 - and if you have v0.5,fix3 the automatic update should work

    Posted

    Jan,

    This I see when I open a QA.

    After save and reopen its updated.

    I thought it should update at 05:00?

    //Sjakie

    Please login or register to see this image.

    /monthly_2020_08/image.png.a9b64a2e0795f68e23bd88bf7761fb30.png" />

  • Topic Author
  • Posted
    31 minutes ago, Sjakie said:

    Jan,

    This I see when I open a QA.

    After save and reopen its updated.

    I thought it should update at 05:00?

    //Sjakie

    Please login or register to see this link.

    Yes, but I pushed the update after 05:00 so the update would run tomorrow at 5. Or now if you restart the QA

    Posted

    Jan,

    I am on fix 4

    If I try:

     

    rule("trueFor(00:00:05,hoofdSlaapKamer.wcdLader:isOn) => 48:msg=log('lader slaapkamer is aan',again(3))")

    it will generate an error or do I need to specify msg in a rule?

     

     

     

    [30.08.2020] [13:32:31] [DEBUG] [QUICKAPP396]: [true]>>'Rule:4[trueFor(00:00:05,hoofdSlaapKamer.wcdLader:isOn) => 48:msg=log('lader slaapkamer ...]'
    [30.08.2020] [13:32:31] [TRACE] [QUICKAPP396]: lader slaapkamer is aan
    [30.08.2020] [13:32:31] [ERROR] [QUICKAPP396]: in Rule:4[trueFor(00:00:05,hoofdSlaapKamer.wcdLader:isOn) => 48:msg=log('lader slaapkamer ...]: {"ERR":true,"err":".\/include\/EventRunner.lua:1373: Wrong parameter type, string required. Provided param 'nil' is type of nil","msg":"Error executing instruction:'[\"%setprop\",2,false,[\"msg\"]]'","src":"Rule:4[trueFor(00:00:05,hoofdSlaapKamer.wcdLader:isOn) => 48:msg=log('lader slaapkamer ...]"}

     

    Thanks for th esupport!

    //Sjakie

     

    Posted (edited)
    8 hours ago, jgab said:

     

    I realised that there was a bug in ER4. The format is slightly changed from HC2 to HC3 and I missed that. 

    I just pushed v0.5,fix4 - and if you have v0.5,fix3 the automatic update should work

     

     

    Automatic update works fine.  Thank you.  

     

    However, the following error occurs in the message function.

     

    QUICKAPP447]: in Rule:25[trueFor(00:10, bth.BathDoor:breached) => 179:msg=log('Door is open for %s min',a...]: {"src":"Rule:25[trueFor(00:10, bth.BathDoor:breached) => 179:msg=log('Door is open for %s min',a...]","ERR":true,"err":".\/include\/EventRunner.lua:1373: Wrong parameter type, string required. Provided param 'nil' is type of nil","msg":"Error executing instruction:'[\"%setprop\",2,false,[\"msg\"]]'"}

     

    Also, rule is not turned on or off.

    Please login or register to see this attachment.

     

     

     

    And do I have to write down the HC3 address below?

     

     

    Please login or register to see this attachment.

    Edited by Earybeongbeong7
  • Topic Author
  • Posted
    4 hours ago, Earybeongbeong7 said:

     

     

    Automatic update works fine.  Thank you.  

     

    However, the following error occurs in the message function.

     

    QUICKAPP447]: in Rule:25[trueFor(00:10, bth.BathDoor:breached) => 179:msg=log('Door is open for %s min',a...]: {"src":"Rule:25[trueFor(00:10, bth.BathDoor:breached) => 179:msg=log('Door is open for %s min',a...]","ERR":true,"err":".\/include\/EventRunner.lua:1373: Wrong parameter type, string required. Provided param 'nil' is type of nil","msg":"Error executing instruction:'[\"%setprop\",2,false,[\"msg\"]]'"}

     

    Also, rule is not turned on or off.

    Please login or register to see this attachment.

     

     

     

    And do I have to write down the HC3 address below?

     

     

    Please login or register to see this attachment.

     

    Pushed 0.5,"fix5"

    Sorry, log was broken and didn't return the string it printed, so :msg got nil as value. 

    Restart should update the QA.

    _HC3IPADDRESS is not needed and set automatically now.

     

    The Rules: ON I have to look at later.

    Posted

    Jan,

    fix 5

    I cant get it send th emessage.

    If I manually create new scene and push message it will come true.

    Please login or register to see this attachment.

    no other messages till 20.27

    Please advice.

    //Sjakie

  • Topic Author
  • Posted
    1 minute ago, Sjakie said:

    Jan,

    fix 5

    I cant get it send th emessage.

    If I manually create new scene and push message it will come true.

    Please login or register to see this attachment.

    no other messages till 20.27

    Please advice.

    //Sjakie

     

    On the HC3, the "device" id the id of the user, not the device.

    Posted

    Thanks, now its working.

    space show &nbsp how to correct?

    //Sjakie

  • Topic Author
  • Posted

    Hmm, that's an unintended effect. I have to think how to deal with this (when I log to the console I replace <space> with &nbsp to get spaces, but when we send to devices we don't want it...

    For now a quick fix is to set

    self._HTML = false

    in the beginning of QuickApp:main()

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