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

This email is not sent at all when pressing a button at VoordeurSwitch:

{0,"`VoordeurSwitch`",{trigAll=true,trigAct={{"VoordeurSwitchHC3","sendEmail,2","@`VoordeurSwitch`>sceneActivation"},{"VoordeurSwitchHC3","sendEmail,2","Pipo"}}}},

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

    In Advanced User's Guide 4.0:  1. In case property is sceneActivation or CentralSceneSupport, trigAll set to true by default.

    But trigAll is not functioning with CentralSceneSupport at all, even if trigAll has been added explicitly:

    {0,"`PortSwitch`",{initOnStartup=false,trigAll=true,state="centralSceneSupport=6.Pressed",trueAct={

    Only pressing button once is working, until another button has been pressed.

     

    Is PortSwitch HC2 device and is it used in more that one jM line?

     

    Posted
    3 minutes ago, cag014 said:

    Is PortSwitch HC2 device and is it used in more that one jM line?

     

    Please login or register to see this spoiler.

     

  • Topic Author
  • Posted (edited)

    @Rover centralSceneSupport, sceneActivation have been fixed.

    By the way initOnStartup is set by default to false also for centralSceneSupport and sceneActivation.

    @SmartLifeSystems @[deviceID]>lastBreached has been fixed

     

     

     

    Please login or register to see this attachment.

    Edited by cag014
    Posted
    18 hours ago, Rover said:

    I can see this on the end of the day.

    The  High REST API response time is still quiet.

    The iClock function has worked tonight ?

    Posted
    On 10/23/2020 at 2:00 AM, cag014 said:

    When using AOQ internal GV, on every restart it's start from default value as defined in varArray.

    By using system's GV all values are stored and retrieved on every AOQ restart.

    For example: you have defined variable for alarm

    global4local= {false,gVarName="",varArray={Alarm="disarmed",

    now in some point you have armed the alarm and Alarm="armed".

    If you restart AOQ, the Alarm will be set again to disarmed, but if you're using system GV the last value is stored and retrieved on restart. So in this case even after restart Alarm value is armed.

    By the way to use system GV you need to set not ony gVarName, but to set the first value true as well.

    global4local= {true,gVarName="AOQtank",varArray={Alarm="disarmed",

     

    Please define GV in system before usage (AOQ doesn't create the GV)

    In Advanced User's Guide 4.0: global4local = {false, gVarName="aosVar", -- system’s global variable definition to store script’s local variables.

    What means here false or true? Why in Advanced User's Guide 4.0 a different advice?

    Posted
    22 minutes ago, Rover said:

    In Advanced User's Guide 4.0: global4local = {false, gVarName="aosVar", -- system’s global variable definition to store script’s local variables.

    What means here false or true? Why in Advanced User's Guide 4.0 a different advice?

    [24.10.2020] [08:56:00] [DEBUG] [AOQ66]: 5.6Initializing jS2n, jP2n, global and userKeyWord arrays...

    [24.10.2020] [08:56:04] [ERROR] [QUICKAPP66]: QuickApp crashed

    [24.10.2020] [08:56:04] [ERROR] [QUICKAPP66]: /usr/share/lua/5.3/json/util.lua:55: bad argument #1 to 'for iterator' (table expected, got number)

    when global4local= {true,gVarName="aoqVar",varArray={Tuinpomp2uur="Uit",Achterkant

    Posted

    {0,"`VoordeurSwitch`",{lineState={" if {`VoordeurSwitch`:sceneActivation=`But3Release`}"},

    initOnStartup=false,state="sceneActivation=11~45",trueAct={

        {"VoordeurSwitch-%HC3","sendEmail,2","Disarm"}}}},

     

    Why do I get 2 emails (1 for 33-But3Hold and 1 for 35-But3Release)?

    Posted

    Cag,

    I have slave switch 319 listed in Js 

    In Device
    lampBoven:358:overLoop
    Emulation in process

    If I use in line overLooplampBoven it  generates error its not found

     

    Please advice,

    //Sjakie
     

    Icon doest change either on/off

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

    In Advanced User's Guide 4.0: global4local = {false, gVarName="aosVar", -- system’s global variable definition to store script’s local variables.

    What means here false or true? Why in Advanced User's Guide 4.0 a different advice?

    Why different advice? Just different name for GV... it could be any name.

    The false or true is used to store or not the AOQ GVs.  You can define GV name, but by setting false it wouldn't be saved. That's all

    4 hours ago, Rover said:

    {0,"`VoordeurSwitch`",{lineState={" if {`VoordeurSwitch`:sceneActivation=`But3Release`}"},

    initOnStartup=false,state="sceneActivation=11~45",trueAct={

        {"VoordeurSwitch-%HC3","sendEmail,2","Disarm"}}}},

     

    Why do I get 2 emails (1 for 33-But3Hold and 1 for 35-But3Release)?

    I believe after 33-But3Hold keyfob always sends But3Release, isn't?

    Posted
    9 minutes ago, cag014 said:
    6 hours ago, Rover said:

    In Advanced User's Guide 4.0: global4local = {false, gVarName="aosVar", -- system’s global variable definition to store script’s local variables.

    What means here false or true? Why in Advanced User's Guide 4.0 a different advice?

    Why different advice? Just different name for GV... it could be any name.

    The false or true is used to store or not the AOQ GVs.  You can define GV name, but by setting false it wouldn't be saved. That's all

    It is not about the name of the system GV of course, its about:

    1. In guide is adviced to use a GV + false, while you statet now to use true.
    2. If you use true, then: system crash:

    [24.10.2020] [08:56:00] [DEBUG] [AOQ66]: 5.6Initializing jS2n, jP2n, global and userKeyWord arrays...

    [24.10.2020] [08:56:04] [ERROR] [QUICKAPP66]: QuickApp crashed

    [24.10.2020] [08:56:04] [ERROR] [QUICKAPP66]: /usr/share/lua/5.3/json/util.lua:55: bad argument #1 to 'for iterator' (table expected, got number)

    when global4local= {true,gVarName="aoqVar",varArray={Tuinpomp2uur="Uit",Achterkant

    Posted
    13 minutes ago, cag014 said:
    4 hours ago, Rover said:

    {0,"`VoordeurSwitch`",{lineState={" if {`VoordeurSwitch`:sceneActivation=`But3Release`}"},

    initOnStartup=false,state="sceneActivation=11~45",trueAct={

        {"VoordeurSwitch-%HC3","sendEmail,2","Disarm"}}}},

     

    Why do I get 2 emails (1 for 33-But3Hold and 1 for 35-But3Release)?

    I believe after 33-But3Hold keyfob always sends But3Release, isn't?

    Yes you get always a Hold + Release. That is why I try to filter one of the two in the lineState, but this do not work! Why not?

    (Before you say that this an unnecessairy complex way to filter 1 button: I am using more buttons in the lineState, but there is only one showed here in order to define the issue).

    Posted

    @cag014 i have a question. Does the slave switch fqa that you uploaded work with wall plugs?

    Does the slave switch fqa show the energy consumption?

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

    @cag014 i have a question. Does the slave switch fqa that you uploaded work with wall plugs?

    Does the slave switch fqa show the energy consumption?

    Yes, it does

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

    It is not about the name of the system GV of course, its about:

    1. In guide is adviced to use a GV + false, while you statet now to use true.
    2. If you use true, then: system crash:

    [24.10.2020] [08:56:00] [DEBUG] [AOQ66]: 5.6Initializing jS2n, jP2n, global and userKeyWord arrays...

    [24.10.2020] [08:56:04] [ERROR] [QUICKAPP66]: QuickApp crashed

    [24.10.2020] [08:56:04] [ERROR] [QUICKAPP66]: /usr/share/lua/5.3/json/util.lua:55: bad argument #1 to 'for iterator' (table expected, got number)

    when global4local= {true,gVarName="aoqVar",varArray={Tuinpomp2uur="Uit",Achterkant

    Never tested on HC3, looks like json.decode() more robust...

    Fixed

     

    Please login or register to see this attachment.

    Posted
    22 minutes ago, cag014 said:

    Never tested on HC3, looks like json.decode() more robust...

    Fixed

     

    Please login or register to see this attachment.

    Works ?

    Just a little bit crowded on debug page: 

    Please login or register to see this spoiler.

     

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

    Works ?

    Just a little bit crowded on debug page: 

    Please login or register to see this spoiler.

    I must to delete SmartLifieSystems' debug line..

     

    Please login or register to see this attachment.

    Posted (edited)
    8 hours ago, Rover said:

    Yes you get always a Hold + Release. That is why I try to filter one of the two in the lineState, but this do not work! Why not?

    (Before you say that this an unnecessairy complex way to filter 1 button: I am using more buttons in the lineState, but there is only one showed here in order to define the issue).

    @cag014 why is the But3Hold not filtered?

     

     

     

    22 minutes ago, cag014 said:

    I must to delete SmartLifieSystems' debug line..

     

    Please login or register to see this attachment.

    The [24.10.2020] [23:09:25] [DEBUG] [AOQ66]: onTime end loop 93 4 is still there...

    Edited by Rover
  • Topic Author
  • Posted (edited)
    8 minutes ago, Rover said:

    @cag014 why is the But3Hold not filtered?


    I thought I answered... sorry

    As I understood you're sending email on But3Hold and But3Release events, but afte But3Hold pressed again But3Release is activated, right?

    Why you're sending email on But3Hold ? it will be sent on But3Release anyhow.

    Since But3Hold activates two events (But3Hold and But3Release) send email just on one of them.

    I mean remove sending email from But3Hold

     

     

    Edited by cag014
    Posted (edited)
    52 minutes ago, cag014 said:


    I thought I answered... sorry

    As I understood you're sending email on But3Hold and But3Release events, but afte But3Hold pressed again But3Release is activated, right?

    Why you're sending email on But3Hold ? it will be sent on But3Release anyhow.

    Since But3Hold activates two events (But3Hold and But3Release) send email just on one of them.

    I mean remove sending email from But3Hold

     

     

    {0,"`VoordeurSwitch`",{lineState={" if {`VoordeurSwitch`:sceneActivation=`But3Release`}"},

    initOnStartup=false,state="sceneActivation=11~45",trueAct={

        {"VoordeurSwitch-%HC3","sendEmail,2","Disarm"}}}}

     

    I am not sending emails from But3Hold, but I want to send email only if lineState condition is true, that means only if But3Release and not if But3Hold.

     

     

     

    59 minutes ago, Rover said:

    @cag014 why is the But3Hold not filtered?

     

     

     

    The [24.10.2020] [23:09:25] [DEBUG] [AOQ66]: onTime end loop 93 4 is still there...

    Please free me from this loop ?

    Edited by Rover

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