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

Timer configuration


Economyhq

Question

Hi Everybody!

1. I´ve got extremly problems with Timers. When i set a Timer which works it is it not possible to do the opposite from that state.

2. And many Timers dont work at all.

Example for 1)

Close a gate every day at 21:00 - if i come home after 21:00 and want to open the the Gate via Remote control (hc2 knows the state because of an door /Window Sensor) it closes at ones. i want that if i tell a timer "at an exact time" the command only at that EXACTLY Time.

Example for 2)

To fill an Variable for "Nighttime" on or off i want to use Sunrise and Sunset. Look at the scene below, this scene only runs when i press "run" by my self. If i take an exactly time it doesn`t work too. (only by Pressing)

any suggestions are very welcome

Greetings from Germany

Please login or register to see this attachment.

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

  • 0
Guest Lode

Example 1 : can you post that scene ? Lua or blocks ?

Example 2 : Are your local settings ok and did you mark the "Start when Homecenter 2 starts" option ?

Link to comment
Share on other sites

  • 0

Hi

Have the same issue

- timer to run every 30 minutes via Lua blocks - must be constantly running as when I turn device on immediately turns off.

Clearly can workaround this with Lua and sleep but a bit concerned if all timers are running not according to schedule as to the overhead to the Hc2.

? bug - and may have performance impact.

Please login or register to see this attachment.

Link to comment
Share on other sites

  • 0

Not as yet (or by me yet)

Can someone confirm that this is real? And not just me/us

If so should get urgent bugzilla report

Glenn

Link to comment
Share on other sites

  • 0
  • Inquirer
  • Example 1 : can you post that scene ? Lua or blocks ?

    Example 2 : Are your local settings ok and did you mark the "Start when Homecenter 2 starts" option ?

    Hi,

    Example 1 : The scene is Block. Please look below. "Elkom.Area" is an Fibaro Door/Window Sensor and "Haupttor" is an 1x3KW Switch. I wrote an other Posting just for that problem.

    Please login or register to see this link.

    Example 2 : "Start when Homecenter 2 starts" is not on, local settings are ok.

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0
    Guest Lode

    Example 1 : can you convert it to lua and post again ?

    Example 2 : you have to mark "Start when Homecenter 2 starts" because when you convert it to lua you will see timer based events are using autostart as the sourcetrigger.

    I tested this with exactly the same scene as yours and it works.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Hi,

    i will test it with autostart!

    Example 1 : can you convert it to lua and post again ?

    Please login or register to see this code.

    Link to comment
    Share on other sites

    • 0
    Guest Lode

    If you open your gate after 22:00 your startSource is type "other" and there is no time to compare with as you can see in your code.

    This is not a bug but the result of auto generated code.

    Blocks are fine to work with but they have their limits.

    Now replace your code by this and it will work.

    Please login or register to see this code.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Hi Lode,

    I can`t believe it!

    Please login or register to see this image.

    /emoticons/default_icon_smile.gif" alt=":-)" /> It works!!!!!(both! Ex1 and Ex2) Thank you very much! That`s realy great.

    That brings me to my next question.

    Is it possible (via Lua) to create a Timer with a different Time for each day in one script?

    Link to comment
    Share on other sites

    • 0
    Guest Lode

    Hmm....you're welcome

    Please login or register to see this image.

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

    It's possible to do that.

    What do you need....

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Hi,

    Same as above with following times

    Mo - 22:00

    Tu - 23:30

    Th - 20:45

    We - 22:45

    Fr - 19:00

    Sat - 16:30

    Sun - 17:45

    Thanks for helping!

    Link to comment
    Share on other sites

    • 0
    Hi,

    Same as above with following times

    Mo - 22:00

    Tu - 23:30

    Th - 20:45

    We - 22:45

    Fr - 19:00

    Sat - 16:30

    Sun - 17:45

    Thanks for helping!

    You will end up with many code loops running every minute.

    If you use this

    Please login or register to see this link.

    you will have one loop that sleeps between actions

    So for example the following would sleep for 25.5 hrs putting very low strain on your HC2

    luaDaySchedule:add("22:00","96", "turnOn" , "call", {"Monday"} ,false)

    luaDaySchedule:add("23:30","96", "turnOn" , "call", {"Tuesday"} ,false)

    you can use it for all of your timers.

    Link to comment
    Share on other sites

    • 0
    Guest Lode

    Well, as robmac said if you have a lot of scenes it's better to use the scheduler made by robmac, it's a nice piece of code, very well done.

    On the other hand if you don't run that much scenes it's ok do to some loops, that will not affect performance.

    Up to you to decide......

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