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

  • Topic Author
  • Posted (edited)

    Didn't download yet, so you're OK.

    Just post the first line of the QA. I need to know the name of the function and parameters, that's all.

    Edited by cag014
    Posted
    2 hours ago, cag014 said:

    Didn't download yet, so you're OK.

    Just post the first line of the QA. I need to know the name of the function and parameters, that's all.

    Too late, I got already 53 idiot messages.

    This fqa is without user and token data.

    Please login or register to see this attachment.

  • Topic Author
  • Posted

    What?

    Who downloaded?

    Thanks

     

    Posted
    3 minutes ago, cag014 said:

    Who downloaded?

    How to identify?

  • Topic Author
  • Posted (edited)

    @Rover, @gggizmo, @SmartLifeSystems (and others)

    Before releasing official version of AOQ, you can download attached QA to try it.

    I have divided the code into two parts

    main - is the place for all user's data (jS2n, jM, global, functions and user keyword). This is the place to copy your configuration.

    mainCode - this is the Lua code.

     

    @gggizmo

    To use HC2 devices, please define jSlave{} table as follow:

    jSlave={
    hc2={user="username",passwd="password",ip="192.168.1.0"},
    }
    Now you can use HC2 devices. The format is <devID>'<slaveId>. for example device 400 in hc2 should be 400'hc2.
    You can use device as standard device in calculations, actions, line device and etc.
    You can monitor HC2 sensors as well
    (0,"500'hc2",{state="value=true",trueAct={"900'hc2","turnOn",""}..................
    Devices could be defined in jS2n={sensor="500'hc2",.....}
    You can add more devices like your HCL
    jSlave={
    hc2={user="username",passwd="password",ip="192.168.1.0"},
    hcl={user="username",passwd="password",ip="192.168.1.0"},
    }
    same format, device 600 in HCL will be 600'hcl
    This version could set parameters as json table.
    so to use pushover QA please use action
    trueAct={"<QA-ID>", '+Send_Pushover,json[["title","priority","sound","message"]]' ,""}...
    Please follow the format of the command.
    In general to set parameter as json use 'json[ <data> ]'    The data should be exactly as json.encode() does.
     
    I'm working to include globals and scenes of Slave controller and updating the documentation. Will take few days, so let me know how it works for you.

     

    Please login or register to see this attachment.

    Edited by cag014
    Posted
    8 hours ago, cag014 said:

    @Rover, @gggizmo, @SmartLifeSystems (and others)

    Before releasing official version of AOQ, you can download attached QA to try it.

    I have divided the code into two parts

    main - is the place for all user's data (jS2n, jM, global, functions and user keyword). This is the place to copy your configuration.

    mainCode - this is the Lua code.

     

    @gggizmo

    To use HC2 devices, please define jSlave{} table as follow:

    jSlave={
    hc2={user="username",passwd="password",ip="192.168.1.0"},
    }
    Now you can use HC2 devices. The format is <devID>'<slaveId>. for example device 400 in hc2 should be 400'hc2.
    You can use device as standard device in calculations, actions, line device and etc.
    You can monitor HC2 sensors as well
    (0,"500'hc2",{state="value=true",trueAct={"900'hc2","turnOn",""}..................
    Devices could be defined in jS2n={sensor="500'hc2",.....}
    You can add more devices like your HCL
    jSlave={
    hc2={user="username",passwd="password",ip="192.168.1.0"},
    hcl={user="username",passwd="password",ip="192.168.1.0"},
    }
    same format, device 600 in HCL will be 600'hcl
    This version could set parameters as json table.
    so to use pushover QA please use action
    trueAct={"<QA-ID>", '+Send_Pushover,json[["title","priority","sound","message"]]' ,""}...
    Please follow the format of the command.
    In general to set parameter as json use 'json[ <data> ]'    The data should be exactly as json.encode() does.
     
    I'm working to include globals and scenes of Slave controller and updating the documentation. Will take few days, so let me know how it works for you.

     

    Please login or register to see this attachment.

     

    Hi cag,

     

    Thanks the update!

    I think faster this update. Is this possible?

    Posted
    10 hours ago, cag014 said:

    @Rover, @gggizmo, @SmartLifeSystems (and others)

    Before releasing official version of AOQ, you can download attached QA to try it.

    I have divided the code into two parts

    main - is the place for all user's data (jS2n, jM, global, functions and user keyword). This is the place to copy your configuration.

    mainCode - this is the Lua code.

     

    @gggizmo

    To use HC2 devices, please define jSlave{} table as follow:

    jSlave={
    hc2={user="username",passwd="password",ip="192.168.1.0"},
    }
     
     

    Hi Cag, first of all thanks. Then  just a stupid question:

    --[[ 
    jSlave={ 
        hc={user="xxxx",passwd="xxxxx",ip="xxxx"},
        } 
    -]]

    Do i have to uncomment the line?

    Posted (edited)

    Hi Cag, thanks in advance
    Can HC3 devices be used as slaves?

    HC3 two devices?

    Edited by minsad79
  • Topic Author
  • Posted (edited)
    1 hour ago, minsad79 said:

    Hi Cag, thanks in advance
    Can HC3 devices be used as slaves?

    HC3 two devices?

    Don't see any reason why not.

    Just add the second HC3 to the list of slaves

    jSlave={

    hc3={user="<username>",passwd="<password>",ip="xx.xx.xx.xx"},

    }

    The second HC3 devices must be listed as <devId>'hc3.

    By the way you can use any name that fits you, just use same name as device suffix. (  '<name>  )

    Let me know if it works... interesting.

    I'll try to do the same on same HC3.

     

    Edited by cag014
  • Topic Author
  • Posted
    3 hours ago, gggizmo said:

    Hi Cag, first of all thanks. Then  just a stupid question:

    --[[ 
    jSlave={ 
        hc={user="xxxx",passwd="xxxxx",ip="xxxx"},
        } 
    -]]

    Do i have to uncomment the line?

    Yes...unmarked and fill with correct data.

    Please make sure that the assigned user has correct rights to control the devices.

    Otherwise you may to receive error message that device not found because the user doesn't have the rights for the device.

     

  • Topic Author
  • Posted
    5 hours ago, SmartLifeSystems said:

     

    Hi cag,

     

    Thanks the update!

    I think faster this update. Is this possible?

    Yes, did some trick on refreshstate to avoid delays.

    Posted
    14 hours ago, cag014 said:
    This version could set parameters as json table.
    so to use pushover QA please use action
    trueAct={"<QA-ID>", '+Send_Pushover,json[["title","priority","sound","message"]]' ,""}...
    Please follow the format of the command.
    In general to set parameter as json use 'json[ <data> ]'    The data should be exactly as json.encode() does.

    Hi @cag014,

    You are a real champion ?

    Pushover works in AOQ 2.0 ?

    Is math.lib usable in this version?

     

    The slave option is not clear to me. Is it possible too involve HC2 devices in HC3, or it is dealing with primary and secondary controllers?

  • Topic Author
  • Posted (edited)
    5 minutes ago, Rover said:

    Hi @cag014,

    You are a real champion ?

    Pushover works in AOQ 2.0 ?

    Is math.lib usable in this version?

     

    The slave option is not clear to me. Is it possible too involve HC2 devices in HC3, or it is dealing with primary and secondary controllers?

    Yes, math.lib is usable. You can use random(x,x) function.

    the slave option means you can control and monitor devices of any other controller (HC2, HC3, HCL) and no need to define primary or secondary controller.

    For example you don't need to transfer devices from HC2 to HC3, you can use HC2devices directly from AOQ.

    Edited by cag014
    Posted
    8 minutes ago, cag014 said:

    the slave option means you can control and monitor devices of any other controller (HC2, HC3, HCL) and no need to define primary or secondary controller.

    For example you don't need to transfer devices from HC2 to HC3, you can use HC2devices directly from AOQ.

    Marvelous! Really a help in migration HC2 to HC3!

    I am using now @jgab solution with mapping HC2 devices to HC3 via a HC2Proxy QA.  Then you have other device ID's in HC3 than in HC2.

    I am going to try your AOQ slave solution.

    14 minutes ago, cag014 said:

    Yes, math.lib is usable. You can use random(x,x) function.

    Nice ?, also Randomseed?

     

    Posted

    Cag just to compare cpu utilization in hc3 vs hc2 with all in one active, what do you think about this graph?

     

    Please login or register to see this link.

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

    Marvelous! Really a help in migration HC2 to HC3!

    I am using now @jgab solution with mapping HC2 devices to HC3 via a HC2Proxy QA.  Then you have other device ID's in HC3 than in HC2.

    I am going to try your AOQ slave solution.

    Nice ?, also Randomseed?

     

    randomseed is part of math.lib, so should work as well.

    Posted

    What do I wrong with timeoutAct?

    Intention is to generate a message if door is open  more then 3 minutes.

    [ERROR] [QUICKAPP66]: main.lua:88: attempt to call a nil value (global 'timeoutAct')

    {3,"`Voordeur`",{state="value=true",
    trueAct={{"`Pushover`", '+Send_Pushover,json[["Voordeur","0","none","Open"]]' ,""}},
    falseAct={{"`Pushover`", '+Send_Pushover,json[["Voordeur","0","none","Dicht"]]' ,""}},
    timeoutAct{{"`Pushover`", '+Send_Pushover,json[["Voordeur","0","none","Te lang open"]]' ,""}}}},
  • Topic Author
  • Posted
    3 minutes ago, Rover said:

    What do I wrong with timeoutAct?

    Intention is to generate a message if door is open  more then 3 minutes.

    [ERROR] [QUICKAPP66]: main.lua:88: attempt to call a nil value (global 'timeoutAct')

    {3,"`Voordeur`",{state="value=true",
    trueAct={{"`Pushover`", '+Send_Pushover,json[["Voordeur","0","none","Open"]]' ,""}},
    falseAct={{"`Pushover`", '+Send_Pushover,json[["Voordeur","0","none","Dicht"]]' ,""}},
    timeoutAct{{"`Pushover`", '+Send_Pushover,json[["Voordeur","0","none","Te lang open"]]' ,""}}}},

    You are tired.... you forgot equal sign =

    timeoutAct={{...

  • Topic Author
  • Posted
    11 minutes ago, Rover said:

    What do I wrong with timeoutAct?

    Intention is to generate a message if door is open  more then 3 minutes.

    [ERROR] [QUICKAPP66]: main.lua:88: attempt to call a nil value (global 'timeoutAct')

    As I understand you're sending a push note in case the door is open over 3 minutes. Using timeoutAct={} AOQ will send push note one time and will wait for door to be closed.

    I recommend in this case to use timeLoopAct={}, the AOQ will send push note every 3 minutes till the door will be closed. Some kind loop of reminding to close the door.

    This is the main deference between timeoutAct to timeLoopAct.

    timeOutAct executed one time and waits for status to be changed.

    timeLoopAct continues in a loop (in your case 3 min) to be executed until the status changes.

     

     

  • Topic Author
  • Posted (edited)
    2 hours ago, gggizmo said:

    Cag just to compare cpu utilization in hc3 vs hc2 with all in one active, what do you think about this graph?

     

    Please login or register to see this link.

    I  have just two Z-wave devices connected to HC3, so cannot say much about HC3 CPU load.

    But I'm running two AOQ on HC3 (one testing and other developing) and CPU load looks not so bad ~45% average

    Edited by cag014

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