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
1 hour ago, cag014 said:

So you have primary HC2 and slave HC2?

Device are on slave HC2?

It should be interesting to see if AOQ can directly control slave HC2. Right now I control devices on my primary HC2.

not any more. I replaced my master hc2 with hc3, and now i have a standalone hcl just for garden

But it's not a problem if you need feedback: i can restore the old hc2 with no device, set hcl as slave import device and test. For my needs ( 4 sprinkler, one water pump, and 2 lights) in garden hcl has enough power.

And don't worry...i switched to hc3 cause after 3 years everything was working perfectly on hc2...too boring:-)

  • Topic Author
  • Posted (edited)

    @Rover

    Thanks... I have my moments?

    17 minutes ago, gggizmo said:

    not any more. I replaced my master hc2 with hc3, and now i have a standalone hcl just for garden

    But it's not a problem if you need feedback: i can restore the old hc2 with no device, set hcl as slave import device and test. For my needs ( 4 sprinkler, one water pump, and 2 lights) in garden hcl has enough power.

    And don't worry...i switched to hc3 cause after 3 years everything was working perfectly on hc2...too boring:-)

    No. That's better to use primary controller.

    Edited by cag014
    Posted

    Working now with AOS and AOQ I feel the need for calling AOS/AOQ lines as subroutine from a line or from a scene. In that case a line should be named.

  • Topic Author
  • Posted (edited)

    Please share an example..

    Today you can run action of the line from other line.

    {0,"400",{state="value=true",truAct={"600","turnOn",""},falseAct={"600","turnOff",""}}},

     

    {0,"500",{statue="value=true",trueAct=("400>1","runAction,trueAct",""}}},

    Edited by cag014
    Posted
    2 minutes ago, cag014 said:

    Please share an example..

    For example I should like to have a callable line that checks doors and windows on the open/closed state and change a global variable if a door or window is open.

    Other lines (f.i. arm for night, or arm for away) call this line and also other "subroutines" like the one that arms doors and windows and checks whether this has been successful.

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

    For example I should like to have a callable line that checks doors and windows on the open/closed state and change a global variable if a door or window is open.

    Other lines (f.i. arm for night, or arm for away) call this line and also other "subroutines" like the one that arms doors and windows and checks whether this has been successful.

    But if the global variable reflects the windows/doors states, just check the variable in other lines.

    Posted
    1 hour ago, cag014 said:

    But if the global variable reflects the windows/doors states, just check the variable in other lines.

    You mean that the global could sync with each change of door/window sensors?

  • Topic Author
  • Posted (edited)

    Yes, you can sync variable or you can check the doors/windows status on line.

    for example:

    1. define sensors and groups in jS2n{}

    jS2n={

    door1=400,door2=500, wnd1=600,wnd2=700,

    dwGrp="`door1`|`door2`|`wnd1`|`wnd2`",  -- as list of devices of the line

    dwGrpState="`door1`,`door2`,`wnd1`,`wnd2`" - as list of devices for condition

    }

    2. example to update global variable dwGlobal

    {0, "`dwGrp`",{state="value=true",trueAct={"dwGlobal","setGlobal","breached"},falseAct={{"dwGlobal","setGlobal","safe","{`dwGrpState`:value=false}"}}},

     Now dwGlobal changes to "breached" or "safe" according to the doors/windows states and can be used as condition in other lines.

     

    3. example to check the status on line let's say at 1am and if all safe to arm alarm. No global variable required.

    (0,"$24clock",{state="value=01:00",trueAct={"myZone","aramAlarm","","{`dwGrpState`:value=false}"}}},

     

     

     

     

     

    Edited by cag014
    Posted

    Looks very smart! ?

    Now a door is open and I want to generate a notification on which door is open, how to do this?

    Now a window/door has not succeeded in getting armed and I want to generate a notification on which window/door, how to do this?

  • Topic Author
  • Posted (edited)

    Notification on which door opened as follow (in this example TTS generated)

    {0, "`dwGrp`",{state="value=true",trueAct={{"dwGlobal","setGlobal","breached"},{"",tts","$name is breached"}},falseAct={{"dwGlobal","setGlobal","safe","{`dwGrpState`:value=false}"}}}},

     

    in HC3 the alarm is armed even the sensor is breached. It will alarm on next breach.

    In HC2 I use forceArm command to arm the sensor even if the sensor is breached.

     

    To notify on breached sensors at any time could be done as well, but it's a little bit tricky.

    1. You need to set variable for every sensor and during the arming alarm to use them.

    2.Every sensor will send notification, but no variables required.

    Let me know if you do need this option and will provide an example

     

    Edited by cag014
    Posted

    And when using Pushover in AOQ for every door/window that was open? This is a format using a Pushover QA

        requestBody = json.encode({"Raam Open","0,""none","Velux Kamer Gloria"})
        fibaro.call(Pushover,"Send_Pushover",requestBody)
  • Topic Author
  • Posted

    What it is pushover QA? Is it your QA?

    By the way you can call any QA from AOQ with all parameters...

    Posted
    3 minutes ago, cag014 said:

    What it is pushover QA? Is it your QA?

    By the way you can call any QA from AOQ with all parameters...

    No, I am not so smart to create this, made by @FBerges

    How to embed these 2 statements in AOQ?

  • Topic Author
  • Posted (edited)

    Why?

    AOQ has ability to send push notification (standard and interactive) without any QA.

    Just set

    {"subject","sendPush","body message"}

    or

    {"subject","sendiPush","body message"} -- Special optional argument could be applied, ‘run’ and executed when user presses RUN button on the message in mobile application.

    • To run scene use “run_” (e.g. “sendiPush,run_42”)
    • To run device use “run{command [,arg1,arg2….argN]” (e.g “sendiPush,run41{setLevel,99}”)
    Edited by cag014
    Posted
    2 minutes ago, cag014 said:

    Why?

    AOQ has ability to send push notification (standard and interactive) without any QA.

    Just set

    {"subject","sendPush","body message"}

    or

    {"subject","sendiPush","body message"} -- Special optional argument could be applied, ‘run’ and executed when user presses RUN button on the message in mobile application. To run scene use “run_” (e.g. “sendiPush,run_42”) o To run device use “run{command [,arg1,arg2….argN]” (e.g “sendiPush,run41{setLevel,99}”)

    The standard push messages of Fibaro are to limited: no different sounds, secure service available (while Fibaro push often fails),  no persistent messaging, no image including, no support of iOS critical alerts, ...

    So many people adopted Pushover with great satisfaction, like me. But I have not used the push possibilities of AOQ with iOS and I will try this.

    Posted
    3 minutes ago, Rover said:

    The standard push messages of Fibaro are to limited: no different sounds, secure service available (while Fibaro push often fails),  no persistent messaging, no image including, no support of iOS critical alerts, ...

    So many people adopted Pushover with great satisfaction, like me. But I have not used the push possibilities of AOQ with iOS and I will try this.

    I do no see different sounds for sendPush or sendiPush  in AOS Advanced guide.

  • Topic Author
  • Posted

    Works very well for me, but on Android.

    Any how AOQ can call your QA.

    Please post the QA and I'll guide you how to use it.

    Posted (edited)
    51 minutes ago, cag014 said:

    Works very well for me, but on Android.

    Any how AOQ can call your QA.

    Please post the QA and I'll guide you how to use it.

     

     

    Edited by Rover
  • Topic Author
  • Posted

    @Rover

    By the way, AOS/AOQ have many option to perform same task differently (even I'm finding always new ways to do same task more efficiently).

    For example regrading your lights with wait time for one hour, it could be done also like that:

    Assuming your motion sensor defines at first line in jM{} table (marked as bold)

    Please login or register to see this code.

     

    The idea when sceneActivation = 10 the BewegingHal suspended and after span time of 60 minutes light turned OFF and  BewegingHal activated again.

    When sceneActivation=11 then lights turned OFF and BewegingHal activated also.

    Posted

    I was so stupid to have sent you the Pushover.fqa with user en token codes, so I am getting stalked with messages of idiotes ?

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