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
  • The important rule is the

    Please login or register to see this code.

    It will watch alarm partition 1 and send 'willArm' events when armed.

     

    Please login or register to see this code.

    ...will watch the whole house (all partitions)

    • Thanks 1
    Link to comment
    Share on other sites

    Guest kallecux

    Hi @jgab,


    I've searched a little, but haven't found anything.

     

    Can you give me a short example of how I can formulate an http command "from outside" that triggers an event in ER4?

     

    Thanks in advance.

     

    Best regards
    Karl Heinz

    Link to comment
    Share on other sites

  • Topic Author
  • Please login or register to see this code.

     

     

    Please login or register to see this code.

     

    • Thanks 1
    Link to comment
    Share on other sites

  • Topic Author
  • or with curl

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

    Guest kallecux

    Do you know if it is possible to convert this curl command into a single http-call to use it as an api-call from within an other app (doorbird). I dont use any parameter, only an event.

     

    Link to comment
    Share on other sites

  • Topic Author
  • There is a GET versions too, but you need to be able to set headers for authentication and "X-Fibaro-Version: 2" 

     

    Link to comment
    Share on other sites

    On 12/1/2021 at 10:02 PM, jgab said:

    It's not the first of month that is the problem - that works. The issue is with the energy panel as we don't understand how it works...

    then I play with the energy panel
    1) as I said before, I have a meter QUBINO 3-PHASE SMART METER, after the latest updates of the fiboro from it received incorrect data, and then everything was zero.
    2) I just deleted it and added it to the system, then the data started coming from the meter.
    3) ER4 also began to receive data from the energy panel.

     

    4) But there is one problem:
    4.1) in ER4 come the figures from the SUM of all devices that can calculate energy consumption.
    4.2) and it turns out that for example:
    my light bulb -1 consumed 15 kW, my light bulb -2 consumed 25 kW,
    4.3) but there are still many devices in the house that are not connected to smart relays, so it is logical that we see ALL the other energy consumed on the main meter QUBINO 3-PHASE SMART METER ...

    4.4) so it turns out that the energy panel counts our 2 light bulbs in TOTAL CONSUMPTION and counts the indicator QUBINO 3-PHASE SMART METER in total consumption, but in QUBINO 3-PHASE SMART METER it is already our 2 light bulbs are counted !!!
    4.5) Therefore it is necessary to extract from the energy panel ONLY data from the GENERAL COUNTER, which I have QUBINO 3-PHASE SMART METER

     

    5) I dug into the swagger and although I'm not a programmer, but as if there is an opportunity to extract data on energy consumption from a specific ID or a specific room.
    5.1) Then we would have real data
    5.2) It remains only to implement this in ER4)))

     

    Please login or register to see this attachment.

     

    Link to comment
    Share on other sites

    Hi,

    I have had the old LUAScheduler for HC2 v1.3.2 running on my HC2 fora couple of years but now I am looking into the HC3.

    LUAScheduler for HC2 v1.3.2
    original by robmac
    contibutions from jompa68 , A.Socha


    I recently began testing the EventRunner3 and since I have a whole bunch of block scenes running I was wondering if there is a way to call and run them from within EventRunner3?

    ;-) Mike

     

    Link to comment
    Share on other sites

  • Topic Author
  • 6 hours ago, kappnet said:

    Hi,

    I have had the old LUAScheduler for HC2 v1.3.2 running on my HC2 fora couple of years but now I am looking into the HC3.

    LUAScheduler for HC2 v1.3.2
    original by robmac
    contibutions from jompa68 , A.Socha


    I recently began testing the EventRunner3 and since I have a whole bunch of block scenes running I was wondering if there is a way to call and run them from within EventRunner3?

    ;-) Mike

     

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

    Guest kallecux

    @fastvd

    Hi!

     

    try to read this:

     

    Please login or register to see this link.

     

    Greetings

    Karl Heinz 

    Link to comment
    Share on other sites

    2 hours ago, jgab said:

    Please login or register to see this code.

     

    Sweet!
    Simple pimple, thanks!  :-)

    Link to comment
    Share on other sites

    New(bie) questions...

    I see variations in naming of rules...what's the difference? Both of them are working?

    Please login or register to see this code.

     

    And how is winter/summer supposed to be used?

    Please login or register to see this code.

     

    Mike

    Link to comment
    Share on other sites

    2 hours ago, kallecux said:

    @fastvd

    Hi!

     

    try to read this:

     

    Please login or register to see this link.

     

    Greetings

    Karl Heinz 

    thank. its works

    Link to comment
    Share on other sites

  • Topic Author
  • 7 hours ago, kappnet said:

     

    Hi,

    Is it possible to have ER "push a button" in a VD?

    ?

    ID:btn=BtnID' - :btn=BtnID, press button with id BtnID on virtual device ID, i.e. 'fibaro:call(ID,'pressButton',BtnID)'

    Please login or register to see this code.

    Link to comment
    Share on other sites

    12 hours ago, jgab said:

    ID:btn=BtnID' - :btn=BtnID, press button with id BtnID on virtual device ID, i.e. 'fibaro:call(ID,'pressButton',BtnID)'

    Please login or register to see this code.

    Thanks a lot!

    I´m slowly getting the hang of it...  ?

    Can I change the value of a variable like this?

    Please login or register to see this code.

     

    And also is there any difference between them? I see both in this topic.

    On 12/13/2021 at 10:41 AM, kappnet said:

    New(bie) questions...

    I see variations in naming of rules...what's the difference? Both of them are working?

    Please login or register to see this code.

     

    And how is winter/summer supposed to be used?

    Please login or register to see this code.

     

    Mike

     

    Mike

     

     

    Link to comment
    Share on other sites

  • Topic Author
  • 53 minutes ago, kappnet said:

    Can I change the value of a variable like this?

    Please login or register to see this code.

     

     

    Yes you can assign a global variable with $<name> = <value>

    The value is automatically converted to a string. Tables are json.encoded.

    If 'below120' is a variable bound to a number it will get the number.

    If you want to assign it the string "below120" do 

    Please login or register to see this code.

     

    Rule.eval and eval is the same thing.

    'rule' is defined as

    Please login or register to see this code.

    'rule' is just a bit shorter to type...

    Link to comment
    Share on other sites

    On 12/15/2021 at 9:00 PM, jgab said:

     

    Yes you can assign a global variable with $<name> = <value>

    The value is automatically converted to a string. Tables are json.encoded.

    If 'below120' is a variable bound to a number it will get the number.

    If you want to assign it the string "below120" do 

    Please login or register to see this code.

    Thanks!

    I can get the values into globals but I don´t understand how to change one of the predefined values?
    :-) Mike

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

  • Topic Author
  • Can't you just do 

    rule("@sunset => $AWAYStatus = 'Home'")

    rule("@sunrise => $AWAYStatus = 'Away'")

    ?

    Link to comment
    Share on other sites

    13 minutes ago, jgab said:

    Can't you just do 

    rule("@sunset => $AWAYStatus = 'Home'")

    rule("@sunrise => $AWAYStatus = 'Away'")

    ?

     

    I have tried tried this but I don´t know if my fingers might be glued together... ?
     

    Please login or register to see this code.

    The code runs but when I look at the variable panel nothing has changed...

    I was looking for a script to get all variables picked up and printed in the log but I couldn´t find one.

     

    Mike

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