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
  • 12 hours ago, Sjakie said:

    Hello Jan,

    Thanks its looking good!!!

     

    Is it possible to read the temperature value of a sensor and let Alexa set it in voice?

    First part seems easy

    Rule.eval("#alexa{device='Temperature',cmd='On'} =>

    For second part I need your experience.

    Thanks in advance

    //Sjakie

    So you want to speak the temperature when asked?

    Please login or register to see this code.

     

    Link to comment
    Share on other sites

    Good morning Jan,

    Thanks gonna try it.

    I have this error for a while but now it stops sending the message what is very annoying.

    Please advice,

    //Sjakie

     

    Please login or register to see this image.

    /monthly_2019_10/image.png.5293f4c4f761242de18e89d4f4bef35d.png" />

    Link to comment
    Share on other sites

  • Topic Author
  • On 10/4/2019 at 7:05 AM, Sjakie said:

    Good morning Jan,

    Thanks gonna try it.

    I have this error for a while but now it stops sending the message what is very annoying.

    Please advice,

    //Sjakie

     

    Please login or register to see this link.

    It's typically something  wrong with the Telegram CID or BOT ID. Have you double checked that it works with the phone client?

    Link to comment
    Share on other sites

  • Topic Author
  • There is the possibility to create a VD from within ER. That is useful if one needs a VD interface to a particular ER scene.

    An example.

    Please login or register to see this code.

    Here we define a setUpTimerVD() function. Inside the function we call VDev.define that takes as arguments a table structure with VD labels and buttons. The function creates the VD and then we set up Event handlers that process button clicks and updates VD labels. 

    This way, VD are very simple that delegates all processing back to the scene.

     

    In this case our VD creates and updates fibaro globals defined in the argument to setUpTimerVD.

    Ex.

    bedtime = {time=<time since midnight>, descr=<description>; activated=<bool>, days=<string with days>}

     

    The VD that is created will look like this (Oops, days and names are in Swedish in the picture, it's changed to English in the code above)

    Please login or register to see this attachment.

     

    We can flip through variables and set time, days, and active/deactive - and when we are finished we press update to update the fibaro global.

     

    Those globals can then be used in ER and allow us to write simple rules in ER that trigger on their values:

    Please login or register to see this code.

    Here we check the bedtime fibaro global. It's time field is the timer, we check that it is active, and we check that we have the correct days.

    And if we update the variables with the VD, the rules are automatically rescheduled.

     

     

    Edited by jgab
    • Like 1
    Link to comment
    Share on other sites

    Good morning Jan,

    If my HUE light is switched on (value 1) ER notice it in debug as Off

    Please login or register to see this image.

    /monthly_2019_10/image.png.0f7a5f87465460f171dcbd9b12c0bedb.png" />

    image.png.acb9c231e5c9b46f5a14dc069c6d8c71.png

    Rule.eval("woonkamer.lampplafondklokzijde:isOn => log('woonkamer lampplafondklokzijde - aan')")
                    Rule.eval("woonkamer.lampplafondklokzijde:isOff => log('woonkamer lampplafondklokzijde - uit')")
                         Rule.eval("woonkamer.ambitvlight:isOn => log('woonkamer ambitvlight - aan')")
                              Rule.eval("woonkamer.ambitvlight:isOff => log('woonkamer ambitvlight - uit')")

                                    Rule.eval("woonkamer.lampplafondtvzijde:isOn =>  log('woonkamer lampplafondtvzijde - aan')")
                                     Rule.eval("woonkamer.lampplafondtvzijde:isOff => log('woonkamer lampplafondtvzijde - uit')")

    //Sjakie

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Sometimes switch off Hue gives value 1 instead of zero

    Link to comment
    Share on other sites

  • Topic Author
  • 12 hours ago, Sjakie said:

    Good morning Jan,

    If my HUE light is switched on (value 1) ER notice it in debug as Off

    Please login or register to see this link.

    Please login or register to see this link.

    Rule.eval("woonkamer.lampplafondklokzijde:isOn => log('woonkamer lampplafondklokzijde - aan')")
                    Rule.eval("woonkamer.lampplafondklokzijde:isOff => log('woonkamer lampplafondklokzijde - uit')")
                         Rule.eval("woonkamer.ambitvlight:isOn => log('woonkamer ambitvlight - aan')")
                              Rule.eval("woonkamer.ambitvlight:isOff => log('woonkamer ambitvlight - uit')")

                                    Rule.eval("woonkamer.lampplafondtvzijde:isOn =>  log('woonkamer lampplafondtvzijde - aan')")
                                     Rule.eval("woonkamer.lampplafondtvzijde:isOff => log('woonkamer lampplafondtvzijde - uit')")

    //Sjakie

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Sometimes switch off Hue gives value 1 instead of zero

     

    If it's 1 it's just dimmed to a very low value but not off. ER will only know if it's off if the value is 0 or the status is off-line.

    Can it be something with the VD you use that's not setting the value to 0?

    Link to comment
    Share on other sites

    Good morning Jan,

    Yes  its shut of with VD but hangs sometimes on 1 and then ER shows as shown in the picture >>> woonkamer.ambitvlight - uit (off)

    I use the VD sometimes to set or switch manually the HUE

    //Sjakie

    Link to comment
    Share on other sites

  • Topic Author
  • New version v3. B67 uploaded.

    New feature, dimming of lights. The algorithm is from @Krikroff dawn simulator. Credits due,

    See original post for concept and available curve types

     

    Please login or register to see this code.

    With EventScript it becomes 

    Please login or register to see this code.

    The dimming will stop if the lights value changes while it is dimmed due to someone turning on or off the light.

    Edited by jgab
    • Like 1
    Link to comment
    Share on other sites

    Hello Jan,

    I see this error for the first time.

    Router, HC2 and Hue are not has been off line as fa as I know.

    In more ER scenes I have twice the slow mailbox

     

    Please login or register to see this image.

    /monthly_2019_10/image.png.f6f5e09026302420226199054ab90607.png" />

    //Sjakie

    Link to comment
    Share on other sites

  • Topic Author
  • "Slow mailbox watch" can happen now and then and is just a warning. If there are a lot of them in a row you may get  a

    ""Couldn't post event (dead?), dropping.." and then it's more serious.

    Is your system very loaded? How's you CPU load?

    The error from Hue is usually when the Hue bridge is too busy. Are there other scenes talking to the bridge in parallell? (Do you have a lot of VDs that poll the Hue lights?)

     

    Link to comment
    Share on other sites

    Good morning Jan,

    Slow mailbox I see several times. When I am busy edditing a scene sometimes too.

    "Couldn't post event (dead?) >>>.4 times but due to debug window not able to see the cause.

    CPU load 10-50% with sometimes a peak to 90%

    I have around 15 HUE lamps and 15 normal lamps

    Hue error occurred while nothing of hue was enabled.

    I have Sankotronics VD to add them in HC2, if manually need to switch of hue I use it sometimes.

    I have two VD's to switch lights off, one for inside and one for outside>>>>usage only after alarm trigger

    All operations goes with your ER after the finishing touch I am working on.

    There are

    If all  inside lights are switch on and off

    Please login or register to see this image.

    /monthly_2019_10/image.png.12230ed41f6676988cb96c6df20431ca.png" />

    All out side lights swithed on/ off

    image.png.6130034392145630422b296dad45f7a2.png

     

    //Sjakie

    Link to comment
    Share on other sites

  • Topic Author
  • 15 minutes ago, Sjakie said:

    Good morning Jan,

    Slow mailbox I see several times. When I am busy edditing a scene sometimes too.

    "Couldn't post event (dead?) >>>.4 times but due to debug window not able to see the cause.

    CPU load 10-50% with sometimes a peak to 90%

    I have around 15 HUE lamps and 15 normal lamps

    Hue error occurred while nothing of hue was enabled.

    I have Sankotronics VD to add them in HC2, if manually need to switch of hue I use it sometimes.

    I have two VD's to switch lights off, one for inside and one for outside>>>>usage only after alarm trigger

    All operations goes with your ER after the finishing touch I am working on.

    There are

    If all  inside lights are switch on and off

    Please login or register to see this link.

    All out side lights swithed on/ off

    Please login or register to see this link.

     

    //Sjakie

     

    Have you tried to group your outside lights in Hue groups? Then you can turn on/off with one command? Or maybe you need individual control of the lights?

    Have you enabled a lot of Hue.monitor(...) in your ER code?

     

    Link to comment
    Share on other sites

    Jan,

    My Hue's where grouped;

    livingroom 6x

    tv3x

    diverse 2x

    kitchen 1x

    still to install 4x ( are connected in test)

    OUT side:

    3xgarden

    In ER version 2 they where separeted

    In version 3 I used the grouped option again because of better performance.

    I just separated the groups with more as 2 lamps in single operation with 1 sec time between switching on.

    Hue.monitor(...) I dont know so I didt use.

    I use in log only if a Hue is switched on or off

    //Sjakie

    Link to comment
    Share on other sites

    Sorry I forgot

    My VD switch on/off lights >>>>put on/off wall plug

    wall plug switch the lights on or off

    Link to comment
    Share on other sites

    Jan,

    I was wrong with the debug off the HUE lights, they dont post.

    eetkamer.lampplafond is a normal lamp

    woonkamer.spotsjaak is HUE

    As you can see yellow is the rule with log

    Orange is the confirmation

    I tried also with HUE value>0 and thats working

     

    Please login or register to see this image.

    /monthly_2019_10/image.png.6a2b650aa16c01b29465497c53e995eb.png" />

    //Sjakie

    Link to comment
    Share on other sites

    Good morning Jan,

     

    I removed all the old notify cmd and replace them with Telegram.

    The rule you gave me to join the notify msg doesnt work for telegram or the telegram msg are better served?

    Now I armed/diarmed a few times and I dont see the telegram error.

    Thanks

    //Sjakie

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    Good morning Jan,

     

    I mentioned before that I had the idea sometimes a cmd is not executed.

    Below cmd #eveninglightOff>>> it only switch off zijkant.spotfietsenstalling (confirmation in orange)

    Remark serre debug is in another scene and was switched off.

    Checked >>

    ER Scene >>>no errors

    Hometable>> gastbeneden.spotachterdeur=151,  oprit.spotbeeld=34>>>>present

    Header>> 151 value present,  34 present

    Debug>> both present

    Rule.eval("oprit.spotbeeld:isOff => log2('orange','Oprit spot beeld - uit ')").start()

    What can be the cause for not switched off both lights??

    Thanks in advance,

    //Sjakie

    Please login or register to see this image.

    /monthly_2019_10/image.png.1f877e5126d984ffeedfc939bbd815c7.png" />

     

    Link to comment
    Share on other sites

    Hello Jan,

    Sorry for the trouble I have this error

    If I copy a good ER scene in this scene gives the same error??

    If I copy to new blank scene same error.

    Restore?

     

    Please login or register to see this image.

    /monthly_2019_10/image.png.50ecc7a09f9628424c2ba28052f2155d.png" />

    Link to comment
    Share on other sites

  • Topic Author
  • On 10/15/2019 at 8:57 AM, Sjakie said:

    Good morning Jan,

     

    I mentioned before that I had the idea sometimes a cmd is not executed.

    Below cmd #eveninglightOff>>> it only switch off zijkant.spotfietsenstalling (confirmation in orange)

    Remark serre debug is in another scene and was switched off.

    Checked >>

    ER Scene >>>no errors

    Hometable>> gastbeneden.spotachterdeur=151,  oprit.spotbeeld=34>>>>present

    Header>> 151 value present,  34 present

    Debug>> both present

    Rule.eval("oprit.spotbeeld:isOff => log2('orange','Oprit spot beeld - uit ')").start()

    What can be the cause for not switched off both lights??

    Thanks in advance,

    //Sjakie

    Please login or register to see this link.

     

     

    If you see the log "fibaro:call(...)" that means that ER has "sent" that command to the HC2. If a fibaro:call(id,"turnOff") is not turning off a lamp I'm afraid it's something with the device, network, or the HC2.

    If they are present in the header it should trigger on :isOff and log.

    Could it be that your z-wave network is overloaded? Could you add an "wait" in-between the tunroff commands?

     

    21 minutes ago, Sjakie said:

    Hello Jan,

    Sorry for the trouble I have this error

    If I copy a good ER scene in this scene gives the same error??

    If I copy to new blank scene same error.

    Restore?

     

    Please login or register to see this link.

    If you download a new copy of the ER scene and paste it into a new scene you get the error?

    I'm suspecting that some strange character has sneaked into the source code of the ER scene.

    Link to comment
    Share on other sites

    Jan, #eveninglightoff happens in the morning and it will switch off 2 or 3 or 4 lights depends who is in the house, so the load should not be very high.

    Since I am more "experienced" I see now what I was expecting HC2 skipp sometimes.

    I have seen in another scene (you have the rule switching on/of with wait00:00:01 it will not log all the sessions)perhaps to short after each other?

    My garden lights, 3 hue and 4 normal lights take sometimes 10 sec to switch off. 12 m away from HC2 with 2 powered devices on 6 m.

    Network around 80-100mb/sec from my laptop to the router.

    HC2 at the moment 30-55%

     

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