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

    Yes,

    88:last returns the time since 88 last changed value

    {88,77}:last returns a table of the last times for 88 and 77, ex {360, 400}

     

    The same if you would ask for :value or :lux or any other property for a list of devices.

     

    :isOn, :breached etc. behave differently and always return a boolean value.

     

    and you can't do  {360, 400} >= 24:00.

     

    You need to reduce the table to a value depending on what you want to achieve. Ex. the max or the min value of the table

    Ex.

    Please login or register to see this code.

     

    The same problem for the second rule

    Please login or register to see this code.

    there is also an 'average' function that returns the average value of a table of value. Ex. more useful for getting the average of a number of lux sensors.

     

    • Thanks 1
    Posted

    Hello. When ER4 restarts after auto-update, the HC3 message says it started. If it is updated, we recommend sending a notification message that it has been updated.

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

    Hello. When ER4 restarts after auto-update, the HC3 message says it started. If it is updated, we recommend sending a notification message that it has been updated.

    That's a good idea. Will implement in next version.

    Posted
    43 minutes ago, jgab said:

    That's a good idea. Will implement in next version.

     

    Glad it was helpful.

    If the content of the message can be modified by the user or the developer, I think it would be better to write it down when making a major update.

    Of course, there will be a lot of difficulty in writing.

    Developer.

    Thank you very much for his hard work.

    Posted
    On 9/3/2020 at 12:06 AM, jgab said:

    Surprisingly hard bug to fix.

    ...but I think I got it now - pushed v0.5fix12

    ...and I have tried your Nodered code and it works

    Works

    Thanks for your advice

    Guest kallecux
    Posted

    Hi @jgab, now that geolocation is working in HC3 and the new app, can you please give me a hint, how to catch geolocation events with ER4?

     

    Thank you

    Karl Heinz 

    Posted

    Jan,

    HC2 Hue.monitor if enabled checks continuous the state of the selected Hue's is see now.

    Can I reduce it to reduce the load of trafic between Hue bridge and HC2?

    Fa my  lights need only to be checked if its dark and or #nightLightsOn.

    Is that possible?

     

    What is the effect from Hue.monitor, 22 Hue lights,  if used in HC3 in relation with load / my crashes?

    I gues not to much because at night no problems but less load on HC3.

    Please your valuable advice,

    //Sjakie

  • Topic Author
  • Posted
    3 minutes ago, Sjakie said:

    Jan,

    HC2 Hue.monitor if enabled checks continuous the state of the selected Hue's is see now.

    Can I reduce it to reduce the load of trafic between Hue bridge and HC2?

    Fa my  lights need only to be checked if its dark and or #nightLightsOn.

    Is that possible?

     

    What is the effect from Hue.monitor, 22 Hue lights,  if used in HC3 in relation with load / my crashes?

    I gues not to much because at night no problems but less load on HC3.

    Please your valuable advice,

    //Sjakie

    The second argument to Hue.monitor is the interval in milliseconds to poll the hub. Set it to a higher value like 5000 or 10000.

    Posted

    How to write?

  • Topic Author
  • Posted
    2 minutes ago, Sjakie said:

    How to write?

    Hue.monitor(<id>,10000)

    Posted

    Jan,

    Hue.monitor(12095, 10000)
    Hue.monitor(12096, 10000)

    or

    Hue.monitor("grondSpotVlag", 10000)
    Hue.monitor("sotBeeld", 10000)

    Both gives a continous flow of payload.

    //Sjakie

  • Topic Author
  • Posted
    17 hours ago, kallecux said:

    Hi @jgab, now that geolocation is working in HC3 and the new app, can you please give me a hint, how to catch geolocation events with ER4?

     

    Thank you

    Karl Heinz 

    I haven't seen a GeoEvent yet. I think ER4 will log "unhandled event -- please report" when it sees one.

    Then it is easy to add it to allowed triggers. 

    I will see if I can manage to trigger one...

  • Topic Author
  • Posted
    15 hours ago, Sjakie said:

    Jan,

    Hue.monitor(12095, 10000)
    Hue.monitor(12096, 10000)

    or

    Hue.monitor("grondSpotVlag", 10000)
    Hue.monitor("sotBeeld", 10000)

    Both gives a continous flow of payload.

    //Sjakie

    I believe it should allow both names and deviceIDs. 

    What do you mean by continuous? Can you show the code and the log?

    Posted

    Hello Jan,

    it gives continuous the lines 

    Hue number of lamp and payload

     

    Fibaro dont let me post .png anymore 

    //Sjakie

     

     

     

    sorry command see previous post

     

  • Topic Author
  • Posted
    5 minutes ago, Sjakie said:

    Hello Jan,

    it gives continuous the lines 

    Hue number of lamp and payload

     

    Fibaro dont let me post .png anymore 

    //Sjakie

     

     

     

    sorry command see previous post

     

    Can you PM me the scene?

    Guest kallecux
    Posted

    Hi @jgab, sorry, but there is no unhandled event.

    I get this in the console:

    Please login or register to see this code.

    i tried this in ER4 - but no result:

     

    self:enableTriggerType({"device","global-variable","custom-event","location"}) -- types of events we want

    rule("#location => log('location event erhalten')")

     

    Greetings!

     

     

  • Topic Author
  • Posted
    3 minutes ago, kallecux said:

    Hi @jgab, sorry, but there is no unhandled event.

    I get this in the console:

    i tried this in ER4 - but no result:

    self:enableTriggerType({"device","global-variable","custom-event","location"}) -- types of events we want

    rule("#location => log('location event erhalten')")

    Greetings!

    Sorry, set this flag in QuickApp:main()

      self._UNHANDLED_EVENTS = true

  • Topic Author
  • Posted (edited)

    Ok, I managed to trigger one.

    I have pushed v0.5fix15

    Rule

    Please login or register to see this code.

    {type='location', id=<user>, value=<"leave"/"enter">, property=<location id>}

     

    and remember to self:enableTriggerType({"location"}) 

    Edited by jgab
    Guest kallecux
    Posted

    Yes - it is working - thank you very much!!

    Greetings! 

    Karl Heinz 

    Posted
    On 8/13/2018 at 5:38 PM, jgab said:

    -- Toggle lamp if key '1' pressed on keyfob Rule.eval("myKeyfob:central.keyId=='1' => myLight1:toggle")

    Is there a way to easily translate this to another z-wave remote control with multiple buttons? I have a RC-90 where each button can be given different tasks for one press, double press, and "long" press. I tried the below rule where I want to turn on a window lamp that is connected through a Fibaro wall plug. I do not get any error message so it is hard to say what is wrong...

     

     rule("Remote_entre:centralSceneEvent=='1' => Arbetsrum_fonster:on")

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