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


  • 0

Question

Posted

Hi,

 

running scenes on a HC2 with 4.080 software.

Today i added two scenes, making it a total of 8. Is this too many? Because now no scenes seem to work, not even the existing.

 

 

8 answers to this question

Recommended Posts

  • 0
Posted

Considering only the number, no, 8 scenes is nothing for HC2. 

 

Now it depends very much what is in those 8 scenes.  If there are 8 very long and complex LUA scenes with loops then yes, it could be a problem.  Seeing as you are on 4.080 i would suggest to upgrade to 4.082 beta. I found it much more responsive then 4.080.

Also, try not to have too many loops in scenes or for example 8 scenes running every second

Please login or register to see this image.

/emoticons/default_tongue.png" alt=":P" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" /> 

  • 0
Posted

I have 49 scenes on my HC2 4.080 and all looking good. Only two scenes are using loop, one every minute to start other scenes or VD on timer based trigger, and one to update Netatmo weather station VD for rain and wind sensors. So, I agree with Momos that you should check how your scenes are done.

  • 0
Posted

I prefer VD's and I use a lot of them (with extensive scripts in the main loop), without any problems so far on 4.080.

 

I noticed scene's are not always have been reliable before, but I do have several scenes. In 4.080 I don't have any problems detected with those scenes yet. I don't have any problems with extensive CPU usage or memory decline. Uptime, as we speak, is 52d, 10h, 33m!

 

When I use scenes I disable, as much as possible, triggers (beneath the second tabs Triggers are devices and variables that change starts the scene and part of the conditional check. -header). This will prevent unnecessary scene code execution, resulting in lower CPU usage.

  • 0
  • Inquirer
  • Posted

    All my scenes are very simple, as i have only recently started using lua. Below is a scene i made, and that worked. I copied this scene 3 times, as i have in total 4 appliances (coffeemaker, dishwasher, washing machine and dryer) that i want to receive notifications from.

     

    However, after i made the new ones, no lua scenes work anymore, only the scenes written with blocks.

     

    4.082 is a beta version, that would in my mind be even more prone to errors.

     

    --[[
    %% autostart
    %% properties
    40 power
    %% events
    %% globals
    --]]
     
    local startSource = fibaro:getSourceTrigger();
    koffie = 40
    janremco = fibaro:getGlobal ("janremco");
    koffiewordtgezet = fibaro:getGlobal('koffiewordtgezet');
     
    if 
    (
    ( tonumber(koffiewordtgezet) == 0 )
    and
        ( tonumber(fibaro:getValue(koffie, "power")) > 75 )
    )
    then
        fibaro:call(janremco, "sendPush", "Koffie wordt gezet!");
        fibaro:setGlobal ('koffiewordtgezet', 1);
    elseif 
    (
    ( tonumber(koffiewordtgezet) == 1 )
    and
    ( tonumber(fibaro:getValue(koffie, "power")) < 75 )
    )
    then
        fibaro:debug('Koffie is klaar!');
        fibaro:call(janremco, "sendPush", "Koffie is klaar!");
        fibaro:setGlobal ('koffiewordtgezet', 0);
    end
    • 0
    Posted

    I guess the power changes too often in your case.

    So this script might get called several times per second.

    Or did you reduce the frequency and the needed power changes of your wall plugs?

    • 0
    Posted

    Did you try to restart the HC?

    Please login or register to see this image.

    /emoticons/default_icon_smile.gif" alt=":-)" />

    • 0
  • Inquirer
  • Posted

    I did the reset and i deleted some of my scenes, back to 5 now. And it works again. I will look into the powerchanges, what Alex says could be the answer. I have used the fibaro wallplug, parameter 40 is at 80%, should i lower this?

    • 0
    Posted

    You could add a sleep timer in the scene and the check to kill any additional instance of the scene as to have only one running. That should lower the stress on the HC2 a lot.

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

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