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)

Please login or register to see this code.

Please login or register to see this code.

 

Edited by systemfel
Posted

How can I change this simple rule so that the garage light no longer turns on after e.g. November 30th.

 

rule("@sunset+01:00+rnd(00:10,00:25) => Garage:on")

Posted
13 hours ago, jwi said:

How can I change this simple rule so that the garage light no longer turns on after e.g. November 30th.

 

rule("@sunset+01:00+rnd(00:10,00:25) => Garage:on")

So i assume you want it to be working in january-november range, so add another condition month('jan-nov')

  • Thanks 1
Posted (edited)

@jgab Jan , please. I have completly reinstalled ER5, to find the reason, why the UI controls just disappear. After that, i noticed a strange behaviour.

 

Your example test ping function in ER5 main..still runs after i removed it..Here is my main function. I did nothin special, just removed your test examples.

Please login or register to see this code.

 

 

and look at the first picture. 

 

Please login or register to see this image.

/monthly_2024_11/image.png.0afe06a131db94bcc676c8d691d81056.png" />

 

 

 

 

Also the UI buttons labels dissapiered again.

 

image.png.fb75048f461024c174fa4dc4a6772cff.png

Edited by Neo Andersson
Posted
2 hours ago, Neo Andersson said:

and look at the first picture. 

In the past I had the same ping problem. As far as I remember I solved the problem by restarting the HC3.

Posted
Just now, jwi said:

In the past I had the same ping problem. As far as I remember I solved the problem by restarting the HC3.

