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

Jan,

To fix my heater I need to repeat the command lets say 3 times with 5 min diference but a post is involved

Rule.eval([[@@00:05 & #rise..#rise2,+/00:15 => log('is it working')]])

please your valuable advice,

//Sjakie

Link to comment
Share on other sites

  • Topic Author
  • 20 hours ago, Sjakie said:

    Open

     ( tonumber(fibaro:getValue(1153, "secured")) == 0 )

    closed

     ( tonumber(fibaro:getValue(1153, "secured")) == 255 )

    Manual lock, manual unlock, opend pin user all empty

     

    in docs is written unsecure but I cant find in Block scedule

    //Sjakie

    Please login or register to see this link.

     

    If you look at the properties table of the device, does it. have a 'secured' key?

    Please login or register to see this code.

    and does it have a 'value' property too?

    Link to comment
    Share on other sites

    On 2020. 9. 26. at 오후 9시 1분, jgab said:

     

     

     

    Profile trigger error

    Rule below

     

      rule([[#ArrivalHouse  & $PresentState=='Away' => $PresentState='Home'; 1:profile=true; post(#familyInhouse)]]) 
      rule([[#LeaveHouse & $PresentState=='Home' => $PresentState='Away'; 2:profile=true; post(#familyOuthouse)]]) 

     

     

    [2020-10-02] [08:03:03 pm] [ERROR] [QUICKAPP1532]: in Rule:34[#LeaveHouse & $PresentState=='Home' => $PresentState='Away'; 2:profile=true; pos...]: {"err":".\/include\/EventRunner.lua:1549: Wrong parameter type, number required. Provided param 'activeProfile' is type of string","ERR":true,"src":"Rule:34[#LeaveHouse & $PresentState=='Home' => $PresentState='Away'; 2:profile=true; pos...]","msg":"Error executing instruction:'[\"%setprop\",1,[true],[\"profile\"]]'"}[2020-10-02] [08:34:20 pm] [ERROR] [QUICKAPP1532]: in Rule:33[#ArrivalHouse  & $PresentState=='Away' => $PresentState='Home'; 1:profile=true; ...]: {"err":".\/include\/EventRunner.lua:1549: Wrong parameter type, number required. Provided param 'activeProfile' is type of string","ERR":true,"src":"Rule:33[#ArrivalHouse  & $PresentState=='Away' => $PresentState='Home'; 1:profile=true; ...]","msg":"Error executing instruction:'[\"%setprop\",1,[true],[\"profile\"]]'"}

     

     

    Link to comment
    Share on other sites

  • Topic Author
  • 18 hours ago, minsad79 said:

    Profile trigger error

    Rule below

     

      rule([[#ArrivalHouse  & $PresentState=='Away' => $PresentState='Home'; 1:profile=true; post(#familyInhouse)]]) 
      rule([[#LeaveHouse & $PresentState=='Home' => $PresentState='Away'; 2:profile=true; post(#familyOuthouse)]]) 

     

     

    [2020-10-02] [08:03:03 pm] [ERROR] [QUICKAPP1532]: in Rule:34[#LeaveHouse & $PresentState=='Home' => $PresentState='Away'; 2:profile=true; pos...]: {"err":".\/include\/EventRunner.lua:1549: Wrong parameter type, number required. Provided param 'activeProfile' is type of string","ERR":true,"src":"Rule:34[#LeaveHouse & $PresentState=='Home' => $PresentState='Away'; 2:profile=true; pos...]","msg":"Error executing instruction:'[\"%setprop\",1,[true],[\"profile\"]]'"}[2020-10-02] [08:34:20 pm] [ERROR] [QUICKAPP1532]: in Rule:33[#ArrivalHouse  & $PresentState=='Away' => $PresentState='Home'; 1:profile=true; ...]: {"err":".\/include\/EventRunner.lua:1549: Wrong parameter type, number required. Provided param 'activeProfile' is type of string","ERR":true,"src":"Rule:33[#ArrivalHouse  & $PresentState=='Away' => $PresentState='Home'; 1:profile=true; ...]","msg":"Error executing instruction:'[\"%setprop\",1,[true],[\"profile\"]]'"}

     

     

     

    Interesting, in QAs it's fibaro.profile("activateProfile",<id>)

    in Scenes it's fibaro.profile(<id>,"activateProfile")

    I have fixed it and pushed 0.5fix27

    Link to comment
    Share on other sites

    29 minutes ago, jgab said:

     

    Interesting, in QAs it's fibaro.profile("activateProfile",<id>)

    in Scenes it's fibaro.profile(<id>,"activateProfile")

    I have fixed it and pushed 0.5fix27

    0.5fix27

     

    Error after version upgrade

     

     

    ------

    Program starting as '"/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/bin/lua.app/Contents/MacOS/lua" -e "io.stdout:setvbuf('no')" "/Users/minsad79/SynologyDrive/EventRunner/HC3/EventRunner4.lua"'.
    Program 'lua' started in '/Users/minsad79/SynologyDrive/EventRunner/HC3' (pid: 3677).
    [03.10.2020] [16:50:05] |[35mSYS  [0m|: HC3 SDK v0.135
    [03.10.2020] [16:50:05] |[35mSYS  [0m|: Created Event server at 12.10.79.119:6872
    [03.10.2020] [16:50:05] |[31;1mERROR[0m|: Code crashed: EventRunner4Engine.lua:932: unexpected symbol near 'and'
    EventRunner4Engine.lua:932: unexpected symbol near 'and'
    stack traceback:
        fibaroapiHC3.lua:5295: in function <fibaroapiHC3.lua:5293>
        [C]: in function 'dofile'
        fibaroapiHC3.lua:1507: in function 'FILE'
        .../minsad79/SynologyDrive/EventRunner/HC3/EventRunner4.lua:39: in main chunk
        [C]: in function 'dofile'
        fibaroapiHC3.lua:5282: in function 'fun'
        fibaroapiHC3.lua:913: in function <fibaroapiHC3.lua:901>
        [C]: in function 'xpcall'
        fibaroapiHC3.lua:5292: in function 'startUp'
        fibaroapiHC3.lua:5310: in main chunk
        [C]: in function 'dofile'
        .../minsad79/SynologyDrive/EventRunner/HC3/EventRunner4.lua:21: in main chunk
        [C]: at 0x01087a3dc0
    Program completed in 0.24 seconds (pid: 3677). 

    Link to comment
    Share on other sites

    Jan,

    Sorry I figured it out.

    I was to much concentrated to do it with @@00:00:11 &10:00..11:08  =>

     

    To use an extra step between is more logical:

     

        Rule.eval([[hal.verwarmingVakantie:isOn & #opStaan => 
            post(#verwarmingOpstaan); post(#verwarmingOpstaan,+/00:05); post(#verwarmingOpstaan,+/00:10)
            ]])

     

        Rule.eval([[#verwarmingOpstaan =>
            httpGet('http://192.168.1.18/data.json?heater=0&setpoint=167&thermostat=0'); 
                       ]])


    Thanks for sharing your expertise,

    //Sjakie

    Link to comment
    Share on other sites

  • Topic Author
  • 22 minutes ago, minsad79 said:

    0.5fix27

     

    Error after version upgrade

     

     

    ------

    Program starting as '"/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/bin/lua.app/Contents/MacOS/lua" -e "io.stdout:setvbuf('no')" "/Users/minsad79/SynologyDrive/EventRunner/HC3/EventRunner4.lua"'.
    Program 'lua' started in '/Users/minsad79/SynologyDrive/EventRunner/HC3' (pid: 3677).
    [03.10.2020] [16:50:05] |[35mSYS  [0m|: HC3 SDK v0.135
    [03.10.2020] [16:50:05] |[35mSYS  [0m|: Created Event server at 12.10.79.119:6872
    [03.10.2020] [16:50:05] |[31;1mERROR[0m|: Code crashed: EventRunner4Engine.lua:932: unexpected symbol near 'and'

     

    Oops, error in another piece of code.

    Pushed ER4 05fix28. 

    There is also a new version of fibaroapiHC3.lua with the fibaro.profile argument switch

    18 minutes ago, Sjakie said:

    Jan,

    Sorry I figured it out.

    I was to much concentrated to do it with @@00:00:11 &10:00..11:08  =>

    To use an extra step between is more logical:

     

        Rule.eval([[hal.verwarmingVakantie:isOn & #opStaan => 
            post(#verwarmingOpstaan); post(#verwarmingOpstaan,+/00:05); post(#verwarmingOpstaan,+/00:10)
            ]])

     

        Rule.eval([[#verwarmingOpstaan =>
            httpGet('http://192.168.1.18/data.json?heater=0&setpoint=167&thermostat=0'); 
                       ]])


    Thanks for sharing your expertise,

    //Sjakie

     

    Good. 

     

    I pushed a new version of EventRunner3 (b90)

    I still haven't figured out the secured/unsecure thing.

    In the new ER3 there is two versions of isSecure and isUnsecure

    <id>:isSecure

    <id>:isSecure2

    <id>:isUnsecure

    <id>:isUnsecure2

     

    Let me know if any of them report the correct status of your lock.

     

    Edited by jgab
    Link to comment
    Share on other sites

    19 minutes ago, jgab said:

     

    Oops, error in another piece of code.

    Pushed ER4 05fix28. 

    There is also a new version of fibaroapiHC3.lua with the fibaro.profile argument switch

     

    Good. 

     

    I pushed a new version of EventRunner3 (b90)

    I still haven't figured out the secured/unsecure thing.

    In the new ER3 there is two versions of isSecure and isUnsecure

    <id>:isSecure

    <id>:isSecure2

    <id>:isUnsecure

    <id>:isUnsecure2

     

    Let me know if any of them report the correct status of your lock.

     

    Thanks Jan

    Works fine

    Great thanks

    Link to comment
    Share on other sites

    Jan,

    Shoot me!

    Danalock device: V3

    Product firmware version: 0.16.0

    Smartphone model: IPhone11 pro ,Smartphone software version: 14.0.1

    HC2

     

    Lock  is OPEN!

    Please login or register to see this image.

    /monthly_2020_10/image.png.ff7c47c49ebd71538d201ed9e528a94c.png" />

    In phone app lock is also open

    In debug lock is Locked????

    image.png.c4b07edb46b0c817aa085c4db041df73.png

    ER version 3 build 90

    Secure and unsecure dot show in debug

     

    image.png.5e77e4e9e1f04e746f8a3fdbc4a0db23.png

    What is or I am doing wrong?

    Please advice,//Sjakie

    Link to comment
    Share on other sites

  • Topic Author
  • 14 minutes ago, Sjakie said:

    Jan,

    Shoot me!

    Danalock device: V3

    Product firmware version: 0.16.0

    Smartphone model: IPhone11 pro ,Smartphone software version: 14.0.1

    HC2

     

    Lock  is OPEN!

    Please login or register to see this link.

    In phone app lock is also open

    In debug lock is Locked????

    Please login or register to see this link.

    ER version 3 build 90

    Secure and unsecure dot show in debug

     

    Please login or register to see this link.

    What is or I am doing wrong?

    Please advice,//Sjakie

    If you try isSecure2 and isUnsecure2 ?

    Link to comment
    Share on other sites

    Jan,

     

    These rules I have

    Please login or register to see this image.

    /monthly_2020_10/image.png.68437901bc9eba9d6f42a96f7ef5b684.png" />

    Secure and Unsecure just if they art present nothing in log!

    ER doest give any error

    //Sjakie

     

    image.png.7023ac12efce98850e21b744a8d1bf0a.png

    Link to comment
    Share on other sites

  • Topic Author
  • Have you declared 

     

    %% properties

    <danaId> secured

     

    in the header?

    Link to comment
    Share on other sites

    Jan,

    You are the best.

    Two things due to HC2 cpu sky high I notest It doest safe the ER scene or he saves after an other modifying and he is one version behind.

    Need to solve that first for a better operation.

    Secured is working now all the others are giving a false view of the position of the lock. Secured correspondent also with the app.

    Thanks

    Please login or register to see this image.

    /monthly_2020_10/image.png.389e7438b7607ea956902a73785349ff.png" />

    Link to comment
    Share on other sites

    What command can I use to stop the ER quick app?
    I want to stop the rule of ER in the preview of the quick app by applying the button UI.
    The reason is, I want to stop ER4 of the existing quick app to test with ZBS.

    Edited by Earybeongbeong7
    Link to comment
    Share on other sites

    Jan,

    I am playing with your arming scene in HC3 >>>> it runs smoothly  with all th eparts of our complex, many thanks for that!

    If I want more users to get msg

    rule("user=2&20&22"-- ID of the user that will get the messages....   
    What I need to do to recieve a msg?
    Please advice,
    //Sjakie

     

    Link to comment
    Share on other sites

    Hello?

     

    If you ever want to change the angle of the venetian blinds using a roller shutter Is there any way?

     

    When the angle of the roller shutter is changed by 73%, the trigger details are as follows.(Device ID = 376)

     

    The device ID of the integrated roller shutter is 375. 376 is the device ID hidden when registering the roller shutter.

     

    Please login or register to see this code.

     

    And when adjusting the height of the blind, the trigger is as follows.(Device ID = 375)

     

    Please login or register to see this code.

     

    The first rule doesn't work, but the second one.

     

    Please login or register to see this code.

     

    It may only be a problem with roller shutters, but I would suggest adding the functionality of "velue2".

     

    Edited by Earybeongbeong7
    Link to comment
    Share on other sites

    What are the limitations of ER4?
    1. How many rules can be run simultaneously in one ER4 Quick app?
    2. How many ERs can be operated simultaneously in HC3?

    3. Would it be more efficient to use more than two ERs when the number of rules to be operated is large?

    Edited by Earybeongbeong7
    Link to comment
    Share on other sites

  • Topic Author
  • 6 hours ago, Earybeongbeong7 said:

    Hello?

     

    If you ever want to change the angle of the venetian blinds using a roller shutter Is there any way?

     

    When the angle of the roller shutter is changed by 73%, the trigger details are as follows.(Device ID = 376)

     

    The device ID of the integrated roller shutter is 375. 376 is the device ID hidden when registering the roller shutter.

     

    Please login or register to see this code.

     

    And when adjusting the height of the blind, the trigger is as follows.(Device ID = 375)

     

    Please login or register to see this code.

     

    The first rule doesn't work, but the second one.

     

    Please login or register to see this code.

     

    It may only be a problem with roller shutters, but I would suggest adding the functionality of "velue2".

     

    As you see id:value=x is translated to fibaro.call(id,"setValue",x)

    The question. is what to do with 'value2'. Do you know if the device has an action named 'setValue2' ?

    I could translate it to an fibaro.call(id,"updateProperty","value2",x) but then we need to make sure that it will actually react on that.

    You could try

    rule("506:isOn => fibaro.call(375,'updateProperty','value2',40)") 

    If that works we could make a change in ER4.

    Link to comment
    Share on other sites

  • Topic Author
  • 2 hours ago, Earybeongbeong7 said:

    What are the limitations of ER4?
    1. How many rules can be run simultaneously in one ER4 Quick app?
    2. How many ERs can be operated simultaneously in HC3?

    3. Would it be more efficient to use more than two ERs when the number of rules to be operated is large?

    ER4 scales well with the number of rules as it makes sure that only rules that can be triggered by incoming events are triggered. 

    However, if you having a lot of repeating rules (like @@00:00:01) it can make sense to start to split up in more than one QA.

    Just for easy of management I have 3 ER4 QAs. One for lights automation. One for presence/alarm. And one for my test and development rules.

    ER4 QAs can interact with each other easily with remote events or publish/subscribe.

    Each ER4 QA runs a loop polling for events/triggers from the system (/refreashStates) but I believe the overall performance of the HC3 has become better since 5.041.50

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