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

Hi @jgab

 

I have two sections and two profiles, "Home" and "Away". These two each call their own set of rules. 
This all works fine.

 

Now I would like to use a third profile "Quests". This section contains an extra rule set compared to Home. So I would like when this profile (Quests) is selected to activate both the "Home" and "Quests" sections. I was thinking of doing this as follows.

 

Please login or register to see this code.

 

But unfortunately now only the Home section is addressed if Quests profile is active.
Do you have a solution for this?

Link to comment
Share on other sites

Jan, thanks.

I see this error but I have no clue what, where to find

Please login or register to see this code.

 

Rob,

Please login or register to see this code.

If you change 'Quests' in 'Away' it should do what you want

Link to comment
Share on other sites

  • Topic Author
  • 18 minutes ago, Sjakie said:

    Jan, thanks.

    I see this error but I have no clue what, where to find

    Please login or register to see this code.

     

    Rob,

    Please login or register to see this code.

    If you change 'Quests' in 'Away' it should do what you want

    Add this to your main()

    Please login or register to see this code.

    and you will hopefully get a better error message,

    Link to comment
    Share on other sites

    Hi Sjakie,

     

    Do you mean this? 

     

    Please login or register to see this code.

     

    Then (I think)  when I switch to profile Quest it enable Away and Home and not Quests. I want to enable both Quests and Home sections when selecting profile Quests.

     

    Link to comment
    Share on other sites

    Jan, it does not give additional info for this error.

    Please login or register to see this code.

    @Rob sorry I mi understood I thought Quests = Home + Away

    Perhaps more smart to put in Quests what you have in Home too, I had also something similar but splitter it after wards 

    Link to comment
    Share on other sites

    @Sjakie

     

    That's a solution but then I must duplicate and maintenance all the rules twice... I don't like that ?

     

    Other solutions are welcome.

    Link to comment
    Share on other sites

  • Topic Author
  • 1 hour ago, Sjakie said:

    Jan, it does not give additional info for this error.

    Please login or register to see this code.

     

    How does the rule 

    Please login or register to see this code.

    look like?

    Link to comment
    Share on other sites

  • Topic Author
  • No, that's not the rule that creates the error.

    Could you go into fibaroExtra in the QA and around 2131 replace the post function with

    Please login or register to see this code.

    it makes an extra check that an event is really posted - that seems to be the error you have (someone posts(nil))

    20 hours ago, RobLu said:

    Hi @jgab

     

    I have two sections and two profiles, "Home" and "Away". These two each call their own set of rules. 
    This all works fine.

     

    Now I would like to use a third profile "Quests". This section contains an extra rule set compared to Home. So I would like when this profile (Quests) is selected to activate both the "Home" and "Quests" sections. I was thinking of doing this as follows.

     

    Please login or register to see this code.

     

     

    But unfortunately now only the Home section is addressed if Quests profile is active.
    Do you have a solution for this?

     

    Please login or register to see this code.

     

    enable('Home',true) will enable Home and disable all the other. Then enable('Quests') without the second 'true' will enable 'Quests' but not disable the others, so Home is still enabled.

    Link to comment
    Share on other sites

    1 hour ago, jgab said:

     

    Please login or register to see this code.

     

    enable('Home',true) will enable Home and disable all the other. Then enable('Quests') without the second 'true' will enable 'Quests' but not disable the others, so Home is still enabled.

     

    Wow what a powerful tool that Eventrunner is. It works great! Thanks again for your support Jan!!

     

    Link to comment
    Share on other sites

    @jgab

    I have problem with new version of QA Updater v.0.67:

    ./include/main.lua:121: bad argument #1 to 'for iterator' (table expected, got string)

     

    Link to comment
    Share on other sites

  • Topic Author
  • 10 hours ago, petrkl12 said:

    @jgab

    I have problem with new version of QA Updater v.0.67:

    ./include/main.lua:121: bad argument #1 to 'for iterator' (table expected, got string)

     

    Sorry, it was a bug in the data format. If you do a refresh now in QAUpdater it should parse the version file correctly.

    Link to comment
    Share on other sites

    Jan after refresh

    Please login or register to see this code.

    Wiers if I refresh again the error disappeared

    Edited by Sjakie
    Link to comment
    Share on other sites

    I have these two rules triggered from the Global variable "DayControl"

    these rules control the 

    Please login or register to see this link.

     

    Some time i have special light set on the LEDs, that i won't have the DayControl overrules, but start following the DayControl when turned off.

     

    How should this be created in EV4?

    another issue it with around 100 LEDS it is way too slow to read all the 

    Please login or register to see this link.

     from the zwave network

     

    any guidance or help would be appreciated -  but it should run in EV4.


    rule([[$DayControl=='NAT' =>
    fibaro:setGlobal(baths, colorvalue.Normal)
    fibaro:setGlobal(rooms, {2,64,0,16};)
    fibaro:setGlobal(common, colorvalue.Low)
            rooms.baths:color=colorvalue.Normal;
            rooms.rooms:color={2,64,0,16};
            rooms.common:color=colorvalue.Low;
            ]])

    rule([[$DayControl=='Wake-up' =>
    fibaro:setGlobal(baths, colorvalue.Normal)
    fibaro:setGlobal(rooms, {2,64,0,16};)
    fibaro:setGlobal(common, colorvalue.Low)
            rooms.baths:color=colorvalue.Normal;
            rooms.rooms:color={64,64,0,16};
            rooms.common:color=colorvalue.High;
            ]])


    •    Turn on special color

    o    Set Matrix Color to eg {255,255,255,16};)

     

    •    After “Turn Off special Color”
    o    Set Matrix Color to fibaro:getGlobalValue(baths)


    •    When “DayControl global variable” Change ->
    o    If existing Matrix Color = special color is set(ls different from last DayControl color set) -> Don’t change color
    o    If color = Normal color (Set from last DayControl Change Color) change color to new DayControl Color
     

      

    Please login or register to see this attachment.

    Edited by ChristianSogaard
    P
    Link to comment
    Share on other sites

    Good morning Jan,

    I have some difficulties to get it work.

    From Joep Verhaeg his P1 monitor QA I want to use some values

    Please login or register to see this code.

    This comes from QA 1840 as String variable it is listed in >>Variables (but not listed in Global Variables) >>> daystart_power_import_t1_kwh
    how to use in ER?
    Thanks in advance,
    Edited by Sjakie
    Link to comment
    Share on other sites

  • Topic Author
  • 22 hours ago, Sjakie said:

    Good morning Jan,

    I have some difficulties to get it work.

    From Joep Verhaeg his P1 monitor QA I want to use some values

    Please login or register to see this code.

    This comes from QA 1840 as String variable it is listed in >>Variables (but not listed in Global Variables) >>> daystart_power_import_t1_kwh
    how to use in ER?
    Thanks in advance,

     

    You mean that it's quickAppVariables - listed in the Devices>>Variables ?

    "Energie_Verbruik_T1" etc?

    quickAppVariables can be accessed with $$ infront of them

    Ex.

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

  • Topic Author
  • In general, your rules has some syntactic errors (keep an eye on the ending semicolons)

    Please login or register to see this code.

    fibaro.setGlobal I assume that you mean fibaro.setGlobalVariable ? 

     

    On 8/26/2022 at 5:23 PM, ChristianSogaard said:


    •    Turn on special color

    o    Set Matrix Color to eg {255,255,255,16};)

     

    •    After “Turn Off special Color”
    o    Set Matrix Color to fibaro:getGlobalValue(baths)


    •    When “DayControl global variable” Change ->
    o    If existing Matrix Color = special color is set(ls different from last DayControl color set) -> Don’t change color
    o    If color = Normal color (Set from last DayControl Change Color) change color to new DayControl Color

     

    It's the bath variable that is normal or special?

    I would set a variable to remember that the color is set to special and then in the DayControl rule check for that. 

    Ex.

    Please login or register to see this code.

     

    and the rules that set specialColor and unsets specialColor updates the variable.

     

    I don't understand the

    "another issue it with around 100 LEDS it is way too slow to read all the 

    Please login or register to see this link.

     from the zwave network"

    Every time the color changes for the led it's stored in the HC3 so when you do fibaro.getVariable(X,"color") it's fetched from the HC3 and goes very fast.

    Link to comment
    Share on other sites

  • Topic Author
  • On 8/27/2022 at 9:57 AM, Sjakie said:

    Good morning Jan,

    I have some difficulties to get it work.

    From Joep Verhaeg his P1 monitor QA I want to use some values

    Please login or register to see this code.

    This comes from QA 1840 as String variable it is listed in >>Variables (but not listed in Global Variables) >>> daystart_power_import_t1_kwh
    how to use in ER?
    Thanks in advance,

     

    or is it the 'daystart_power_import_t1_kwh' that is quickAppVariable or globalVariable?

    Not so easy to guess from your explanation...

    Edited by jgab
    Link to comment
    Share on other sites

    1 hour ago, jgab said:

    In general, your rules has some syntactic errors (keep an eye on the ending semicolons)

    Please login or register to see this code.

    fibaro.setGlobal I assume that you mean fibaro.setGlobalVariable ? 

     

     

    It's the bath variable that is normal or special?

    I would set a variable to remember that the color is set to special and then in the DayControl rule check for that. 

    Ex.

    Please login or register to see this code.

     

    and the rules that set specialColor and unsets specialColor updates the variable.

     

    I don't understand the

    "another issue it with around 100 LEDS it is way too slow to read all the 

    Please login or register to see this link.

     from the zwave network"

    Every time the color changes for the led it's stored in the HC3 so when you do fibaro.getVariable(X,"color") it's fetched from the HC3 and goes very fast.

    Hi Jan  Thank you for providing ideas and fixes :-)

    I have chosen to go a little other direction.

     

    I shared a little of my HTab used in EV4.

    Perhaps you can show how within EV4 remove an entry from this local HTab ?

     

    Example 

    • remove 1000 from rooms.all in local HTab
    • ADD 1000 to rooms.all to local HTab

     

     

    Please login or register to see this code.

     

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