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


  • 1

Scenes triggered by time don’t work


Question

I created several scenes where the timer functions to start the scene is being used. But none of them works. Any idea where should be the problem? See the pictures attached.

Thanx for any adwise.

HC2, FW 4.056,

Please login or register to see this attachment.

Please login or register to see this attachment.

Link to post
Share on other sites

Recommended Posts

  • 1
  • Inquirer
  • OK now I see. Autostart is obviously missing... Im going to test it.

    Link to post
    Share on other sites
    • 0

    Have you rebooted your HC2 ? Because I noticed the first few days some time scenes does work, but after a few days they don't get triggered. Maybe you should create a support case if that is the issue.

    Link to post
    Share on other sites
    • 0

    Sorry, I'm out of options.

    I should create a supportcase if I were you. For me it's not that kind of a problem, It's only one scene which isn't running.

    Link to post
    Share on other sites
    • 0

    Did you set the scene as "Active Scene"  and save it using general save button on the right panel? (This will trigger the autostart)

    Please login or register to see this attachment.

    Link to post
    Share on other sites
    • 0
  • Inquirer
  • Yes, its set as an active scene. I have a lot of other scenes running without issue, only scenes based on timer function dont work.

    Link to post
    Share on other sites
    • 0

    there is another option 'start when homecenter 2 starts' that needs to be ticked for all time based scenes aswell.

    see pic

     

     

    Please login or register to see this attachment.

    Link to post
    Share on other sites
    • 0
    Guest samuelboerhoop

    What is the lua code of this block?

     

    Go to the advanced tab fro that scene, scroll below > click on "Change" > copy/paste Lua code

    Link to post
    Share on other sites
    • 0
  • Inquirer
  • What is the lua code of this block?

     

    Go to the advanced tab fro that scene, scroll below > click on "Change" > copy/paste Lua code

    Here is the code:

     

    --[[

    %% properties
    %% globals
    --]]
     
    local sourceTrigger = fibaro:getSourceTrigger();
    function tempFunc()
    local currentDate = os.date("*t");
    local startSource = fibaro:getSourceTrigger();
    if (
     ( ((currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6) and string.format("%02d", currentDate.hour) .. ":" .. string.format("%02d", currentDate.min) == "07:00") )
    )
    then
    fibaro:call(23, "setValue2", "50");
    fibaro:call(27, "setValue2", "50");
    fibaro:call(35, "setValue2", "50");
    end
     
    setTimeout(tempFunc, 60*1000)
    end
    if (sourceTrigger["type"] == "autostart") then
    tempFunc()
    else
     
    local currentDate = os.date("*t");
    local startSource = fibaro:getSourceTrigger();
    if (
    startSource["type"] == "other"
    )
    then
    fibaro:call(23, "setValue2", "50");
    fibaro:call(27, "setValue2", "50");
    fibaro:call(35, "setValue2", "50");
    end
     
    end
    Link to post
    Share on other sites
    • 0
  • Inquirer
  • OK it works. I missed the point that scenes without trigger needs this autostart "feature". Thanks for the help. Solved

    Please login or register to see this image.

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

    Link to post
    Share on other sites
    • 0

    Well, it should work with blockscenes of course, but it isn't. That a bug fibaro needs to handle. I cannot "auto start" that scene, don't have that option. I'll convert it to Lua to, I guess that should work, but still it should not be necessary.

    Good to hear it's working for you

    Please login or register to see this image.

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

    Edit:

    Ah, I see I already converted the code to Lua, maybe someone sees why it isn't triggered:

    Please login or register to see this code.

    Edited by Cafun
    Link to post
    Share on other sites
    • 0

    Why does not Fibaro lock this feature so that all time based scenes are started automatically? Why would one create a time based scene without having it automatically run?

    Link to post
    Share on other sites
    • 0
  • Inquirer
  •  Cafun, the auto start option checkbox dissappeared from the options after I switched to LUA and back to block scheme. Obviously some bug. Try tu build the scene from scratch or add autostart to LUA directly. Now everything works for me, also sunrise scene based on sunrise time worked

    Please login or register to see this image.

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

     

    Well, it should work with blockscenes of course, but it isn't. That a bug fibaro needs to handle. I cannot "auto start" that scene, don't have that option. I'll convert it to Lua to, I guess that should work, but still it should not be necessary.

    Good to hear it's working for you

    Please login or register to see this image.

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

    Edit:
    Ah, I see I already converted the code to Lua, maybe someone sees why it isn't triggered:


     

    Link to post
    Share on other sites
    • 0
    Guest samuelboerhoop

    Same here

    Normally I take the last part out from the code:

     

    .....

    setTimeout(tempFunc, 60*1000)
    end
    if (sourceTrigger["type"] == "autostart") then
    tempFunc()
    end -- added

    -- else
    -- [[
    local currentDate = os.date("*t");
    local startSource = fibaro:getSourceTrigger();
    if (
    startSource["type"] == "other"
    )
    then
        fibaro:startScene(15);
    end

    end

    --]]

     
    works good to me
    Link to post
    Share on other sites
    • 0

    Same problem. Time triggered scene worked well for a week or so. Now it stopped working Just like that.

    Im new to fibaro and find this very disturbing that a simple block scene which I got from the internet suddenly stops working7

    Link to post
    Share on other sites
    • 0
  • Inquirer
  • For a week without a problem, now it stopped again. Especially sunrise/sunset scenes.

    Link to post
    Share on other sites
    • 0

    Hi all.

     

    I do also have timer based scenes with problems.

    A scene which is used to start some lights at home when it starts to get dark ( xx before sunset) stopped working suddenly.

    Some where written in Blocks and some  with LUA due to the limitations of Blocks

     

    It has been working for about 3 months but now it suddenly stopped together with a few other timer based scenes. No new updates installed!

     

    I did a reboot and return to factory setting and start to program everything again.

    Suprisingly the GPS location scene now started working like a charme, but timer based scenes still do nothing for 95% of the time.

     

    Used Version 4.056 and now back to 4.031. At leat GPS is working now

    Please login or register to see this image.

    /emoticons/default_icon_wink.gif" alt=";-)" />

     

    Does anyone know a sollution?

    Link to post
    Share on other sites
    • 0

    Did you changed icon on this scene ? I have noticed that scenes based on time stops to work when icon changed from default one.

    Link to post
    Share on other sites
    • 0

    Did you changed icon on this scene ? I have noticed that scenes based on time stops to work when icon changed from default one.

    As a matter of fact I did change the icons and yes the most trouble started after that.

    But now after the reset I left them as they are with no positive effect.

     

    Also installed the latest 4.056 firmware (again) but still the same problem, but now the GPS Location scene stopped working again.

     

    Today I started to update my old Vera. Better a slow device then one that works fast in ....... doing nothing.

    I am planning to work on the Fibaro this weekend to solve the problems (wife away for a few days) and hoping to find a solution or somekind of work-around.

    Ideas are very much welcome.

    Link to post
    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
    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...