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
  • 6 hours ago, amilanov said:

    Jan,

    Have you used this to replace all your automated lighting?

    I'm looking to replace my own code, but haven't found anything yet that does what I want which is to manage all zones from one place - which is roughly what my automated lighting does (albeit I wrote it 5 years ago and it needs an hug overhaul and tidy up)

    I can't have duplicate scenes for each zone as it is too much maintenance to go into so many different places when I want to make a change or when the code gets updated.

    Regards

    Aleks

     

    Yes, I do.

    In general there is no problem with the number of rules, as rules only run when triggered (many other frameworks poll all the rules in regular intervals).

    What can be a problem (and that's true for scenes that's get triggered in general) is the frequency of triggers. It's usually manageable and ER has some

    tricks to cope with it and for triggers that can arrive in bursts (like 'power' triggers) there are work arounds.

     

    Because ER is a general purpose framework there are many ways to structure your rules. I'm happy to discuss and help you if you want to try.

     

    ...and you can run ER in the HC2 emulator, so you can easily speed through 24 hours to see if your lights turn on and off at the right times - and you can simulate sensor breaches to see if your rule logic makes sense.

    Edited by jgab
    Link to comment
    Share on other sites

    Never mind, i did not have an updated hc2.data in ZBS. It is ok now.

    not sure if i found a bug or an mistype of rule

     

     

    Please login or register to see this code.

    Hue.monitor gives this error in ZBS

    Please login or register to see this code.

     

    Edited by jompa68
    Fixed
    Link to comment
    Share on other sites

    @jgab

    i have setup different scenes in HUE app and i can see the name of them in ER but how do i address to scene with a rule?

    Did find some early post in this topic from you but they don't seem to work, can you help or someone that use scenes with ER that now the rule setup?

     

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

    Hi Jompa,

    My scenes in Hue are having the same name in ER

    So in ER I more or less copied it

    rule("HueRight={ 12321,12328,12331}")

    //Sjakie

    Link to comment
    Share on other sites

    yep

    I have a few duplo spots so right are all  right spots

    Hueright

    Hueleft

    HueTv>>> ambilight and two colored Hue's for light effects

    Huediverse

    HueFlag>>with colorshow

    Huegarden>>with colorshow

    the whole controle is via ER

    I dont use HUe app

    Only for light effect on TV

    Link to comment
    Share on other sites

    If I change from for example huerigt into hueleft

    first sitch on left with color or brightness than switch off right works well here

     

    Link to comment
    Share on other sites

    I have added a couple of IKEA tradfri bulbs to my HUE bridge so i can use them with ER. 
    So i will use one of the bulb to show if alarm is on/off and if someone is home. Will also set a soft light during night.
    Was inspired(again) from @cag014 post 

    Please login or register to see this link.

    Link to comment
    Share on other sites

  • Topic Author
  • 33 minutes ago, jompa68 said:

    Got it to work, after reading some old post.

    Please login or register to see this code.

     

     

    Yes, if the argument (string) is the same as the name of a scene it will set the scene for that lamp. The scene names can be listed with Hue.dump()

    Otherwise if the argument can be translated to a number it will set the dim level to that value.

    Else if the argument is a table it will send the table properties to the Hue light unmodified.

     

    I have some of my Hue lamps in roof lamps that are turned on/off with a wall switch, cutting the power. The problem is to make the lamps turn on with a preferred value.

    There is a little discussed property for Hue lamps 'customsetting', that allows to set Hue properties that should be used when the lamp starts up.

    If you flick the switch twice rapidly the light will turn on with default white again. (so you don't accidentals set a very low dom default and then in an emergency you need to turn on the light...)

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

    On 6/18/2019 at 4:37 PM, jgab said:

     

    This was difficult. I pushed a new version B12 that fixed it. Fingers crossed.

    @jgab

    any updates on iCal lately that i have missed? ?

    anyway i have problems with it, it say that i have entry on a day that i don't have any in my calendar. 

    Cannot upload any proof now because forum gives me an error when i try to upload a picture ?

     

    Link to comment
    Share on other sites

    Morning,

    here too error while uploading, please contact us>>>done

    why Fibaro is not testing after change something??

    Link to comment
    Share on other sites

    Good morning Jan,

     

    rule("settings=woonkamer.spotsjaak:values")  how to log the values?

    //Sjakie

    Link to comment
    Share on other sites

    Jan,

    ICAL_version,_fix = "0.9","B12"  -- June 13, 2019

    Perhaps you pushed V13?

    Link to comment
    Share on other sites

  • Topic Author
  • 5 hours ago, Sjakie said:

    Good morning Jan,

     

    rule("settings=woonkamer.spotsjaak:values")  how to log the values?

    //Sjakie

    Please login or register to see this code.

     

    5 hours ago, Sjakie said:

    Jan,

    ICAL_version,_fix = "0.9","B12"  -- June 13, 2019

    Perhaps you pushed V13?

     

    B12 is the latest. I'm not using it that much myself so I haven't seen any issues.

    It should be possible to run iCal in the HC2 emulator and maybe find the problem that way?

    Otherwise, I will try and add some scens this evening and see if I see anything strange - maybe something is changed in the API?

    Link to comment
    Share on other sites

    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

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