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)
3 minutes ago, cag014 said:

Finally it looks the same as for others....

 

Yesss. You are great! Thank you very much!

 

It inmediately reacts to everything.

Edited by SmartLifeSystems
  • Topic Author
  • Posted
    3 minutes ago, Rover said:

    But you have added quite a lot in the last period: if/and human reading, rpt, etc., etc.....

    Yes, and it's already there in download...

    All latest improvements already updated in AOS and will be released with AOQ next week. (I hope, if no new issues will popup)

    Posted

    V5.3 still not working 

    [22.10.2020] [19:43:28] [ERROR] [QUICKAPP66]: QuickApp crashed[22.10.2020] [19:43:28] [ERROR] [QUICKAPP66]: mainCode.lua:2: attempt to perform arithmetic on a nil value[22.10.2020] [19:44:00] [ERROR] [QUICKAPP66]: QuickApp crashed[22.10.2020] [19:44:00] [ERROR] [QUICKAPP66]: mainCode.lua:2: attempt to perform arithmetic on a nil value[22.10.2020] [19:45:00] [ERROR] [QUICKAPP66]: QuickApp crashed[22.10.2020] [19:45:00] [ERROR] [QUICKAPP66]: mainCode.lua:2: attempt to perform arithmetic on a nil value[22.10.2020] [19:46:00] [ERROR] [QUICKAPP66]: QuickApp crashed[22.10.2020] [19:46:00] [ERROR] [QUICKAPP66]: mainCode.lua:2: attempt to perform arithmetic on a nil value[22.10.2020] [19:46:39] [ERROR] [QUICKAPP66]: QuickApp crashed[22.10.2020] [19:46:39] [ERROR] [QUICKAPP66]: mainCode.lua:2: attempt to perform arithmetic on a nil value[22.10.2020] [19:46:39] [ERROR] [QUICKAPP66]: QuickApp crashed[22.10.2020] [19:46:39] [ERROR] [QUICKAPP66]: mainCode.lua:2: attempt to perform arithmetic on a nil value[22.10.2020] [19:47:00] [ERROR] [QUICKAPP66]: QuickApp crashed[22.10.2020] [19:47:00] [ERROR] [QUICKAPP66]: mainCode.lua:2: attempt to perform arithmetic on a nil value

    Posted
    37 minutes ago, cag014 said:

    I think the best idea is develop on AOQ on your HC3 and then transfer the jM lines to him.

    It's pretty same that what I'm doing right now on my HC3. I have one motion sensor, one switch, one RGBW and one keyFob. Using these devices I can simulate almost every basic scenario...

    Regarding  using slave devices for HC2, you do realize while you develop some solution, it will active "crazy" at his home?

    I do believe you have enough devices on your HC3 to simulate whatever needed on HC2

    Use attached

     

    Please login or register to see this attachment.

     

    @Rover try this.

    Posted
    2 minutes ago, SmartLifeSystems said:

     

    @Rover try this.

    [22.10.2020] [20:05:08] [ERROR] [QUICKAPP66]: QuickApp crashed[22.10.2020] [20:05:08] [ERROR] [QUICKAPP66]: mainCode.lua:2: attempt to perform arithmetic on a nil value

    Posted
    2 minutes ago, Rover said:

    [22.10.2020] [20:05:08] [ERROR] [QUICKAPP66]: QuickApp crashed[22.10.2020] [20:05:08] [ERROR] [QUICKAPP66]: mainCode.lua:2: attempt to perform arithmetic on a nil value

     

    Hmmm. For me working fine.

    Posted

    Hi How to set a GV and how to retrieve?

     
    {0,"`hoofdSlaapKamerlader`",
      {state="value=true",
      trueAct={{"`&mydagRitme`",{value="bedTijd"},falseAct={{"`&mydagRitme`",{value="opStaan"}}}},
  • Topic Author
  • Posted (edited)
    14 minutes ago, Sjakie said:

    Hi How to set a GV and how to retrieve?

     
    {0,"`hoofdSlaapKamerlader`",
      {state="value=true",
      trueAct={{"`&mydagRitme`",{value="bedTijd"},falseAct={{"`&mydagRitme`",{value="opStaan"}}}},

    The best option is to use AOQ GV...

    global4local= {false,gVarName="",varArray={onState="init:0",myVar="isOff"}} 
    If you must to keep last value when AOQ restarted (due to changes and updates) you can use system's global value to save the states . Create global variable in HC3 (let's say AOQtank) and then define as follow
    global4local= {true,gVarName="AOQtank",varArray={onState="init:0",myVar="isOff"}} 
    Now you can use (following this example)
    &onState
    &myVar
     
    By the way the main difference between keyWord and GV, that GV could be set in jM lines, while keyWord needs a function.
    20 minutes ago, Rover said:

    [22.10.2020] [20:05:08] [ERROR] [QUICKAPP66]: QuickApp crashed[22.10.2020] [20:05:08] [ERROR] [QUICKAPP66]: mainCode.lua:2: attempt to perform arithmetic on a nil value

    If you don't mine, please post AOQ QA... and I'll take a look.

    Edited by cag014
    Posted
    17 minutes ago, cag014 said:

    I'll take a look.

     

    out of curiosity, did you ever checked logs from HC3 running AOS / AOQ?

    Posted (edited)
    1 hour ago, cag014 said:

     

    If you don't mine, please post AOQ QA... and I'll take a look.

    V5.2

    Please login or register to see this attachment.

    Edited by Rover
    Posted

    Cag,

    I do it wrong;

    how to tell that hoofdSlaapKamerlader triggers the global4local?

    global4local= {true,gVarName="DagRitme",varArray={BedTijd="init:0",OpStaan="isOff"}},
     
      {0,"`DagRitme`",
      {state="value=&BedTijd",
      trueAct={{"`stekkers`","turnOff","","`stekkersUit`","turnOff","","`stekkersVertraagd`","turnOff","8100"},
      falseAct={{"`stekkers`","turnOn","","`stekkersVertraagd`","turnOn",""}}}}},
     
    Error in DagRitme
    Please advice,
    //Sjakie
     
  • Topic Author
  • Posted
    14 minutes ago, Sjakie said:

    Cag,

    I do it wrong;

    how to tell that hoofdSlaapKamerlader triggers the global4local?

    global4local= {true,gVarName="DagRitme",varArray={BedTijd="init:0",OpStaan="isOff"}},
     
      {0,"`DagRitme`",
      {state="value=&BedTijd",
      trueAct={{"`stekkers`","turnOff","","`stekkersUit`","turnOff","","`stekkersVertraagd`","turnOff","8100"},
      falseAct={{"`stekkers`","turnOn","","`stekkersVertraagd`","turnOn",""}}}}},
     
    Error in DagRitme
    Please advice,
    //Sjakie
     

    No no no... the DagRitme is the global variable to store AOQ GVs. It's never can be used in AOQ as a parameter.

    As I understand if BedTijd=0 then trueAct()

    {0,"&BedTijd",
      {state="value=0",
      trueAct={{"`stekkers`","turnOff","","`stekkersUit`","turnOff","","`stekkersVertraagd`","turnOff","8100"},
      falseAct={{"`stekkers`","turnOn","","`stekkersVertraagd`","turnOn",""}}}}},
  • Topic Author
  • Posted
    2 hours ago, Rover said:

    V5.2

    Please login or register to see this attachment.

    Works... no error!?

    Posted
    4 minutes ago, cag014 said:

    Works... no error!?

    Yes, works in 5.2, but not in 5.3.

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

    Yes, works in 5.2, but not in 5.3.

    As always your AOQ has all options...

    Fixed

     

    Please login or register to see this attachment.

    Posted
    8 minutes ago, cag014 said:

    As always your AOQ has all options...

    Fixed

     

    Please login or register to see this attachment.

    [23.10.2020] [00:12:22] [ERROR] [QUICKAPP66]: QuickApp crashed

    [23.10.2020] [00:12:22] [ERROR] [QUICKAPP66]: mainCode.lua:2: attempt to perform arithmetic on a nil value

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

    [23.10.2020] [00:12:22] [ERROR] [QUICKAPP66]: QuickApp crashed

    [23.10.2020] [00:12:22] [ERROR] [QUICKAPP66]: mainCode.lua:2: attempt to perform arithmetic on a nil value

    That's incredible... from some reason by defining function in mainCode QA behaves differently.

    So now it's about the time to replace the order of main and mainCode.

    Please add new file user_data

    Copy/paste data from main to user_data

    Copy/paste data from mainCode to main

    Delete mainCode

    Save user_data, main and you are set.

    to copy quickly entire text use ctrl+A then ctrl+C . To paste ctrl+A then ctrl+V

    Posted
    26 minutes ago, cag014 said:

    That's incredible... from some reason by defining function in mainCode QA behaves differently.

    So now it's about the time to replace the order of main and mainCode.

    Please add new file user_data

    Copy/paste data from main to user_data

    Copy/paste data from mainCode to main

    Delete mainCode

    Save user_data, main and you are set.

    to copy quickly entire text use ctrl+A then ctrl+C . To paste ctrl+A then ctrl+V

    v5.4 works ?

    Does loop

    [23.10.2020] [01:06:32] [DEBUG] [AOQ66]: onTime end loop 82 3

    [23.10.2020] [01:07:54] [DEBUG] [AOQ66]: onTime end loop 82 3

    [23.10.2020] [01:08:24] [DEBUG] [AOQ66]: onTime end loop 82 3

    [23.10.2020] [01:08:30] [DEBUG] [AOQ66]: onTime end loop 82 3

    going on forever?

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

    v5.4 works ?

    Does loop

    [23.10.2020] [01:06:32] [DEBUG] [AOQ66]: onTime end loop 82 3

    [23.10.2020] [01:07:54] [DEBUG] [AOQ66]: onTime end loop 82 3

    [23.10.2020] [01:08:24] [DEBUG] [AOQ66]: onTime end loop 82 3

    [23.10.2020] [01:08:30] [DEBUG] [AOQ66]: onTime end loop 82 3

    going on forever?

    Oops... it was a debug line for @SmartLifeSystems

     

    Please login or register to see this attachment.

    Posted
    2 minutes ago, cag014 said:

    Oops... it was a debug line for @SmartLifeSystems

     

    Please login or register to see this attachment.

    And now I got his present ?

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