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
    10 hours ago, Neo Andersson said:

    Sorry, found it.

    Ok, but it was a bad error message - will try to improve on that.

    Posted (edited)

    Jan last night at 04:25 when everybody ws in a deep sleep our HC3 restarted.

    Processor 0-40 spike 80%

    Ram 51%

    Edited by Sjakie
    add mem
  • Topic Author
  • Posted
    1 hour ago, Sjakie said:

    Jan last night at 04:25 when everybody ws in a deep sleep our HC3 restarted.

    Processor 0-40 spike 80%

    Ram 51%

    51% ram is not exceptional - and spikes we have seen on unloaded systems - so nothing special as I can see.

    Posted

    Yep but second time in two months.

    FW 5.150.15 since the end of October

    Posted

    Hi Jan, well today was the first time in a while my HC3 crashed and recovered to the previous backup version and  I hadn't made a backup since transferring to ER5 so lost all progress amongst some other adjustments.

     

    There was mention of creating scheduled backups in ER4, is there any scope for this or similar in ER5? 
     

     

    Posted

    @jgabJan i am interested too in scheduled backup like Pica2017 has mentioned above using ER5. I cant find anything about backup. Neither in ER4 nor in ER5. Does ER5 have some inbuilt function for backup?

  • Topic Author
  • Posted
    50 minutes ago, Neo Andersson said:

    @jgabJan i am interested too in scheduled backup like Pica2017 has mentioned above using ER5. I cant find anything about backup. Neither in ER4 nor in ER5. Does ER5 have some inbuilt function for backup?

    no, but we could add it

    Posted
    2 minutes ago, jgab said:

    no, but we could add it

    Would be nice, but i think there will be some bug in api calls. I am mentioning it in another topic, that api calls like

    Please login or register to see this code.

    and

    Please login or register to see this code.

    are both returning nil.

     

  • Topic Author
  • Posted
    Just now, Neo Andersson said:

    Would be nice, but i think there will be some bug in api calls. I am mentioning it in another topic, that api calls like

    Please login or register to see this code.

    and

    Please login or register to see this code.

    are both returning nil.

     

    they seems to be only accessible using the net.HTTPClient - and we need to provide the credentials

    Posted
    1 minute ago, jgab said:

    they seems to be only accessible using the net.HTTPClient - and we need to provide the credentials

    ahh okay, so it is doable with http call so you can add it into ER5, becuase there must be some control check before someone calls a rule to create a backup. The mechanism of ER5 should somehow check if its possible. But seemingly it can be done..Great

    Posted

    @jgab today 13:45 restart HC3. We where away.

    Posted (edited)

    Hi Jan

     

    I created 

    Please login or register to see this link.

     and need Rules In EV5

    Everything below is working 

     

    I need a rule for getting the ID/Username for last Person that Left the Home

    I tried using the rule("People:value = "1" but i cant figure out how to test different states. 

    How can  I detect when ONE Person is left in the house?

     

    Second - Im getting double triggers when using  ... People:isAnyOff & People:isOn

     

    Please login or register to see this spoiler.

     

     

    Please login or register to see this code.

     

     

     

    Edited by ChristianSogaard
    Typo
  • Topic Author
  • Posted
    12 hours ago, ChristianSogaard said:

    Hi Jan

     

    I created 

    Please login or register to see this link.

     and need Rules In EV5

    Everything below is working 

     

    I need a rule for getting the ID/Username for last Person that Left the Home

    I tried using the rule("People:value = "1" but i cant figure out how to test different states. 

    How can  I detect when ONE Person is left in the house?

     

    Second - Im getting double triggers when using  ... People:isAnyOff & People:isOn

     

    Please login or register to see this spoiler.

     

    Ooops, the double trigger was a bug - thanks!
    I pushed v0.8 with a fix

    • Thanks 1
  • Topic Author
  • Posted

    And here is a take on your presence rules...

    Please login or register to see this code.

    Now the people are represented by the device id - how did you think about names here?

    Maybe when first person arrives at home it should also set LastPerson - as the FirstPerson is also the LastPerson...

    I added .start() so they run at reload so the variables get the right states...

    • Thanks 1
    Posted

    Jan, how to set activProfile?

    I know hot get back, it is like 

    Please login or register to see this code.

    gets back, what is the active profile at this moment. But how to activate a profile? 

    Posted
    2 minutes ago, jgab said:

    And here is a take on your presence rules...

    Please login or register to see this code.

    Now the people are represented by the device id - how did you think about names here?

    Maybe when first person arrives at home it should also set LastPerson - as the FirstPerson is also the LastPerson...

    I added .start() so they run at reload so the variables get the right states...

    Thank you Jan

     

    I tried the Value:bin yesterday but it didnt work out for me, I see the SUM does the difference, Thank you.

    Indeed I need the Names, but i didnt get that long yesterday. Feel fee to help me MAP the User to the Swiches that would really be great..

    So i can send messages to the mobile Phone

     

  • Topic Author
  • Posted
    18 minutes ago, Neo Andersson said:

    Jan, how to set activProfile?

    I know hot get back, it is like 

    Please login or register to see this code.

    gets back, what is the active profile at this moment. But how to activate a profile? 

    You can do

    rule("1:profile=true") -- activate profile 1

    Just now, jgab said:

    You can do

    rule("1:profile=true") -- activate profile 1

    I don't think you can do 

    QA:activeProfile()

    in ER5

    Posted (edited)

    Jan, how to understand these notes

     

    Please login or register to see this image.

    /monthly_2023_12/image.png.d596aa09118ee9bf70dc8bd895d78bef.png" />

     

     

    Invocations is clear

    Success is if the rule returns TRUE

    Fails if the rules are FALSE right?

    So after like a month there will be huge numbers ? Milions?

    And what does 25:75,38:31,7:31 etc mean?

    Edited by Neo Andersson
  • Topic Author
  • Posted
    44 minutes ago, Neo Andersson said:

    Jan, how to understand these notes

     

    Please login or register to see this link.

     

     

    Invocations is clear

    Success is if the rule returns TRUE

    Fails if the rules are FALSE right?

    So after like a month there will be huge numbers ? Milions?

    And what does 25:75,38:31,7:31 etc mean?

    Successes is the number of rules that was triggered and the condition was true (the action part can return whatever)

    Fails is the number of triggered rules where the condition was false and the action didn't run.

    Invocations = Successes + Fails

     

    The list is 

    <time rule was triggered> <rule instance> (<status>, <status time>)

    <status> is done if a rule has run completed. It can also be 'suspended' if it's waiting.

    In your list <time rule was triggered> and <status time> is the same but can be different if rule takes long to complete (ex. has a wait)

    <rule instance> Rule number : Rule instance

    Rule number is the number id assigned to a rule. It's from 1 upwards for rules defined. 

    List rules also give you this list.

    Rule instance is the running instance of the rule. An increasing number from 1.

    You could have a rule like

    rule("#myEvent => wait(00:10); log('OK')")

    and if it's triggered twice within 10min we will have 2 instances of the rule running in "parallel"

    It also gives you a number how many times the specific rule has been triggered - but it's main use is to tell multiple

    instances of the same rule apart when debugging.

     

    Posted (edited)
    19 minutes ago, jgab said:

    Successes is the number of rules that was triggered and the condition was true (the action part can return whatever)

    Fails is the number of triggered rules where the condition was false and the action didn't run.

    Invocations = Successes + Fails

     

    The list is 

    <time rule was triggered> <rule instance> (<status>, <status time>)

    <status> is done if a rule has run completed. It can also be 'suspended' if it's waiting.

    In your list <time rule was triggered> and <status time> is the same but can be different if rule takes long to complete (ex. has a wait)

    <rule instance> Rule number : Rule instance

    Rule number is the number id assigned to a rule. It's from 1 upwards for rules defined. 

    List rules also give you this list.

    Rule instance is the running instance of the rule. An increasing number from 1.

    You could have a rule like

    rule("#myEvent => wait(00:10); log('OK')")

    and if it's triggered twice within 10min we will have 2 instances of the rule running in "parallel"

    It also gives you a number how many times the specific rule has been triggered - but it's main use is to tell multiple

    instances of the same rule apart when debugging.

     

    Now you scared me to death...Why would my rule 25 have 75 instances running at the same time? Did i misunderstand somehitng?

    Edited by Neo Andersson

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