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

    hello,

    just an idea to do: I have a flag outside with a light spot on. Idea change the light bulb into hue color.

    If switched on changing every 5 minutes the color

    How to do?

    With my knowledge I will fill an a3 paper with rules guess it should be able to short it

    I used the wait but that is not give the good result

    Rule.eval("@20:27  =>  woonkamer.lampplafondklokzijde:on ; wait(00:00:15) ; woonkamer.lampplafondklokzijde:value={bri=125, hue=50, sat=0, transitiontime=2, col=75} ,wait(00:00:15) ; woonkamer.lampplafondklokzijde:value={bri=125, hue=50, sat=62, transitiontime=2, col=150} ; wait(00:00:15) ; woonkamer.lampplafondklokzijde:value={bri=125, hue=50, sat=124, transitiontime=2, col=75}; wait(00:00:15) ; woonkamer.lampplafondklokzijde:value={bri=125, hue=50, sat=186, transitiontime=2, col=75} ; wait(00:00:15) ; woonkamer.lampplafondklokzijde:value={bri=125, hue=50, sat=255, transitiontime=2, col=75}")

    Or do I overload HC2, supervisor or all?
    Please advice

     

    OK, this is how I would do it. You can have any number of color parameters in the table and it will cycle through them.

    Please login or register to see this code.

     

    Posted

    Hello Jan,

    Any idea to lower the load on HC2?

     

     

    Please login or register to see this image.

    /monthly_2019_05/image.png.380559c896fab81962dd98f7dada6947.png" alt="image.png.380559c896fab81962dd98f7dada6947.png" />

  • Topic Author
  • Posted
    1 minute ago, Sjakie said:

    Hello Jan,

    Any idea to lower the load on HC2?

     

    Any particular scene that makes the load rise? I could take a look at that scene and see if there is something strange.

    It depends on the scene and even with ER it's possible to overload the system.

    Posted

    Hello Jan,

    I am just finished to clean the HC2. I was concentrating on the scenes but I found in devices also some heavy crap.

    I am watching the graphic for over 16 minutes and I hope the picture is okay now?

    The scene living room has a hugh load because of 3 power triggers>> all disabled

    But why Supervisor is still skipping 1-2 minutes?

     

    Please login or register to see this image.

    /monthly_2019_05/image.png.642724cda3f912cbd89cbda85f06d9af.png" alt="image.png.642724cda3f912cbd89cbda85f06d9af.png" />

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

    Hello Jan,

    I am just finished to clean the HC2. I was concentrating on the scenes but I found in devices also some heavy crap.

    I am watching the graphic for over 16 minutes and I hope the picture is okay now?

    The scene living room has a hugh load because of 3 power triggers>> all disabled

    But why Supervisor is still skipping 1-2 minutes

     

    Some VDs can cause load, I'm unsure why, something with the main loop I guess.

    Instead of having power triggers in the scene header you can add this code to the ER main()

    Please login or register to see this code.

    It defines a function 'watchProperty' that polls a list of devices for a specific property value and if the values have changed more than 'threshold' it will post a "fake" event of that type. ER rules can't tell the difference and will trigger on the posts like a regular scene trigger. The advantage is that you can poll at a slower intervall for values that are not important to trigger on the second. In the example, we watch two deviceIDs if the 'power' property changes more than 20, and we do it every 5s. If it's not so important to get the trigger immediately you can increase the interval to 10s. In any case it will load the scene much less than to have scene power triggers in some cases.

     

    What do you mean by Supervisor "skipping" 1-2 minutes? 

    Posted

    It jumps from 11.01.26 to 11.02.31

    sometimes it is almost 2 minutes freeze?

    Please login or register to see this image.

    /monthly_2019_05/image.png.5efa104302a9bfa2c91962b4d135d965.png" alt="image.png.5efa104302a9bfa2c91962b4d135d965.png" />

    I blanked out those power rules temporary

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

    It jumps from 11.01.26 to 11.02.31

    sometimes it is almost 2 minutes freeze?

    and what is POLLINTERVAL ?

     

    Posted

      local POLLINTERVAL = "+/00:05"    -- poll every 3 minute
      local PINGTIMEOUT = "+/00:02:00"  -- No answer in 10s, scene will be restarted
      local STARTUPDELAY = "+/00:00:40" -- Time for scene to startup after a restart before pinging starts again
      local MAXRESTARTS = 2             -- Number of failed restarts before disabling the scene

     

    all scenes are still running since 8.00

     

    so a bigg step forward

    Is this a normal behaviour?

    The two peaks?

    Please login or register to see this image.

    /monthly_2019_05/image.png.00cc2b065b7e6dcdbc5a94c330e9822a.png" alt="image.png.00cc2b065b7e6dcdbc5a94c330e9822a.png" />

  • Topic Author
  • Posted

    Supervisor is pinging each scene every 5min with your value for POLLINTERVAL, and depending on how fast they answer back the interval that Supervisor wakes up and ping will vary a bit. Sleep periods of 2min is not exceptional. I would expect that after some time it would be more evenly distributed, 

    What you should try to check in the log is if Supervisor pings a particular scene every 5min (+ reponse time from scene) (in this case) or if that is also  drifting and becoming longer intervals.

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

    Is this a normal behaviour?

    The two peaks?

     

    I have seen those peaks myself.

    Can you see if it is a particular scene or VD that causes the peaks? (try to disable and watch the cpu curve).

    I have the feeling that sometimes it's not the scenes but other "housekeeping" stuff that the HC2 box is doing.

    Temporary peaks are usually not a problem.

    Posted

    Hello Jan,

    The only VD's I have is the:

    Hue from Sankotronic

    Sonos

    Sonos Krikroff

    Battery check

    Door/window check >>>>will remove

    Calendar Google

    10 scenes GV

    All other scenes on manual

    Let me add first your power proposition

    If okay I will pm you one of the two scenes who are sometimes restarting by supervisor

    Posted
    4 hours ago, jgab said:

     

    OK, this is how I would do it. You can have any number of color parameters in the table and it will cycle through them.

    Please login or register to see this code.

     

    Thank you very much!!!!! looks nice I am curious how it shine when its dark.

    Posted
    9 hours ago, jgab said:

     

    No, it fetches data every 30min, and when it starts up. 

    I have pushed a new version of iCal.lua (B2) with some more debugs.

    At the end of main() there is the lines

    Please login or register to see this code.

    uncomment and add your URLs and run in emulator to see what happens.

    Probably should add a forceUpdate command.

    Please login or register to see this image.

    /monthly_2019_05/1365606488_Skrmavbild2019-05-31kl_19_17_32.png.f5ca1d174e1a21f0a0401e479f0c6d21.png" alt="1365606488_Skrmavbild2019-05-31kl_19_17_32.png.f5ca1d174e1a21f0a0401e479f0c6d21.png" />

  • Topic Author
  • Posted
    32 minutes ago, jompa68 said:

    Please login or register to see this link.

     

    Is it an iCloud url?

    Does it have the format " "webcal://p64-calendars.icloud.com/published/2/MTGHKJLJPJPJKL:LKJOHGJKJLFrjxFq9NvCD"

    and you change the webcal: to https: ?

    Like  "https://p64-calendars.icloud.com/published/2/MTGHKJLJPJPJKL:LKJOHGJKJLFrjxFq9NvCD"

    Posted
    29 minutes ago, jgab said:

    Is it an iCloud url?

    Does it have the format " "webcal://p64-calendars.icloud.com/published/2/MTGHKJLJPJPJKL:LKJOHGJKJLFrjxFq9NvCD"

    and you change the webcal: to https: ?

    Like  "https://p64-calendars.icloud.com/published/2/MTGHKJLJPJPJKL:LKJOHGJKJLFrjxFq9NvCD"

    Yes it is an iCloud and it starts with https (long url)

    Please login or register to see this code.

     

  • Topic Author
  • Posted
    15 minutes ago, jompa68 said:

    Yes it is an iCloud and it starts with https (long url)

    Please login or register to see this code.

     

     

    It fails in the emulator too?

    Posted (edited)

    Not at home right now, cannot test that before monday night.

    Update

    can run "offline" and no errors in emu

     

    Please login or register to see this code.

     

    Edited by jompa68
  • Topic Author
  • Posted
    12 minutes ago, jompa68 said:

    Not at home right now, cannot test that before monday night.

    Update

    can run "offline" and no errors in emu

     

    Please login or register to see this code.

     

     

    Ok, it seems like "checkCertificate = false" in httpRequest disappeared from the iCal I pushed to GitHub. I pushed a new version. Try that.

    /J

    Posted

    Success

    Please login or register to see this image.

    /monthly_2019_05/588806530_Skrmavbild2019-05-31kl_20_59_23.png.da1f6c9f4224c9de7213f093c34665d3.png" alt="588806530_Skrmavbild2019-05-31kl_20_59_23.png.da1f6c9f4224c9de7213f093c34665d3.png" />

    Posted

    now i get the info to my ER-Main scene also.

     

    Please login or register to see this image.

    /monthly_2019_05/1823003801_Skrmavbild2019-05-31kl_21_12_34.png.eb0982cb3a38ebb7adbef54c5c32f441.png" alt="1823003801_Skrmavbild2019-05-31kl_21_12_34.png.eb0982cb3a38ebb7adbef54c5c32f441.png" />

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