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

@cag014 Everything O.K.?

  • 3 weeks later...
Posted (edited)

Hi cag! Is it possible in the new Yubii Home app the push notifications don't working?

Edited by SmartLifeSystems
Posted
On 2/22/2024 at 7:00 PM, SmartLifeSystems said:

Hi cag! Is it possible in the new Yubii Home app the push notifications don't working?

Have somebody this problem?

  • 3 weeks later...
Posted

I am really worried about @cag014, the father of All-In-One. His last reaction was on 27 december 2023...

Who knows more?

  • 4 months later...
Posted

Hi!

 

I wanted to create a line, where if the garden gate (Device ID 306) is in opened, opening or closing state for more than 3 mins, it will send an alert. Instead, I have a line, which warns instantly the garden gate gets into any of the state:
 

{3,"306",{state="state==Closing or Opening or Open",trueAct={"Gardengate open for more than 3 mins","sendPush,429","Please check the gate!"}}},

 

Could someone please recommend a fix for my case?

Posted

Hi cag!

 

I installed the 5.161 beta version and my CPU usage is very high. Have you any idea what is the problem?

 

Have somebody this problem?

 

Thanks!

Please login or register to see this attachment.

 

  • 2 weeks later...
  • Topic Author
  • Posted
    On 8/5/2024 at 6:32 PM, bbolgar said:

    Hi!

     

    I wanted to create a line, where if the garden gate (Device ID 306) is in opened, opening or closing state for more than 3 mins, it will send an alert. Instead, I have a line, which warns instantly the garden gate gets into any of the state:
     

    {3,"306",{state="state==Closing or Opening or Open",trueAct={"Gardengate open for more than 3 mins","sendPush,429","Please check the gate!"}}},

     

    Could someone please recommend a fix for my case?

    {3,"306",{state="state==Closing or Opening or Open",timeoutAct={"Gardengate open for more than 3 mins","sendPush,429","Please check the gate!"}}},

    • Like 1
  • Topic Author
  • Posted
    On 8/9/2024 at 5:12 PM, SmartLifeSystems said:

    Hi cag!

     

    I installed the 5.161 beta version and my CPU usage is very high. Have you any idea what is the problem?

     

    Have somebody this problem?

     

    Thanks!

    No, no problem at all. Do you have any disconnected devices or do you have unexpected delays on commands execution?

    Please login or register to see this attachment.

    • 2 months later...
    Posted (edited)

    Hi @cag014, please tell me what is wrong:

    Please login or register to see this spoiler.

     

    Edited by Rover
  • Topic Author
  • Posted

    Currently the range valuated as value > minimum and < maximum. Means the value 10 is not in range of 10~12.

    Please change the range to 9~12 and see if it works.

    It might be a good idea to include the value in the range like value >= minimum and <= maximum.  What do you think?

  • Topic Author
  • Posted

    Have change the range evaluation as mentioned in the previous post at the next release.

    value >= min. range and value<= max. range

     

     

    Posted (edited)
    On 11/1/2024 at 2:05 AM, cag014 said:

    Have change the range evaluation as mentioned in the previous post at the next release.

    value >= min. range and value<= max. range

     

     

    Thanx @cag014

    Yes, that is more logical and intuitive!

    In this case I want to select a month range (you could also have wanted to select a day range or a year range or an hour range).

    Selecting the range october until march the selection could be $month = 10~3, but this is not value >= min. range and value<= max. range.

    Here I should like to have value >= min. range and value<= max. range but if min. range > max. range, then value >= min. range OR value<= max. range.

    I know that $month != 4~9 is an alternative way to specify this month range.

    Edited by Rover
    • Thanks 1
    • 3 weeks later...
    Posted (edited)
    On 10/31/2024 at 3:20 AM, cag014 said:

    Currently the range valuated as value > minimum and < maximum. Means the value 10 is not in range of 10~12.

    Please change the range to 9~12 and see if it works.

    It might be a good idea to include the value in the range like value >= minimum and <= maximum.  What do you think?

    And what is the effective range at the moment for 9~12? Is that 10 until 11 or 10 until 12?

    If it is 10 until 11, how to get a range 10 until 12?  Is it month = 9~13?

    Edited by Rover
  • Topic Author
  • Posted
    On 11/22/2024 at 10:58 AM, Rover said:

    If it is 10 until 11, how to get a range 10 until 12?  Is it month = 9~13?

    Yes, that the solution right now.

    Unfortunately, my HC3 is dead, sent to repair

    Posted

    Happy Tuesday Cag014, 
    I have similar requirements as magicman, but somehow the 2nd line is not doing what it's supposed to

     

    1st line works as intended. When either condition (iHumid or gvAirChange) is true, switch is set to On 

       {0, "&iHumid|&gvAirChange",{lineState={"{&iHumid:value>0}{&gvAirChange:value=true}"},trigAct={"`BrookventSwitchHigh`","turnOn",""}}},

     

    2nd line should switch device off if both conditions are true

       {0, "&iHumid|&gvAirChange",{lineState={"{&iHumid:value=0|&gvAirChange:value=false}"},trigAct={"`BrookventSwitchHigh`","turnOff",""}}},
     

    Though iHumid is 0 and gvAirChange is false, the switch remains on. What am I missing?

  • Topic Author
  • Posted (edited)
    On 11/26/2024 at 7:21 PM, Pretender said:

    Happy Tuesday Cag014, 
    I have similar requirements as magicman, but somehow the 2nd line is not doing what it's supposed to

     

    1st line works as intended. When either condition (iHumid or gvAirChange) is true, switch is set to On 

       {0, "&iHumid|&gvAirChange",{lineState={"{&iHumid:value>0}{&gvAirChange:value=true}"},trigAct={"`BrookventSwitchHigh`","turnOn",""}}},

     

    2nd line should switch device off if both conditions are true

       {0, "&iHumid|&gvAirChange",{lineState={"{&iHumid:value=0|&gvAirChange:value=false}"},trigAct={"`BrookventSwitchHigh`","turnOff",""}}},
     

    Though iHumid is 0 and gvAirChange is false, the switch remains on. What am I missing?

    Have tested your 2nd line (using same variable names) and it works fine.

    Are you sure that iHumid variable is numeric and gvAirChange has values true/false ?

    Anyhow could you please post the debug view

    please make sure that debug levels set to 

     dbgInfo =true

    dbgFalseState =true 

     

    Now we'll see why 2nd line is not executed (I mean the condition will be displayed with current value of each variable)

    Edited by cag014
    Posted

    Please login or register to see this image.

    /monthly_2024_12/image.png.e2edf8dea1856d135cfd5337e2194b6f.png" />

    image.png.3f1b0defe2e57d73aa1a7e30767d7506.png

    image.png.5e40789841664f80d6f86545231d1867.png

    image.png.d3d377af7531cb263d3e097c5e6a7d25.png

    image.png.75c366df32ca4188a02c486e2ba0c6b8.png

     

    I hope this is the information you're asking for, but let me know if not... I hope I put the dbgInfo and dbgFalseState to the right place.  Only additional change I made since I posted the initial line is adding the timeslot 

      {0, "&iHumid|&gvAirChange|`CO2`",{lineState={"{&iHumid:value>0}{&gvAirChange:value=true}{`CO2`:value>800}"},timeSlot="06:00~22:55",trigAct={"`BrookventSwitchHigh`","turnOn",""}}},
     

    {0, "&iHumid|&gvAirChange|`CO2`",{lineState={"{&iHumid:value=0|&gvAirChange:value=false|`CO2`:value<=800},dbgInfo=true,dbgFalseState=true"},timeSlot="06:00~22:55",trigAct={"`BrookventSwitchHigh`","turnOff",""}}},

     

     

    One other thing I found, but not sure if it matters... for iHummid I added a line 

    global4local = {true,gVarName="aosHummid",varArray={iHumid="init:0"}}

     

    I tried to do similar for the gvAirChange, but that led to a failure of the script, I assume due to the fact that aosHummid is a Variable (0), but gvAirChange is a predefined Variable (true/false)

    global4local = {true,gVarName="gvAirChange",varArray={iAirChange="init:0"}}

    Posted

    Just recognized while letting the script run for a bit... after approx 15 minutes for a moment the high mode is switched off, but within a minute, switched back on... will keep monitoring for a bit longer...

     

  • Topic Author
  • Posted
    On 12/4/2024 at 11:20 PM, Pretender said:

    One other thing I found, but not sure if it matters... for iHummid I added a line 

    global4local = {true,gVarName="aosHummid",varArray={iHumid="init:0"}}

     

    I tried to do similar for the gvAirChange, but that led to a failure of the script, I assume due to the fact that aosHummid is a Variable (0), but gvAirChange is a predefined Variable (true/false)

    global4local = {true,gVarName="gvAirChange",varArray={iAirChange="init:0"}}

    I think you have an issue here.

    The gVarName means the global variable to safe your local variables (some kind of container - not a variable for use) 

    For example

    global4local = {true,gVarName="aosGvar",varArray={iHumid="init:0",gvAirChange="init:true"}}

    To use example above please define aosGvar global variable in HC2.

     

    Now you can use iHumid and gvAirChange variables in your code.

    Please notice that when you restart AOS the iHumid  initialized to 0 and gvAirChange initialized to  true

     

     

    Posted

    Thanks a lot as usual. I assume that this line is building in internal array for variables, but I can't use predefined variables from the Variable Panel, right?
    global4local = {true,gVarName="aosGvar",varArray={iHumid="init:0",gvAirChange="init:true"}}

    While iHumid is calculated within the script (you helped me earlier with that), gvAirChange should triggered through either of 2 virtual devices which I can use to set the variable from false to true in case I want to start an intense air cleaning in the house (e.g. in the mornings for 30 minutes), or on demand when cooking. After 30 minutes it should be set back to false. 

     

    Only alternate solution would be to check the value of a virtual device label, but would like to avoid that, as I would have to check/program 2 different virtual devices.
     

    I recognized though that if I try to reference global variables in the AOS script I get issues with other scripts and strange json error messages. After running the FillHomeTable script everything is back to normal.

     

    I assume in the AOS script I can't embed global variables through lines like the below at the beginning of the script?

           local iAirChange = fibaro:getGlobal("gvAirChange")

     

    Let me know if not well enough described. 

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