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

Jan,

its tells me Hue8595; ct 347 what is here the max and equal to 255?

255 the max value in ER I believe

Alert:none

Effect:none

//Sjakie

Link to comment
Share on other sites

  • Topic Author
  • 2 hours ago, Sjakie said:

    Jan,

    Please login or register to see this code.

    Thnaks!!!

    You mentioned to push ICAL?? B12 but my B12 is from June, just to alert you.

    Thanks for the service!!

    //Sjakie

    No I haven't pushed. B12 is the latest.

    Link to comment
    Share on other sites

    Anyone that have a rule with pirsenor outside door and a door sensor?

    want to turnon light when coming from outside but not when i open door from inside 

    Link to comment
    Share on other sites

    Hi, I use something for bath room but its in development.

    From outside >>movement:breached & door:safe

    from inside door:breached & sensor:safe

    //Sjakie

    Link to comment
    Share on other sites

    Hi, all I have another small problem.

    If we are at home we enable a so called ring alarm.

    All outside openings are watched and if breached some lights start to flicker and voice msg.

    I dont have the intention to mount a motion sensor.

    Bedroom>> window and door both with sensors.

    If window:breached & door.safe => silentAlarm:on

    but idf we close the door after open the window I get alarm, how to avoid?

    I cant figger it out is this possible?

    //Sjakie

    Link to comment
    Share on other sites

  • Topic Author
  • 1 hour ago, jompa68 said:

    Anyone that have a rule with pirsenor outside door and a door sensor?

    want to turnon light when coming from outside but not when i open door from inside 

     

    Please login or register to see this code.

    Something like this?

    When the door opens, we check if the motion sensor is breached. If it is, we assume they came from outside, if not, we assume they came from inside?

    You could also add that if the motion was breached within a time interval before the door opens the person came from outside...

    Link to comment
    Share on other sites

  • Topic Author
  • 15 hours ago, Sjakie said:

    Jan,

    its tells me Hue8595; ct 347 what is here the max and equal to 255?

    255 the max value in ER I believe

    Alert:none

    Effect:none

    //Sjakie

    It's only the ':value' (i.e. the brightness) that I moderate to 0..99 to be similar to what fibaro dimmers return.

    However, if you access the brightness by reading all the properties it will be in the range 0..255 as that is what Hue uses internally.

    All other Hue properties are also returned as-is. 'ct' is an unsigned int16 according to Hue developer documentation - so it can be quite large.

     

     

    9 hours ago, Sjakie said:

    Hi, all I have another small problem.

    If we are at home we enable a so called ring alarm.

    All outside openings are watched and if breached some lights start to flicker and voice msg.

    I dont have the intention to mount a motion sensor.

    Bedroom>> window and door both with sensors.

    If window:breached & door.safe => silentAlarm:on

    but idf we close the door after open the window I get alarm, how to avoid?

    I cant figger it out is this possible?

    //Sjakie

    and if a thief opens the window after you have closed the door?

     

    Link to comment
    Share on other sites

    Hi @jgab

    Why don you use "/api/refreshStates" instead of "mailboxes" polling?

    This way we dont have to edit scene header at all. Just read updates from the API by HTTP.

    Thanks

    Link to comment
    Share on other sites

  • Topic Author
  • 14 minutes ago, jack.daniels said:

    Hi @jgab

    Why don you use "/api/refreshStates" instead of "mailboxes" polling?

    This way we dont have to edit scene header at all. Just read updates from the API by HTTP.

    Thanks

    It doesn't work to catch sending events between scenes (what's in fibaro:args() doesn't show in /api/refreshStates).

    It doesn't show globals changing value either.

    Lots of polling to get short trigger times  - not sure how well it scales.

    I do use refreshStates polling for scene info today but maximum once per minute.

     

    There is also a function Event.pollTriggers(devices) that allows for polling for defined devices (using refreshStates). Useful for device values that sometimes causes "trigger storms", like power triggers.

     

    Having said that - I guess there is a possibility to have a version of ER without inter-scene events that could use refreshStates. Lets see what happens with the next version of the HCx...

    Edited by jgab
    Link to comment
    Share on other sites

    Yes it worth to try it. “Single scene” - this is what we missing in HCL. Not need any interscene events here ;) And moving triggers from scene header will prevent of loading new lua environment in ram and for sure will be faster

     

    Will make some tests. Short trigger time is the goal feature of event model. Handle exactly that time it happen

    Link to comment
    Share on other sites

    Your framework is so huge and complicated, i have wasted much time studying how it works.

    I just love the scripting syntax and want to code it in C. No luck so far, because its so much LUA’esh ;) 

    Link to comment
    Share on other sites

  • Topic Author
  • On 10/22/2019 at 7:02 PM, jompa68 said:

    @jgab can i dump HUE light somehow to see what color code it have?

    Please login or register to see this code.

    :values instead of :value will return a table of all the Hue properties for that lamp.

    • Like 1
    Link to comment
    Share on other sites

  • Topic Author
  • On Sunday October 27 at 03:00 we change to Winter time in Sweden. The clock is turned back 1 hour.

    That causes a problem for ER and scheduled rules.

    Here is a quick fix to recalculate '@' rules in ER at a specified time. It relies on V3 B77 that I just pushed.

    Please login or register to see this code.

    For other countries with winter/summer times it can be adjusted for those dates and hours.

     

    The easy fix is to wake up in the night and restart all ER scenes. However, if you want to sleep late on Sunday morning but still want your lights or wake-up

    rules to execute at the correct time you could add the rule above. On the 28th, you could comment out the rule.

    Link to comment
    Share on other sites

    Please login or register to see this code.

    This is what I ment. Anyway, that didnt work for me (HCL has cut off debug messages, so I have no idea whats wrong) May be you can check?

    Edited by jack.daniels
    Link to comment
    Share on other sites

    @jgab do you now if node-red Sonos have been broken in newer ER? Cannot set vol value anymore. 

    Command comes to NR but refuse to be set.

    Link to comment
    Share on other sites

  • Topic Author
  • 1 minute ago, jompa68 said:

    @jgab do you now if node-red Sonos have been broken in newer ER? Cannot set vol value anymore. 

    Command comes to NR but refuse to be set.

    Have you upgraded nodered sonos? Maybe the parameter has changed?

    Link to comment
    Share on other sites

  • Topic Author
  • 53 minutes ago, Sjakie said:

    Jan,

    HC2 4.56

    Sonos not updated

    Volume goes halfway the message down

    Ok, I'm not at home so I can't test it.

    I see there is a new NR node "node-red-contrib-sonos-plus" that is actively updated - maybe switch to that?

    Link to comment
    Share on other sites

    47 minutes ago, jgab said:

    I see there is a new NR node "node-red-contrib-sonos-plus" that is actively updated - maybe switch to that?

    Yepp, did work as expected. 

    and ALOT more functions with that node. 

    Please login or register to see this link.

    Edited by jompa68
    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...