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

Jan,

Happenly I am complete on HC3, thanks to your coaching and service excellence.

Sorry to be not clear but I was fighting with some  exceptional arming stuff. I have fixed that in the arming scene to split some arming rules and add a few others but to check in debug for testing I like to see wich devices are armed/safe to see if I did the job well.

Therefor I used the #sensorlist from HC2to see what I want but thats didt work.

Thanks for your time,

//Sjakie

 

Posted

Hi

 

Is there a way to trigger on power change and do rules like this ?

Please login or register to see this code.

 

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

    Hi

     

    Is there a way to trigger on power change and do rules like this ?

    Please login or register to see this code.

     

    Yes, but you need to set a variable to Kokken.Emhatte:power or repeat it in every test...

    • Thanks 1
    Posted
    13 hours ago, jgab said:

    and see if it reports 'Manual' or 'Script' when. you flip the switch manual

    It reports nothing when I manually toggle the switch (it's a momentary switch), but it reports "script" when motion sensor is breached.

     

    It's like if the fibaro dimmer was not catching on the manual switching. Yet, it effectively turns off the light... 

     

    Apart from that, I observed 2 errors today in the logs:

     

    Please login or register to see this code.

     

    It's not a systematic error for rules 25 and 87, they seems to work ok most of the time. Dunno what happened at that particular moment.. If any idea, welcome!

     

  • Topic Author
  • Posted
    17 minutes ago, ndelaet said:

    It reports nothing when I manually toggle the switch (it's a momentary switch), but it reports "script" when motion sensor is breached.

     

    It's like if the fibaro dimmer was not catching on the manual switching. Yet, it effectively turns off the light... 

     

    Apart from that, I observed 2 errors today in the logs:

     

    Please login or register to see this code.

     

    It's not a systematic error for rules 25 and 87, they seems to work ok most of the time. Dunno what happened at that particular moment.. If any idea, welcome!

     

    Please post complete rules. You can't do lightPlafSalon:value:isOn

    :value returns the value property and :isOn returns true/false if device is considered 'on'

    Posted

    Jan,

    What is wrong?

    <Rule.eval([[@08:59 =>   log('AANWEZIGSENSORS'); for id,_ in pairs(aanwezigSensors) do log('%s = %s, %s',idname(id),id:safe 'breached'end;  ]])>

    error:

    {"err":".\/include\/Toolbox.lua:210: bad argument #4 to 'format' (no value)","msg":"Error executing instruction:'[\"log\",3]'","src":"Rule:96[@08:59 =>...]","ERR":true}

     

    Thanks,

    //Sjakie

    Posted
    11 hours ago, jgab said:

    Please post complete rules.

     

    Here is the complete rule. For the moment I disabled the 'Evening' execution

     

    Please login or register to see this code.

     

    11 hours ago, jgab said:

    You can't do lightPlafSalon:value:isOn

    :value returns the value property and :isOn returns true/false if device is considered 'on'

     

    My bad, I corrected it now, thanks!

     

     

  • Topic Author
  • Posted
    3 minutes ago, Sjakie said:

    Jan,

    What is wrong?

    <Rule.eval([[@08:59 =>   log('AANWEZIGSENSORS'); for id,_ in pairs(aanwezigSensors) do log('%s = %s, %s',idname(id),id:safe 'breached'end;  ]])>

    error:

    {"err":".\/include\/Toolbox.lua:210: bad argument #4 to 'format' (no value)","msg":"Error executing instruction:'[\"log\",3]'","src":"Rule:96[@08:59 =>...]","ERR":true}

     

    Thanks,

    //Sjakie

    Missing a comma after id:safe ?

    Posted

    Just for the sake of clarity: what I would like to achieve is that if someone manually switch OFF the lightPlafSaM, then I want to avoid that the motions:breached puts in ON again 1 second later

    many thanks!

  • Topic Author
  • Posted
    16 minutes ago, ndelaet said:

    Here is the complete rule. For the moment I disabled the 'Evening' execution

     

     

    My bad, I corrected it now, thanks!

     

     

     

    It may be that the device doesn't update last correctly - can you try the below debug rules?

    Please login or register to see this code.

     

    Posted
    Another question: how can I formulate the rule below to state that $DayTime IS NOT EQUAL TO 'Day'?
     
    Should I do that?
     
    rule("DoorHallNuitDN:breached & 06:45..09:30 & $DayTime != 'Day' => $DayTime='Morning'")
     

    Please login or register to see this code.

     

    Sorry, it's really a basic question, but I cannot manage to make it work..

     

    Thks!

    Posted

    Jan,

    thanks its working but I want

    <Rule.eval([[@09:49 =>log('AFWEZIGSENSORS'); for id,_ in pairs(afwezigSensors) do log('%s = %s, %s',idname(id),id:safe, 'safe' |'breached'end  ]])>

    output:

    [18.02.2021] [09:57:30] [TRACE] [QUICKAPP802]: hoofdSlaapKamer.deur = false, safe

    desired:

    [18.02.2021] [09:57:30] [TRACE] [QUICKAPP802]: hoofdSlaapKamer.deur = breached

    Thanks in advance,

    //Sjakie

     

  • Topic Author
  • Posted
    1 hour ago, ndelaet said:
    Another question: how can I formulate the rule below to state that $DayTime IS NOT EQUAL TO 'Day'?
     
    Should I do that?
     
    rule("DoorHallNuitDN:breached & 06:45..09:30 & $DayTime != 'Day' => $DayTime='Morning'")
     

    Please login or register to see this code.

     

    Sorry, it's really a basic question, but I cannot manage to make it work..

     

    Thks!

     

    rule("DoorHallNuitDN:breached & 06:45..09:30 & $DayTime ~= 'Day' => $DayTime='Morning'")

    rule("DoorHallNuitDN:breached & 06:45..09:30 & !($DayTime == 'Day') => $DayTime='Morning'")

    59 minutes ago, Sjakie said:

    Jan,

    thanks its working but I want

    <Rule.eval([[@09:49 =>log('AFWEZIGSENSORS'); for id,_ in pairs(afwezigSensors) do log('%s = %s, %s',idname(id),id:safe, 'safe' |'breached'end  ]])>

    output:

    [18.02.2021] [09:57:30] [TRACE] [QUICKAPP802]: hoofdSlaapKamer.deur = false, safe

    desired:

    [18.02.2021] [09:57:30] [TRACE] [QUICKAPP802]: hoofdSlaapKamer.deur = breached

    Thanks in advance,

    //Sjakie

     

     

    Rule.eval([[@09:49 =>log('AFWEZIGSENSORS'); for id,_ in pairs(afwezigSensors) do log('%s = %s, %s',idname(id),id:safe & 'safe' |'breached'end  ]])

    Posted

    OK so now for the code 

     

    Please login or register to see this code.

     

    I get the debug:

     

     

    Please login or register to see this code.

     

     

     

    Posted

    And some debug of this morning: 

     

    Please login or register to see this code.

     

    Code for rule 87 is

     

    Please login or register to see this code.

     

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

    And some debug of this morning: 

     

    Please login or register to see this code.

     

    Code for rule 87 is

     

    Please login or register to see this code.

     

    Well, somehow you 'DoorHallNuitDN' is set to nil or you use the wrong name.

    Try 

    rule("log('Start DoorHallNuitDN = %',DoorHallNuitDN | 'nil' )") -- Check at startup

    rule("log('Rule DoorHallNuitDN = %',DoorHallNuitDN | 'nil' ) & once(DoorHallNuitDN:breached) & 06:45..09:30 & $DayTime ~= 'Day' => $DayTime='Morning'") -- Check when rule runs

    Posted
    5 hours ago, jgab said:

    Well, somehow you 'DoorHallNuitDN' is set to nil or you use the wrong name.

     

    Ok, indeed I made a mistake with a capital "D" in some places. Solved and now it works, thanks!

     

    For the other rules (using the button pushed), will try again tonight and see. According to the logs gathered following your suggestion, it seems to me that it should work...

    we'll see

     

    thanks again,

    Posted

    Jan, a problem with remote

     

    [21.02.2021] [00:22:08] [DEBUG] [QUICKAPP797]: fibaro.call(796,"RECIEVE_EVENT",{"type":"EVENT","ev":{"type":"bedTijd","_time":1613863328,"_from":797}}) => nil

     

    [21.02.2021] [00:20:53] [DEBUG] [QUICKAPP796]: fibaro.call(787,"turnOff") => nil
    [21.02.2021] [00:22:10] [DEBUG] [QUICKAPP796]: [{"type":"stekkersOff"}]>>'Rule:29[#stekkersOff  =>...]'

     

    "bedTijd" ist recieved by QA796

    "stekkersoff"came trough

    Please advice,

    //Sjakie

    Posted

    Jan, please diregard I found my mistake.

    Thanks

    //Sjkaie

    Posted

    Jan,

    -Is ER capable to let say report every hour the memory usage?

    I saw it is much higher as before, I know HC3 is working harder as before also.

    To sleep well I would like to report if it is > 65%

    - what to see in Crash notifyer if a QA restarts?

    I modified a QA and was witing to see the time trigger executed and it was restarting!

    Second time I have seen a QA restarting, in the morning I sometimes scroll in the debug windows up but didt see any restart.

    Also I dont know if I should worry if thats happening.

    - What I see know is HC3 runs very nice also thanks to your effort!

     (only need to tackle a few HTTP isues)

    Thanks for the service,

    //Sjakie

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