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
    18 minutes ago, 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

    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

     

    A rule like

    Please login or register to see this code.

    should give an output like

    Please login or register to see this code.

     

    but you don't get id and attr???

    1 minute ago, Neo Andersson said:

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

    This looks ok

    Posted
    1 minute ago, jgab said:

     

    A rule like

    Please login or register to see this code.

    should give an output like

    Please login or register to see this code.

     

    but you don't get id and attr???

    This looks ok

    i think the problem is int this part

    Please login or register to see this code.

    Just now, Neo Andersson said:

    Please login or register to see this code.

     

    No i did not get them

    2 minutes ago, Neo Andersson said:

    i think the problem is int this part

    Please login or register to see this code.

    No i did not get them

    Jan, is that correct, isnt here something that i should have changed?

     

    Please login or register to see this code.

     

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

    i think the problem is int this part

    Please login or register to see this code.

    No i did not get them

     

    It's the latest version of ER5 also?

    Posted (edited)
    4 minutes ago, jgab said:

     

    It's the latest version of ER5 also?

    Please login or register to see this image.

    /monthly_2023_12/image.png.4d93ac1f5d368382c6c4ed26318ebbeb.png" />

    2 minutes ago, Neo Andersson said:

    Please login or register to see this link.

    And its not only at my system..its is everywhere where i use ER5, but as i told you this was working like a charm..everywhere

    Edited by Neo Andersson
  • Topic Author
  • Posted

    This is really strange so let's try to corner this bug

     

    Please login or register to see this code.

     

    and press a button so I can see what happens

    before :key become standard in ER5 I posted DIY version. Do you still have that?

    Something like?

    function stdPropObject.getProp.key(id,prop,event) ...
    Posted
    3 minutes ago, jgab said:

    This is really strange so let's try to corner this bug

     

     

    Please login or register to see this code.

     

    and press a button so I can see what happens

    before :key become standard in ER5 I posted DIY version. Do you still have that?

    Something like?

    function stdPropObject.getProp.key(id,prop,event) ...

    Please login or register to see this attachment.

    4 minutes ago, jgab said:

    before :key become standard in ER5 I posted DIY version. Do you still have that?

    Something like?

    function stdPropObject.getProp.key(id,prop,event) ...

    I am still using this below, i dont have anything else

    Please login or register to see this code.

  • Topic Author
  • Posted (edited)

    In engine.lua line 58 there is a function

    Please login or register to see this code.

    change it to

    Please login or register to see this code.

    to see if it's called when you press the button

    7 minutes ago, Neo Andersson said:

    Please login or register to see this attachment.

    I am still using this below, i dont have anything else

    Please login or register to see this code.

    Remove that - :key is built in these days and provide more functionality. This could be the cause of the bug...

    Edited by jgab
    • Like 1
    Posted
    3 minutes ago, jgab said:

    Please login or register to see this code.

    to see if it's called when you press the button

    Please login or register to see this attachment.

    3 minutes ago, jgab said:

    Remove that - :key is built in these days and provide more functionality. This could be the cause of the bug...

    I dont get you..I have the latest version of ER5, what should i remove?

    Posted
    4 minutes ago, Neo Andersson said:

    Please login or register to see this attachment.

    I dont get you..I have the latest version of ER5, what should i remove?

    Okay got it, i commented out like below

    Please login or register to see this image.

    /monthly_2023_12/image.png.9fa89546958e9997c49624ad7d5902db.png" />

    Just now, Neo Andersson said:

    Okay got it, i commented out like below

    Please login or register to see this link.

    Do the same with windowOpened part too?

    After i commented out, it seems to work

     

    image.png.4452269831e8b04a2de81826903fa8d2.png

    So this SETP(er) is not needed anymore..???

     

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

    Okay got it, i commented out like below

    Please login or register to see this link.

    Do the same with windowOpened part too?

    After i commented out, it seems to work

     

    Please login or register to see this link.

    Good!

    No, WindowOpened is not added so keep it

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

    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.

    I don''t think it's an ER5 integration. I would expect a QA that ER5 could send logs to with fibaro.call(....)

    • Like 1
    Posted

    @jgab

    Jan, do you have any tips for this?

    customer has 48 led stripes, a lot of rooms, and he wants me to switch on LEDs differently at different dayparts.

    Now i am using a single approach, where daypart is defined in a global variable, and according to that every time a LED:on is called i set the appropriate brigthness and color level. So this needs  a lot lot of rule.

    But if i could somehow define a device in HT table in a structure like

     

    Please login or register to see this code.

     

    so i would define an allLed table, containing all the leds like

    Please login or register to see this code.

    then i could do

    Please login or register to see this code.

     

    this is something totaly out fo scope, or is there any similar apporach? Maybe custom properties? Any tips?

    Posted

    Hi Jan

    Can the fibaro.callUI function work in EV5

    Please login or register to see this code.

    Getting an error 

     Error from rule: 25 - msg:[Rule:25:1]>> [Rule:25:@02:00 & wday('10') => fibaro.callUI(316,'onReleased','btnGetLatestBackup')] Runtime: 'nil' is not a function



    it's working in EV4 using @Neo Andersson backup manager QA with the addition of fibaroextra

     

     

    P.S Happy New Year 

  • Topic Author
  • Posted
    2 hours ago, Pica2017 said:

    Hi Jan

    Can the fibaro.callUI function work in EV5

    Please login or register to see this code.

    Getting an error 

     Error from rule: 25 - msg:[Rule:25:1]>> [Rule:25:@02:00 & wday('10') => fibaro.callUI(316,'onReleased','btnGetLatestBackup')] Runtime: 'nil' is not a function



    it's working in EV4 using @Neo Andersson backup manager QA with the addition of fibaroextra

     

     

    P.S Happy New Year 

    That should work - just tried it myself.

    Are you running the latest v0.96?

    (there is a missing parenthesis in 

    return api.get(fmt("/plugins/callUIEvent?deviceID=%s&eventType=%s&elementName=%s&value=%s",id,action,elm,value==nil and "null" or value)

    but that you would have noticed?)

    Posted
    33 minutes ago, jgab said:

    That should work - just tried it myself.

    Are you running the latest v0.96?

    (there is a missing parenthesis in 

    return api.get(fmt("/plugins/callUIEvent?deviceID=%s&eventType=%s&elementName=%s&value=%s",id,action,elm,value==nil and "null" or value)

    but that you would have noticed?)

    @jgab @Pica2017 Also dont forget to download the lates backupmanager version, i think it was the 0.3

  • Topic Author
  • Posted (edited)
    12 hours ago, Neo Andersson said:

    @jgab

    Jan, do you have any tips for this?

    customer has 48 led stripes, a lot of rooms, and he wants me to switch on LEDs differently at different dayparts.

    Now i am using a single approach, where daypart is defined in a global variable, and according to that every time a LED:on is called i set the appropriate brigthness and color level. So this needs  a lot lot of rule.

    But if i could somehow define a device in HT table in a structure like

     

    Please login or register to see this code.

     

    so i would define an allLed table, containing all the leds like

    Please login or register to see this code.

    then i could do

    Please login or register to see this code.

     

    this is something totaly out fo scope, or is there any similar apporach? Maybe custom properties? Any tips?

     

    Could something like this work?

    Everytime dayPart changes value it updates all leds with color and value corresponding to dayPart key?

    Please login or register to see this code.

     

    red and white etc needs to be defined somewhere...

    Edited by jgab
    Posted
    5 minutes ago, Neo Andersson said:

    @jgab @Pica2017 Also dont forget to download the lates backupmanager version, i think it was the 0.3


     I caught the parentheses, that was a copy from the original post. Just upgraded from .94 to .96 and was also on the latest 0.3 backup. This is the log on EV5
     

    [31.12.2023] [20:11:00] [TRACE] [ER311]: [Rule:24:1]>> TRUE #daily{24} -> @20:11 => fibaro.callUI(330,'onRelease..
    [31.12.2023] [20:11:00] [ERROR] [ER311]: [Rule:24:1]>> [Rule:24:@20:11 => fibaro.callUI(330,'onReleased','btnGetOldestAndDelete')] Runtime: 'nil' is not a function
    @20:11 => fibaro.callUI(330,'onReleased','btnGetOldestAndDelete')
                                ^^^^^
    This is the log on EV4 

    [31.12.2023] [20:16:00] [DEBUG] [QUICKAPP21]: [true]>>'Rule:81[@20:16 => fibaro.callUI(330,'onReleased','btnGetOldestAndDelete')]'
    [31.12.2023] [20:16:00] [TRACE] [QUICKAPP330]: UIEvent:  {"eventType":"onReleased","elementName":"btnGetOldestAndDelete","values":[null],"deviceId":330}
    [31.12.2023] [20:16:04] [DEBUG] [QUICKAPP311]: ping: 85 seconds
    [31.12.2023] [20:16:05] [DEBUG] [QUICKAPP330]:
    Found oldest backup for deletion SHS AUTOBACKUP 2023-12-19 22:07|2716662

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


     I caught the parentheses, that was a copy from the original post. Just upgraded from .94 to .96 and was also on the latest 0.3 backup. This is the log on EV5
     

    [31.12.2023] [20:11:00] [TRACE] [ER311]: [Rule:24:1]>> TRUE #daily{24} -> @20:11 => fibaro.callUI(330,'onRelease..
    [31.12.2023] [20:11:00] [ERROR] [ER311]: [Rule:24:1]>> [Rule:24:@20:11 => fibaro.callUI(330,'onReleased','btnGetOldestAndDelete')] Runtime: 'nil' is not a function
    @20:11 => fibaro.callUI(330,'onReleased','btnGetOldestAndDelete')
                                ^^^^^
    This is the log on EV4 

    [31.12.2023] [20:16:00] [DEBUG] [QUICKAPP21]: [true]>>'Rule:81[@20:16 => fibaro.callUI(330,'onReleased','btnGetOldestAndDelete')]'
    [31.12.2023] [20:16:00] [TRACE] [QUICKAPP330]: UIEvent:  {"eventType":"onReleased","elementName":"btnGetOldestAndDelete","values":[null],"deviceId":330}
    [31.12.2023] [20:16:04] [DEBUG] [QUICKAPP311]: ping: 85 seconds
    [31.12.2023] [20:16:05] [DEBUG] [QUICKAPP330]:
    Found oldest backup for deletion SHS AUTOBACKUP 2023-12-19 22:07|2716662

     

    Are you sure fibaro.callUI is defined? It's not available in ER5 unless you have defined it yourself.

    In ER4 it was available through fibaroExtra...

    Posted
    6 minutes ago, Pica2017 said:


     I caught the parentheses, that was a copy from the original post. Just upgraded from .94 to .96 and was also on the latest 0.3 backup. This is the log on EV5
     

    [31.12.2023] [20:11:00] [TRACE] [ER311]: [Rule:24:1]>> TRUE #daily{24} -> @20:11 => fibaro.callUI(330,'onRelease..
    [31.12.2023] [20:11:00] [ERROR] [ER311]: [Rule:24:1]>> [Rule:24:@20:11 => fibaro.callUI(330,'onReleased','btnGetOldestAndDelete')] Runtime: 'nil' is not a function
    @20:11 => fibaro.callUI(330,'onReleased','btnGetOldestAndDelete')
                                ^^^^^
    This is the log on EV4 

    [31.12.2023] [20:16:00] [DEBUG] [QUICKAPP21]: [true]>>'Rule:81[@20:16 => fibaro.callUI(330,'onReleased','btnGetOldestAndDelete')]'
    [31.12.2023] [20:16:00] [TRACE] [QUICKAPP330]: UIEvent:  {"eventType":"onReleased","elementName":"btnGetOldestAndDelete","values":[null],"deviceId":330}
    [31.12.2023] [20:16:04] [DEBUG] [QUICKAPP311]: ping: 85 seconds
    [31.12.2023] [20:16:05] [DEBUG] [QUICKAPP330]:
    Found oldest backup for deletion SHS AUTOBACKUP 2023-12-19 22:07|2716662

    Just a side note. There was a little typo in Backup manager. Probably it has nothing to do with this problem, just informing you...Version is 0.4

    Just now, Neo Andersson said:

    Just a side note. There was a little typo in Backup manager. Probably it has nothing to do with this problem,or maybe it has, idk, just informing you...Version is 0.4, try with this

     

    Posted
    13 minutes ago, jgab said:

     

    Could something like this work?

    Everytime dayPart changes value it updates all leds with color and value corresponding to dayPart key?

    Please login or register to see this code.

     

    red and white etc needs to be defined somewhere...

     

     

    OKay, this would work if

     

    1. daypart names equals to night and day

    2. Are you sure, i can call this led.data[dp].color as dp is a string from global variable while in the rule it is not...or is it?

     

    Sorry, i can't do too much tests, so i rather 100 times ask before uploading anything, becasue every single time i save the QA i need to restart HC3 because of those ghost processes..really hard to work this way, mostly on customers systems..so i have to ask 100 times

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