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

    just an example,. Every lines where a condition is present to check if light is on or off by value 

    Interesting...

    Please download attachment.

    By the way this attachment has an option to use slave global variables. Same format as devices &<varName>'<slaveName>.

    For example to use global "Test" in HC2 -> use in jM as &Test'hc2.

    Let me know if it fix the issue.

     

    Please login or register to see this attachment.

     

    By the way please check CPU load, should be less than before.

    Edited by cag014
    Posted
    2 hours ago, cag014 said:
    5 hours ago, Rover said:

    --[[

    trueAct={"<QA-ID>", '+Send_Pushover,json[["title","priority","sound","message"]]' ,""}...

    --]]

    What do you mean how to use it?

    I thought it works

    Sorry that I made myself not clear enough.

    Yes, Pushover works!

    But --[[ in combination with "message"]] disturbs the possibility of giving comment status to a block of text.

    2 hours ago, cag014 said:
    5 hours ago, Rover said:

    How to print a value for debugging?

    Post an example of what you need to print, but all values of all items  are displayed in HCwebEye...

    I will have a better look at the possibilities of HCwebEye.

  • Topic Author
  • Posted

    Please post exactly what you're trying to do, including text message

     

    Posted
    34 minutes ago, cag014 said:

    Please post exactly what you're trying to do, including text message

    --[[
    {3,"`Voordeur`",{state="value=true",
    trueAct={{"`Pushover`", '+Send_Pushover,json[["Voordeur","0","none","Open"]]' ,""}},
    falseAct={{"`Pushover`", '+Send_Pushover,json[["Voordeur","0","none","Dicht"]]' ,""}},
    timeoutAct={{"&VoordeurStatus","setGlobal","TeLangOpen"},{"`Pushover`", '+Send_Pushover,json[["Voordeur","0","none","Te lang open"]]' ,""}}}},
    --]]
  • Topic Author
  • Posted

    Yes, same problem in Lua code.

    That happens in your case, because your table after json.encode() has [...] square brackets. In other cases it's defferent.

    Nothing I can help, this is a json format.

     

    1 hour ago, Rover said:

    Sorry that I made myself not clear enough.

    Yes, Pushover works!

    But --[[ in combination with "message"]] disturbs the possibility of giving comment status to a block of text.

    I will have a better look at the possibilities of HCwebEye.

    Since the code constantly updates values, actions and conditions it is not so easy to find the right place to print data, you can end-up with endless print outs.

    Please tell me what you need to print and where, it might be a good idea to include printout option in AOQ.

    By the way please pay attention then print debug commands are "eating" CPU big times.

    Posted
    1 hour ago, cag014 said:

    Please login or register to see this attachment.

     

    By the way please check CPU load, should be less than before.

    Yes for sure!

    Before this attachment CPU load average 60% with long big peaks of 95%, a filled picture.

    With the last attachment CPU load average 15% with small peaks until 90%, an almost empty picture!

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

    Yes for sure!

    Before this attachment CPU load average 60% with long big peaks of 95%, a filled picture.

    With the last attachment CPU load average 15% with small peaks until 90%, an almost empty picture!

    Thanks for confirming that.

    ?

    Posted
    27 minutes ago, cag014 said:

    Since the code constantly updates values, actions and conditions it is not so easy to find the right place to print data, you can end-up with endless print outs.

    Please tell me what you need to print and where, it might be a good idea to include printout option in AOQ.

    --Check DeurenRamen
    {0, "`DeurenRamenGroep`",{state="value=true",
    --trueAct={"&DeurenRamen","setGlobal","Open"},falseAct={"&DeurenRamen","setGlobal","Dicht"}}}, 
    trueAct={"&DeurenRamen","setGlobal","Open"},falseAct={"&DeurenRamen","setGlobal","Dicht","{`DeurenRamenStatus`:value=false}"}}}, 

    I was testing your instructions how to work work with groups of devices by using your example.

    The falseAct did not trigger with ,"{`DeurenRamenStatus`:value=false}  and without this condition it works. So I wanted to know what the status of DeurenRamenStatus was at that moment.

    Posted
    19 hours ago, cag014 said:
    20 hours ago, Rover said:

    It works perfect with controlling HC2-devices. ?

    But the proof of the pudding does not succeed: How to add HC2-devices to Alarm zones? Result is: no devices of this type...

    Thanks for finding the bug... fixed.

    But not fixed in the last attachment ?‍♂️

  • Topic Author
  • Posted
    9 minutes ago, Rover said:
    --Check DeurenRamen
    {0, "`DeurenRamenGroep`",{state="value=true",
    --trueAct={"&DeurenRamen","setGlobal","Open"},falseAct={"&DeurenRamen","setGlobal","Dicht"}}}, 
    trueAct={"&DeurenRamen","setGlobal","Open"},falseAct={"&DeurenRamen","setGlobal","Dicht","{`DeurenRamenStatus`:value=false}"}}}, 

    I was testing your instructions how to work work with groups of devices by using your example.

    The falseAct did not trigger with ,"{`DeurenRamenStatus`:value=false}  and without this condition it works. So I wanted to know what the status of DeurenRamenStatus was at that moment.

    That's what I said, use hcWebEye.

    By hovering over the actions you'll see exactly the current values and states/status of all items defined in AOQ.

    Posted
    22 minutes ago, cag014 said:

    Thanks for confirming that.

    ?

    Forgive me for my harsh language...just another F%%%ing day spent trying to solve hc3 issue.

    So: new version of aoq reduces cpu load.. thanks cag. Just some spikes but nothing compared to 98% cpu load i had in the morning.

    So i just soft reconfigured again every device,add again hue lights, change js line due to some devices that change id during reconfiguration process, and create brand new template in home remote...i'm a little tired....

    Please login or register to see this attachment.

    Posted
    On 8/26/2020 at 7:29 PM, cag014 said:

    so the issue you are trying to use 3-deep nesting....!

     AlleLichten="`Huiskamer`|`Librije`|`Keukenlamp`|`Bijkeuken`|`LampHal`|`RaamGloriaLamp`|`Achtertuin`|`ZonneschermLicht`|`TuinFlood`",

    where Librije nested as well...

     LinksBoekenkast=102, BoekenkastRechts=241, BovenraamLibrije=62, Librije="`LinksBoekenkast`|`BoekenkastRechts`",

    Will try to include let's 5-deep nesting option...

    Is 3-deep nesting already possible?

     

    And is calling HC2 scenes from HC3 possible?

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

    Is 3-deep nesting already possible?

     

    And is calling HC2 scenes from HC3 possible?

    5-deep possible

    Scenes not yet, work-in-progress

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

    Forgive me for my harsh language...just another F%%%ing day spent trying to solve hc3 issue.

    So: new version of aoq reduces cpu load.. thanks cag. Just some spikes but nothing compared to 98% cpu load i had in the morning.

    So i just soft reconfigured again every device,add again hue lights, change js line due to some devices that change id during reconfiguration process, and create brand new template in home remote...i'm a little tired....

    Please login or register to see this attachment.

    Wow... reconfiguration of devices always very painful process.

    The spikes coming from HC3 to communicate with  Zwave devices.

     

    Posted
    1 hour ago, cag014 said:

    5-deep possible

    ?

    Posted

    Randomseed has to run once at startup.

    Please login or register to see this spoiler.

    This does not work.

    How to implement randomseed?

  • Topic Author
  • Posted (edited)
    1 hour ago, Rover said:

    Randomseed has to run once at startup.

    Please login or register to see this spoiler.

    Since the userKeyword executed at the begining the randomseed executed as well.

    Now you don't need to do anyhing with the new keyword, it's already started, so your line should be normal.

    {0, "$24clock",{state="value=0",timeSlot="?00:00+(random(0,120)*60)?~,~03:00", }},

     

    Edited by cag014
    Posted
    9 hours ago, cag014 said:

    By the way this attachment has an option to use slave global variables. Same format as devices &<varName>'<slaveName>.

    For example to use global "Test" in HC2 -> use in jM as &Test'hc2.

    At the moment testing HC2 globals does not work anymore.

    Please login or register to see this spoiler.

    Earlier this evening it has worked.

    (Difference by adding UserKeyWord $rSeed?)

    BTW I have a global Huisstatus in HC3 as well as in HC2. Earlier this evening both were visible in the WebEye.

    Posted (edited)
    9 hours ago, cag014 said:

    Wow... reconfiguration of devices always very painful process.

    The spikes coming from HC3 to communicate with  Zwave devices.

     

    have you introduced some kind of timeout to reduce cpu load?

    Every action starts with 1 or 2 sec delay...

    And i noticed also that cpu load go to 100% during esecution of some lines. Ex. motion sensor trig a light and after 30sec safe turn off light. till lights off cpu load stay high near to 100%.

    I don't think it's aoq related , but i just asking for suggestion on further investigation:-(

    Edited by gggizmo
    Posted
    --========================== USER CONFIGURABLE PARAMETERS ===============================
    jSlave={ 
        hc3={user="minsad99",passwd="12345678!",ip="12.10.79.127"},
        } 
     jS2n={sensor1="336'hc3"},{lightSw="229'hc3"}
    jM={
     {0"$RAM",{state="value>85",trueAct={{"RAM>85%","sendNote","Warning. \nSystem memory is $RAM% ",true},{"|$lineId|","setStateValue","80"}},falseAct={{"|$lineId|","setStateValue","85"},{"RAM<80%","sendNote","System memory is $RAM%"}}}},
     {0"$HC3onLine",{state="value=true",trueAct={"","tts","$dayTime, Home center is on line"},falseAct={"","tts","$dayTime, Home center is off line"}}}, 
     {0"$internet",{state="value=online",trigAct={"","tts","$dayTime, Internet is $internet"}}},
     {0,"`sensor1`", {state ="value = true", trueAct = {"`lightSw`","turnOn",""}, falseAct = {"`lightSw`","turnOff""180"}}},
        } 
     
     
     
     
     

    After setting as above

    Error

    Isn't hc3PROXY supported?

     

    [09.09.2020] [15:58:03] [ERROR] [QUICKAPP112]: QuickApp crashed[09.09.2020] [15:58:03] [ERROR] [QUICKAPP112]: Unknown error occurred: attempt to index a nil value[09.09.2020] [15:59:02] [ERROR] [QUICKAPP112]: QuickApp crashed[09.09.2020] [15:59:02] [ERROR] [QUICKAPP112]: Unknown error occurred: attempt to index a nil value

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