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)
    11 hours ago, Mohamed Refaat said:

    is there a way to reboot a slave controller through AOQ RUNNING ON THE MASTER ??

    @cag014

    Yes, try:

    trueAct={"`hubname`,"reboot"}

    Edited by cag014
    Posted

    hi,

    did you ever think of adding a "heartbeat" for your AOQ that can be sensed by a scene or another AOQ (preferably)on the same controller or another controller.

    that can be benefecial to know the status of a specific AOQ and if it is running correctly or if it is failing for some reason and to monitor its status in an automatic way and taking action accordingly rather than interfering by human. @cag014

  • Topic Author
  • Posted
    12 hours ago, Mohamed Refaat said:

    hi,

    did you ever think of adding a "heartbeat" for your AOQ that can be sensed by a scene or another AOQ (preferably)on the same controller or another controller.

    that can be benefecial to know the status of a specific AOQ and if it is running correctly or if it is failing for some reason and to monitor its status in an automatic way and taking action accordingly rather than interfering by human. @cag014

    Every QA in the system is restarted automatically in one minute, if it failed.

    So, if any unexpected error occured, AOQ will be restarted.

    Using another AOQ will need "heartbeat" as well, right? 

    In any case, any user can add jM line as a "heartbeat", to turn ON/OFF light, to execute TTS message and etc.

     

    On second thought it might be interesting to create QA that checking any crashing in the system (scene or QA) and to notify the user about that.

    Let me see what can I do....

     

     

     

     

    Posted
    5 hours ago, cag014 said:

    Every QA in the system is restarted automatically in one minute, if it failed.

    So, if any unexpected error occured, AOQ will be restarted.

    Using another AOQ will need "heartbeat" as well, right? 

    In any case, any user can add jM line as a "heartbeat", to turn ON/OFF light, to execute TTS message and etc.

     

    On second thought it might be interesting to create QA that checking any crashing in the system (scene or QA) and to notify the user about that.

    Let me see what can I do....

     

     

     

     

     

    I will tell you my case, I had recently a controller which faied partially, where some services stopped included web services and other services continue working included zwave services. one of stopped things were the aoq and without my ability to log in remotely to fix as the web services was down, i wished if other controller could monitor (as i have other standalone controllers onsite) and take action accordingly.
    can we make something to monitor controller services ?? as I knew recently that we can know the status through the following
    http://"controller_ip_address"/services/system/servicesStatus.php

    My ultimate current goal (and I know that this maybe not your interest from your scene) is to use your aoq beside - being tremendous scenes replacing tool - to be a massive monitoring tool for its controller and other slaves controllers (as HC3 proves to me every day its unpredictable and how it can be a big failure point) and taking actiong accordingly (either by rebooting controllers or by applying redundant rules or even by sending emails for the team to interfere).

  • Topic Author
  • Posted

    Sounds reasonable... but what actually doesn't work in your case?

    FibaroServices or RempteAccess?

    Please login or register to see this spoiler.

     

    Posted
    54 minutes ago, cag014 said:

    Sounds reasonable... but what actually doesn't work in your case?

    FibaroServices or RempteAccess?

    Please login or register to see this spoiler.

    remote access stopped.

    aoq was not working too, am not sure under which category it is.

    These two things i am sure of, other functions may have stopped as well but due to limited access, couldn't do a complete assesment.

     

     

  • Topic Author
  • Posted (edited)
    3 minutes ago, Mohamed Refaat said:

    remote access stopped.

    aoq was not working too, am not sure under which category it is.

    These two things i am sure of, other functions may have stopped as well but due to limited access, couldn't do a complete assesment.

     

     

    OK, will work on that... but currently I am on vacation (skiing) till next weekend.

    Will keep you posted.

     

    Question: When you don't have an access, is AOQ continue to work?

    Edited by cag014
    Posted (edited)

    no, it stopped, thats why i wanted to monitor it from athor controller's aoq through heartbeat.

     

    have nice vacation. take care

    Edited by Mohamed Refaat
    • Thanks 1
    Posted
    On 3/2/2023 at 5:10 PM, Mohamed Refaat said:

    remote access stopped.

    aoq was not working too, am not sure under which category it is.

    These two things i am sure of, other functions may have stopped as well but due to limited access, couldn't do a complete assesment.

     

     

    Whats your Api Post Time?

    Posted
    18 hours ago, SmartLifeSystems said:

    Whats your Api Post Time?

    First time to hear about it, clarify more plz

    Posted
    12 hours ago, Mohamed Refaat said:

    First time to hear about it, clarify more plz

     

    Please login or register to see this attachment.

    Posted
    12 hours ago, SmartLifeSystems said:

     

    Please login or register to see this attachment.

    0.339  --- whats the meaning of that ??

    Posted
    14 hours ago, Mohamed Refaat said:

    0.339  --- whats the meaning of that ??

     

    Because when this time is too high for me, my HC3 is too slowly, and the same problem occured at me already than at you.

    But I can't understand what is the problem.

    I cannot carry this time below. I have some lines that increase it, but I need them.

    Posted (edited)

    Hi @cag014,

    I postpone the start of a QAfunction with 15 minutes if condition=true.

    {"`QA`", '+QAfunction',"900","if {condition=true}"},

    Meanwhile in the 15 minutes another condition has been changed, so that I don't want to execute this QAfunction at the end of the 15 minutes anymore.

    How to put a condition in this line so that not only the start of the postponing is conditional, but also have it conditional after the postponing?

    Edited by Rover
  • Topic Author
  • Posted (edited)
    On 3/12/2023 at 5:34 PM, Rover said:

    Hi @cag014,

    I postpone the start of a QAfunction with 15 minutes if condition=true.

    {"`QA`", '+QAfunction',"900","if {condition=true}"},

    Meanwhile in the 15 minutes another condition has been changed, so that I don't want to execute this QAfunction at the end of the 15 minutes anymore.

    How to put a condition in this line so that not only the start of the postponing is conditional, but also have it conditional after the postponing?

     

    Use timerXX,900 instead of "pure" delay number, this is the exact reason why timer has been added.

    For example

    {"`QA`", '+QAfunction',"timerTest,900","if {condition=true}"},

    In this case if condition is true the timer started and at the end of the delay, the same condition will be checked again.

    please make sure to define unique timer name for actions. Timer name defined as marked red in the jM line above.

    Please note, that two lines will be displayed at console:

    one line will include the command and "set by timeTest,900" and another line when the command actually executed after the delay.

    Here an example of my AOS (same as shown at AOQ)
    [DEBUG] 12:23:53

    [DEBUG] 12:27:05: jM{7}  Foyer:879:Motion[false] turnOff{strRGB,flrPassage} by timerPass,15s  if {psMS=false and flrMS=false}
    [DEBUG] 12:27:20: jM{7}Ti  Foyer:879:Motion[false] turnOff {strRGB,flrPassage)  if {psMS=false and flrMS=false}

     

    Let me know if it solves your problem.

    Edited by cag014
    • Thanks 1
  • Topic Author
  • Posted (edited)
    On 3/10/2023 at 8:45 PM, Mohamed Refaat said:

    @cag014 any updates on discussed ??

    Since according to you the HC3 is stopping to run QA and scenes, I don't think that by running another AOQ or any other scene can help.

    I think the only way to monitor HC3 is to use AOR which is running on PC. 

    Please take a look on

    Please login or register to see this link.

    and let me know if this direction (as an idea) looks good for you.

    Currently I'm working to update the AOR with the same changes as AOQ and intend to release it by the end of this week (in any case I can post the code for you on this chat).

    I will add a special option to monitor AOQ and/or AOS, as you stated "heartbeat".

     

     

    Edited by cag014
    Posted
    4 hours ago, cag014 said:

     

    Use timerXX,900 instead of "pure" delay number, this is the exact reason why timer has been added.

    For example

    {"`QA`", '+QAfunction',"timerTest,900","if {condition=true}"},

    In this case if condition is true the timer started and at the end of the delay, the same condition will be checked again.

    please make sure to define unique timer name for actions. Timer name defined as marked red in the jM line above.

    Please note, that two lines will be displayed at console:

    one line will include the command and "set by timeTest,900" and another line when the command actually executed after the delay.

    Here an example of my AOS (same as shown at AOQ)
    [DEBUG] 12:23:53

    [DEBUG] 12:27:05: jM{7}  Foyer:879:Motion[false] turnOff{strRGB,flrPassage} by timerPass,15s  if {psMS=false and flrMS=false}
    [DEBUG] 12:27:20: jM{7}Ti  Foyer:879:Motion[false] turnOff {strRGB,flrPassage)  if {psMS=false and flrMS=false}

     

    Let me know if it solves your problem.

    Yes, this is the functionality I have needed 😀. (Would you add this to the AOQ Advanced User’s Guide?)

  • Topic Author
  • Posted
    1 hour ago, Rover said:

    Yes, this is the functionality I have needed 😀. (Would you add this to the AOQ Advanced User’s Guide?)

    It's there as part of delay parameter. 

    See Device Control section.

    It might be explained somewhere else, but didn't find any reasonable paragraph for that. Any suggestion will be appreciated.

    Posted
    11 hours ago, cag014 said:

    Since according to you the HC3 is stopping to run QA and scenes, I don't think that by running another AOQ or any other scene can help.

    I think the only way to monitor HC3 is to use AOR which is running on PC. 

    Please take a look on

    Please login or register to see this link.

    and let me know if this direction (as an idea) looks good for you.

    Currently I'm working to update the AOR with the same changes as AOQ and intend to release it by the end of this week (in any case I can post the code for you on this chat).

    I will add a special option to monitor AOQ and/or AOS, as you stated "heartbeat".

     

     

    My idea is to monitor it through another AOQ running on a seperate processor on the same site. It happens that I have multi processors on the same site, each has its own slaves and its own scenarios.
    So, my idea is to let them monitor each other in a redundant way through AOQ heartbeats to have a better overview about the sight in an automated way.

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