yes i did it, and it is gone now, but this should not be happening..we need to find the origin of this, becuase this is another example of those ghost processes in the backround..

  • Topic Author
  • Posted
    On 11/9/2024 at 6:59 PM, systemfel said:

    Please login or register to see this code.

    Please login or register to see this code.

     

    What doesn't work? No trigger? error?
    I can't see anything that shouldn't be backwards compatible.
    Do you get any trigger from the device?

    try
    rule("#device{id=656} => log('Trigger from 656 %s',env.event)")
    it should trigger any device event for device 656 and log it. If you get a log with property='centralSceneEvent' then there is something with ER5... otherwise your device is not generating centralSceneEvent anymore...

    On 11/10/2024 at 10:57 AM, Neo Andersson said:

    @jgab Jan , please. I have completly reinstalled ER5, to find the reason, why the UI controls just disappear. After that, i noticed a strange behaviour.

     

    Your example test ping function in ER5 main..still runs after i removed it..Here is my main function. I did nothin special, just removed your test examples.

    Please login or register to see this code.

     

     

    and look at the first picture. 

     

    Please login or register to see this link.

     

     

     

     

    Also the UI buttons labels dissapiered again.

     

    Please login or register to see this link.

    That is of course very strange. It's just a Lua QA, so the bug must be in the fibaro delete approach.

    Seems like the zombie QAs you had problem with before.

    Posted
    15 hours ago, jgab said:

    That is of course very strange. It's just a Lua QA, so the bug must be in the fibaro delete approach.

    Seems like the zombie QAs you had problem with before.

    @jgab but Jan, when at this point i press reinstall in QA updater, all the UI controls come back again. If then again i make some changes in the code and save the ER5 QA, the UI controls dissapier again.

    • 2 weeks later...
  • Topic Author
  • Posted
    On 11/14/2024 at 10:17 AM, Neo Andersson said:

    @jgab but Jan, when at this point i press reinstall in QA updater, all the UI controls come back again. If then again i make some changes in the code and save the ER5 QA, the UI controls dissapier again.

    Yes, that could be something else, but you also said

    Quote

    Your example test ping function in ER5 main..still runs after i removed it..Here is my main function. I did nothin special, just removed your test examples.

    ..which made me think of zombies...

    Posted
    2 hours ago, jgab said:

    Yes, that could be something else, but you also said

    Can we somehow track down the source of the problem?

    2 hours ago, jgab said:

    ..which made me think of zombies...

    Is it zomnbies or not, this is not happening to me only..HUB restart solves the zombie question. Should i push on Fibaro support to give some attention to this? Or you think thats something no one would solve?

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

    Can we somehow track down the source of the problem?

    Is it zomnbies or not, this is not happening to me only..HUB restart solves the zombie question. Should i push on Fibaro support to give some attention to this? Or you think thats something no one would solve?

    That the menus disappear can be because the ER5 QA may not been updated with the latest UI view that came in the later firmwares... and that may cause issues when resaved... or it may depend on something else. I will try to investigate it.

     

    That the QA seems to run even if it's deleted that's a tougher problem. Last time we had an issue with this I spent significant time trying to come up with a QA that always showed this behavior - but failed. My conclusion at that time was that it's not the QA itself, but maybe the QA size etc together with the overall state of the HC3 that causes it. That's why it happened to you but when you sent me the QA (at that time) I couldn't repeat the behavior etc. This probably also makes it a very hard problem for Fibaro to track down... Maybe if you have one of those running and they could log into your box remotely and observe it first hand...

    Posted
    36 minutes ago, jgab said:

    That the menus disappear can be because the ER5 QA may not been updated with the latest UI view that came in the later firmwares... and that may cause issues when resaved... or it may depend on something else. I will try to investigate it.

    Actually, as i said, the QA was updated by the QAupdater (your QA for updating ER5), and when i did it, the control come back again.They dissapier again, when making some changes and resaving again the ER5 QA. Thanks for investigating it.

  • Topic Author
  • Posted

    The ER5 qa updated/dowloaded with the updater QA don’t have the new uiview properties and may thus get their uis reset when saving in the qa web editor 

    Posted
    7 hours ago, jgab said:

    The ER5 qa updated/dowloaded with the updater QA don’t have the new uiview properties and may thus get their uis reset when saving in the qa web editor 

    I was thinking about that too. But my ER5 has the New UI checkbox option unticked. So when I update ER5 by the updater, everywhere the New UI checkbox are unticked. Nowhere are used. I have tried it in every possible way.

    Posted

    Hi, and thx for a good tip.

     

    I've tried a couple of versions, but I'm still not able to make it work. In the screenshot is the working LUA. This is what I've tried in EventRunner:

     

    Please login or register to see this code.

     

    This is the result:

    Please login or register to see this code.

     

    Please login or register to see this attachment.

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

    Hi, and thx for a good tip.

     

    I've tried a couple of versions, but I'm still not able to make it work. In the screenshot is the working LUA. This is what I've tried in EventRunner:

     

    Please login or register to see this code.

     

    This is the result:

    Please login or register to see this code.

     

    Please login or register to see this attachment.

    :setClimatePanelOverrideSchedule is not implemented as I can see. Also the arguments are a bit strange (array of 3 strings), So I'm not sure if would work with my argument parse anyway.
    I would recommend a custom lua function.

    Please login or register to see this code.


     

    Posted
    On 11/13/2024 at 6:20 PM, jgab said:

    What doesn't work? No trigger? error?
    I can't see anything that shouldn't be backwards compatible.
    Do you get any trigger from the device?

    try
    rule("#device{id=656} => log('Trigger from 656 %s',env.event)")
    it should trigger any device event for device 656 and log it. If you get a log with propee rty='centralSceneEvent' then there is something with ER5... otherwise your device is not generating centralSceneEvent anymore...

    That is of course very strange. It's just a Lua QA, so the bug must be in the fibaro delete approach.

    Seems like the zombie QAs you had problem with before.

     

    Soory fore the late ansewer

     i get this  when i   use  the rule  

    rule("#device{id=656} => log('Trigger from 656 %s',env.event)")

     

    so it reads  but dosent do eny thing

     

    [2024-11-25] [19:17:01] [DEBUG] [QUICKAPP1212]: Trigger from 656 #device{id=656,value={sceneId=16},property="sceneActivationEvent"}[2024-11-25] [19:17:01] [DEBUG] [QUICKAPP1212]: Trigger from 656 #device{id=656,value=[{name="",sceneId=16}],old=[{name="",sceneId=16},{name="",sceneId=14}],property="availableScenes"}[2024-11-25] [19:17:01] [DEBUG] [QUICKAPP1212]: Trigger from 656 #device{id=656,value={sceneId=16},property="sceneActivationEvent"}[2024-11-25] [19:17:02] [DEBUG] [QUICKAPP1212]: Trigger from 656 #device{id=656,value={sceneId=16},property="sceneActivationEvent"}

  • Topic Author
  • Posted (edited)

    Please login or register to see this code.

     

    Ok, it seems like the scene values are numbers and not strings which makes the test untrue.

    Add this in main() 

    Please login or register to see this code.

     

    I will fix it in the next version but it may take some time...

    Edited by jgab
    Posted (edited)

    Please login or register to see this image.

    /monthly_2024_11/2024-11-26181412.png.0fe373a81ac0dc01a7dda5f0fc8c89a5.png" />@Neo Andersson

    Edited by lux
    Posted
    On 11/25/2024 at 11:59 PM, lux said:

    Please login or register to see this link.

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