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
  • 9 hours ago, Sjakie said:

    Jan, if QA crashes It will try to restart. If QA restart or try to restart it will send push and telegram>>> Nothing between bedtime and breakfast.

    I did't notice any instability with HC3.

     

    Did any any rule fire after Avon_laat ?

    Link to comment
    Share on other sites

    Nope not a single one.

    Next in line should be :Nacht" followed by "Morgen_Vroeg"

    Link to comment
    Share on other sites

  • Topic Author
  • 7 hours ago, Sjakie said:

    Nope not a single one.

    Next in line should be :Nacht" followed by "Morgen_Vroeg"

    So the QA just stopped and didn't restart. I haven't seen this behaviour.

    Let me now if it happens again - then we may need to revive the Supervisor QA that restarts dead QAs...

    Link to comment
    Share on other sites

    @jgab If we simplify the method of generating children, it would be convenient.

    Please login or register to see this code.

     

    Edited by lux
    Link to comment
    Share on other sites

  • Topic Author
  • That was a lot of child devices.... :-) 

     

    If the rules are the same you can generate them easily

    Please login or register to see this code.

     

    • Like 1
    Link to comment
    Share on other sites

    @jgab Thank you !  Iuser it like is ! easily idear ?

    Please login or register to see this code.

     

    Edited by lux
    Link to comment
    Share on other sites

    Newbie playing with ER4 on HC3 and have a few questions.

     

    1. How many ERs should I have? When I install the first time, it shows up as "EventRunner4". Are people just renaming them and have separate ones for different use cases? Is there a performance hit if you have multiple running?

     

    2. I have two motion sensors (upstairs and downstairs) controlling the stairs lights. Is my assumption correct that the "lights off" condition is an "AND". ie. I want both sensors to be safe before the lights turn off. If correct, out of interest how would you write "any one of" in a similar fashion?

     

    Please login or register to see this code.

     

    3. I am using the TQAE environment. Does the one running in the IDE talk to the ER4 on the HC3? I don't see a proxy device created on the HC3.

     

    4. How you "install" your IDE version and productionise onto the HC3? Related to the first question - I assume I need to give the QA a unique name?

     

    thanks

    Edited by gurpal2000
    Link to comment
    Share on other sites

  • Topic Author
  • 2 hours ago, gurpal2000 said:

    Newbie playing with ER4 on HC3 and have a few questions.

     

    1. How many ERs should I have? When I install the first time, it shows up as "EventRunner4". Are people just renaming them and have separate ones for different use cases? Is there a performance hit if you have multiple running?

     

    You can have a couple without to much penalty - each run a refreshState loop so if you have a massive amount of devices and internal HC3 events it can take some cpu.

    I run 3 myself. One for lightning and one for presence/alarms... and then one for testing. No issue.

    ER is very efficient and doesn't run/try rules that are not effected by an incoming event, so it scales very well with a large number of rules.

    I guess @Sjakie used to be the big user of ER when it comes to rules. 

     

    2 hours ago, gurpal2000 said:

     

    2. I have two motion sensors (upstairs and downstairs) controlling the stairs lights. Is my assumption correct that the "lights off" condition is an "AND". ie. I want both sensors to be safe before the lights turn off. If correct, out of interest how would you write "any one of" in a similar fashion?

     

    Please login or register to see this code.

     

     

    Yes, :safe is safe if all devices are safe as that is the most natural interpretation.

    :breached is breached if any device is breached.

     

    :safe is the same as :off and :breached is the same as :on

    :on has :isAllOn that is true if all is on, :off has :isAnyOff to test if any is off, so you can do

    Please login or register to see this code.

    to get the rule that turns on the light if all sensors are beamed (during the same breach time)

    and then turn off the light if any sensor turns off

     

    2 hours ago, gurpal2000 said:

    3. I am using the TQAE environment. Does the one running in the IDE talk to the ER4 on the HC3? I don't see a proxy device created on the HC3.

    You need to set the QA flag

    --%%proxy=true

     

    2 hours ago, gurpal2000 said:

     

    4. How you "install" your IDE version and productionise onto the HC3? Related to the first question - I assume I need to give the QA a unique name?

     

    thanks

    You mean upload the QA to the HC3?
    If you open the browser (when the emulator is running) at http://<pc ip>/web you get an UI where you can upload the QA to the HC3 (if you select the QA you get a page with restart/save/upload/... etc)

     

    QAs always get unique IDs. They can have the same names..

     

    Link to comment
    Share on other sites

    Welcome as ER user you will like it!

     

    For your information

    I have around 50 Z-wave devices and 40 HUE lights to control the whole apartment:

    Er QA  Arming  80 rules

    Er QA  General ex. lights 280 rules

    Er QA Kitchen Light with general light rules such as Time Of the Day 292 rules

    Er QA Livingroom lights 110 rules

    Er QA Hall ights 60 rules

    Er QA technical roomand toilet 50 rules

    Er QA Bathroom light 20 rules

    Er QA Bed rooms light 94 rules

    Er QA Geo location 60 rules

    Er QA energy 130 rules

     

    Remark: I had all my lights in one QA but it was't handy for me, to big!

    And some other QA's Sonos, Yamaha, Children of Hue, etc

     

     

     

     

     

    Link to comment
    Share on other sites

    @jgabattempt to call a nil value (global 'fmt')?

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

  • Topic Author
  • 13 hours ago, lux said:

    @jgabattempt to call a nil value (global 'fmt')?

    Please login or register to see this code.

     

    Sorry, add

    Please login or register to see this code.

     

    • Like 1
    Link to comment
    Share on other sites

    Scenario

    • A reception room that has a physical dimmer and a motion/lux sensor. It's a pass-thru room most of the time.
    • between 23:00 and 06:00 turn on light to 10% when sensor breached - if it isn't already on (irrespective of brightness)
    • ...then turn off completely when sensor safe
    • If the switch was manually turned on, ignore the rules above until the light is switched off (ie. i might not just be passing thru the room)

    I realise this might be a non-trivial case (can't have it both ways?)

     

    Right now, I have this (incomplete i know...)

     

    Please login or register to see this code.

     

    • These are treated as distinct rules (ie. nothing to do with each other). Every now and then in the log i'll see "recep 2 lights off" even though it's not 23.00..06:00. That can be fixed with the negated condition (!23.00..06:00) of course
    • Is there a way to make rules "dependent" ie. the second rule should only kick in when the first rule is "in effect"? Ie. not to treat these two rules independently
    • Is there a way to detect physical switch clicks?

     

    I am sure this has been done before..so is there a repo of (recent) HC3 rules that people have done that we can learn from (this thread is incredibly long already)

     

    thanks

     

    UPDATE1: From an

    Please login or register to see this link.

    i found:

    ":manual is for devices that can either be turned on/off manually or by a script. 

    :manual returns the time since the device changed state caused by something that did not originated from a rule. Typically someone manually flip a switch as opposed to a rule flipping the switch."

     

    UPDATE2: Also discovered xxxx:manual which allows us to detect physical or triggered via app as opposed to rules in ER

    Edited by gurpal2000
    Link to comment
    Share on other sites

    • 3 weeks later...

    Jan, strange behavior.

    Early in the morning it fires @sunset-00:30:00

    Please login or register to see this code.

        How to do if it's possible:
    Rule.eval([[sunset-01:30..(now < $Verl_Status == 'Slapen') =>
     
    Edited by Sjakie
    Question added
    Link to comment
    Share on other sites

  • Topic Author
  • 1 hour ago, Sjakie said:

    Jan, strange behavior.

    Early in the morning it fires @sunset-00:30:00

    Please login or register to see this code.

        How to do if it's possible:
    Rule.eval([[sunset-01:30..(now < $Verl_Status == 'Slapen') =>
     

    Never ever seen this... have you accidentally assigned sunset some other value in some other rule? It looks like it fires at sunrise-00:30 (if you live in the Nederlands where the sunrise is ~06:00 these days). <<<<<<which means that it's not some random bug but a mixup of sunrise and sunset and that is inexplicable...

    Link to comment
    Share on other sites

    Rules contain the word "sunset":

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

    Hello at all,

    I am trying to determine a presence via a (known) MAC-Adress in the LAN. The following rule work. 

    Please login or register to see this code.

    Is there a way to find multiple MAC-Adress in one step?

     

    Thanks

    Link to comment
    Share on other sites

  • Topic Author
  • On 5/5/2023 at 12:08 PM, KaWi said:

    Hello at all,

    I am trying to determine a presence via a (known) MAC-Adress in the LAN. The following rule work. 

    Please login or register to see this code.

    Is there a way to find multiple MAC-Adress in one step?

     

    Thanks

    The triggerVar has no function in a rule run by interval. You could do

    Please login or register to see this code.

    then the second rule triggers when MAC_List is set
     

    or just

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

    • 2 weeks later...

    Hi,
    In HC2 I used ER3 with great success, thanks a lot! 😁
    I recently bougth a HC3 and I´m trying to convert all my automation to new standards.

    There is one thing that I used a lot in the ER3 that I can´t find to solve in ER4.

    Quote

    "The other advantage with a hometable is that we can impose a structure on our variables, like what rooms deviceIDs are located in. We do that by nesting Lua tables."

    Please login or register to see this code.

    Is this supposed to work the same way in ER4?

     

    😀 Micke

     

    Link to comment
    Share on other sites

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