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 (edited)

@jgabJan i need an urgent help please

I am getting this error, however, this was working so far,,,

 

Please login or register to see this attachment.

Please login or register to see this code.

 

Edited by Neo Andersson
Posted (edited)
37 minutes ago, Neo Andersson said:

@jgabJan i need an urgent help please

I am getting this error, however, this was working so far,,,

 

Please login or register to see this attachment.

Please login or register to see this code.

 

Jan after updgrading to latest ER5 the error seems to dissapier, however, this rule never triggers on button release, and this was definitelly working so far.

This i use at all my customers houses for blind management.

 

Please login or register to see this code.

 

Edited by Neo Andersson
  • Topic Author
  • Posted
    21 hours ago, ChristianSogaard said:

    Hi Jan

     

    Shoulde'nt there be something in global Variable by now ?

    its still empty - no restart of EV5 and o deleted the rule as described .-)

    Please login or register to see this attachment.

     

     

    You only get a 'Released' if you hold down the key and release after a while. Single press don't generate 'Released'

    Works fine for me.

    Posted
    1 minute ago, jgab said:

     

    You only get a 'Released' if you hold down the key and release after a while. Single press don't generate 'Released'

    Works fine for me.

    Jan the relased event is not triggered at all for me

    Bu this was working so far, and i did not change the code..i dont understand

    Just now, Neo Andersson said:

    Jan the relased event is not triggered at all for me

    Bu this was working so far, and i did not change the code..i dont understand

    Did you try it in a way that i use? So to catch the released event for any button

    Please login or register to see this code.

     

    1 minute ago, Neo Andersson said:

    Jan the relased event is not triggered at all for me

    Bu this was working so far, and i did not change the code..i dont understand

    Did you try it in a way that i use? So to catch the released event for any button

    Please login or register to see this code.

     

    I have checked it at my house too..

  • Topic Author
  • Posted
    12 hours ago, ChristianSogaard said:

    Hi Jan - i tried trigger the rule to check the logs :-) 

    Im getting 

    Runtime: calling 'false' - wrong number of arguments to 'insert'

     

    [29.12.2023] [22:41:55] [TRACE] [ER2059]: [Rule:2:1]>> TRUE #daily{2} -> @22:41:55 => local gc = $GasCounte..
    [29.12.2023] [22:41:55] [ERROR] [ER2059]: [Rule:2:1]>> [Rule:2:@22:41:55 => local gc = $GasCounter; local today = {date=osdate("%Y-%m-%d"), total=GAS_ID:value}; table.insert(gc,1,today); if size(gc) > 1 then today[1].daily = today.total - gc[2].total end; if si..] Runtime: calling 'false' - wrong number of arguments to 'insert'
         table.insert(gc,1,today);
               ^^^^^^

     

    Ok, there were some errors in the rule and in ER5 itself. Pushed v0.96 where this should work

    Please login or register to see this code.

     

    18 hours ago, Neo Andersson said:

    @jgabHelloo Jan

    I am looking for some functions, abbreviations in ER5

     

    1.  getting gateway name (master)

    2. sending email / probably only to admin's email

    3. getting device parentID/parentName (if device has any)

     

    I have created custom functions for them, but if they are in ER5,i will use them rather,.

    Pushed v0.96 with some fixes.

    The variable GW is now api.get("/home")

    so

    rule("log('Name is %s',GW.hcName)")

    works

    • Thanks 1
  • Topic Author
  • Posted (edited)
    9 minutes ago, Neo Andersson said:

    Jan the relased event is not triggered at all for me

    Bu this was working so far, and i did not change the code..i dont understand

    Did you try it in a way that i use? So to catch the released event for any button

    Please login or register to see this code.

     

    I have checked it at my house too..

    Please login or register to see this code.

     

    works with fibaro keyfob.

    When clicked just generates Pressed

    when held down for a while generates HeldDown and then Released

    ...and any key

    Edited by jgab
  • Topic Author
  • Posted
    19 hours ago, Neo Andersson said:

    @jgabHelloo Jan

    I am looking for some functions, abbreviations in ER5

     

    1.  getting gateway name (master)

    2. sending email / probably only to admin's email

    3. getting device parentID/parentName (if device has any)

     

    I have created custom functions for them, but if they are in ER5,i will use them rather,.

     

    1. v0.96 GW.hcName works

    2. rule("2:email = 'This is an email to user 2'  ")

    3. v0.96. <ID>:parent returns parent id of <ID> or nil

    • Like 1
    Posted
    11 minutes ago, jgab said:

    Please login or register to see this code.

     

    works with fibaro keyfob.

    When clicked just generates Pressed

    when held down for a while generates HeldDown and then Released

    ...and any key

    Jan, evereything is meesed up . Button 3 press invokes button 1 functions etc..

    Now i commented out all the rules and the rules are still triggered..,.

    Ehh, 

    3 minutes ago, Neo Andersson said:

    Jan, evereything is meesed up . Button 3 press invokes button 1 functions etc..

    Now i commented out all the rules and the rules are still triggered..,.

    Ehh, 

    OKaym i need to restart HC3 again.. everything is upside down..Probably some ghosts in the beckround??

  • Topic Author
  • Posted

    Just saw this 😕

     

     

    Posted

    Jan, for your information

    my button gives released after pressing

    Hold the button a moment gives me pressed

    HUE software 1.61.1961135030  >> notification uptodate

    Please login or register to see this code.

     

    Single press

    Please login or register to see this code.

    To get pressed in debug I need to "hold" a moment the button and I also get released.

    Please login or register to see this code.

     

  • Topic Author
  • Posted
    1 minute ago, Sjakie said:

    Jan, for your information

    my button gives released after pressing

    Hold the button a moment gives me pressed

    HUE software 1.61.1961135030  >> notification uptodate

    Single press

    To get pressed in debug I need to "hold" a moment the button and I also get released.

     

    Yes, childrenOfHue will always give Pressed because it has to guess if it's a short press or a long pressed. Hue maps they events different than fibaro....

    Posted (edited)
    7 minutes ago, jgab said:

    Just saw this 😕

     

     

    After restart, pressed, and heldDowns are okay, but this

     

    Please login or register to see this code.

    still deosnt work. And as i said, we were using this for weeks now, and it was working i swear

    Edited by Neo Andersson
    Posted
    44 minutes ago, Neo Andersson said:

    After restart, pressed, and heldDowns are okay, but this

     

    Please login or register to see this code.

    still deosnt work. And as i said, we were using this for weeks now, and it was working i swear

    @jgab

    Jan, i have tried it this way, just for testing if it works with separate button

    Please login or register to see this code.

    and this works

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

    @jgab

    Jan, i have tried it this way, just for testing if it works with separate button

    Please login or register to see this code.

    and this works

    That doesn't make sense.

    What does it log if you do

    Please login or register to see this code.

    Posted
    53 minutes ago, Neo Andersson said:

    @jgab

    Jan, i have tried it this way, just for testing if it works with separate button

    Please login or register to see this code.

    and this works

    i have fiund a solution, that seems to work, however still don't know why the other rule stopped working..

    This seems to work for every button released event

     

    Please login or register to see this code.

     

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

    i have fiund a solution, that seems to work, however still don't know why the other rule stopped working..

    This seems to work for every button released event

     

    Please login or register to see this code.

     

    That's like office_remote_controller:key == '1:Released'

    but with a Lua string pattern match using ===

    Posted
    4 minutes ago, jgab said:

    That doesn't make sense.

    What does it log if you do

    Please login or register to see this code.

    Please login or register to see this image.

    /monthly_2023_12/image.png.e65353a236bf01d2779c54b15156f60e.png" />

    Please login or register to see this attachment.

    Just now, Neo Andersson said:

    Please login or register to see this link.

    Please login or register to see this attachment.

     

     

    but this

    Please login or register to see this code.

    still doesnt

    5 minutes ago, jgab said:

    That's like office_remote_controller:key == '1:Released'

    but with a Lua string pattern match using ===

    Yes, but only this way i got it back working. As i have this rule in customer's houses, it is quite crucial for me. They have dozens of remotes,and around 26 blinds..so quite essential to have it working

    Posted

    Hi Jan 

    I have a feature request / integration.

    I would be great with InfluxDB 2.0 integration (this is the one new HA installation uses).  - I searched the forum er there are already some examples for InfluxDB 1.8. 
    unfortunately it seems that InfluxDB 2.0 has an different authentication mechanism.

  • Topic Author
  • Posted (edited)

    One more test please

    Please login or register to see this code.

     

    because you are not getting the id and attr logging which is strange....

    Edited by jgab
    Posted
    10 minutes ago, jgab said:

    One more test please

    Please login or register to see this code.

     

    because you are not getting the id and attr logging which is strange....

    Remote event: #device{id=2452,value={keyAttribute="Pressed",keyId=1},property="centralSceneEvent"}

    Just now, Neo Andersson said:

    Remote event: #device{id=2452,value={keyAttribute="Pressed",keyId=1},property="centralSceneEvent"}

    Please login or register to see this attachment.

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