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

Is there a maximum fibaro:sleep time?


clowg
 Share

Question

Is there a maximum time that fibaro:sleep can be set to?

 

I'm having a problem where  'fibaro:sleep(90*60*1000)' only lasts for 20 minutes, not 90 minutes as I expected it would.

However fibaro:sleep(30*60*1000) works fine - 30 minutes.

 

I'm using these within a VD, in case that makes a difference. 

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0
  • Inquirer
  • But that’s only 5.4 seconds. I want 90 minutes sleep time. 

    Link to comment
    Share on other sites

    • 0

    offcourse my mistake

     

    and 

     

    local timeSleep = 90
    -----------------------------------------------------------------------
    function timerFunction()
    -----------------------------------------------------------------------

    code

    -----------------------------------------------------------------------
    setTimeout(timerFunction, timeSleep*60*1000)
    end
    -----------------------------------------------------------------------
    timerFunction() 

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • I'm not sure if the use of seTimeout can work in my case.

    This is the code for a button in a VD that should turn on the air-con and run it for 90 minutes if its off, and if it's already on, then turn it off.  I've attempted to use your setTimeout & function idea, but it doesn't look right.   (I've used a lot of debug messages to try to track whats going on & why it doesnt sleep for 90 minutes)

    What do you think?

     

    Please login or register to see this code.

     

    Edited by clowg
    Link to comment
    Share on other sites

    • 0

    Timerfunction does not work in a VD button

     

    If i am right you want a vd button to set your AC on for 90 min (manualy) and when time is done its turn off

     

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • Oh. 

    Yes - thats right.  This is a VD that is used to manually control the AC.  I have buttons for 30, 60 & 90 minutes run time.

    Link to comment
    Share on other sites

    • 0

    i also have a ac 

    made script for schedule of nightshift compare with temp 

    or set it manualy 1 - 2 or 4 hours

    or set it in mainteness

     

    wil placeit here

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • THAT looks very interesting @Kage!!  Please do share what you can.

    Link to comment
    Share on other sites

    • 0

    This is a little bit personal script but you can change the names in the VD and the scene

    you have to make two globals eg. 

    AC_Status_Master
    ACManueel_Master

    I combined also our phone(s) in the script and our schedule so it knows if we are home or not and when to go on if whe haven nightshift and its to "hot"in the room

    Also you can trigger it manualy for 1 - 2 - 4 hours its stops when it is time

    Also maintenance is availble, you can do what you whant

     

    it stops when manualtime is over

    it stops if you are not home

    it stops when the temp is lower then ........

    it stops when the door is open or window

    it stops if you not in bed

     

    if you need help let me know. mostly it is dutch 

     

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Please login or register to see this image.

    /monthly_2018_07/onderhoudt.png.0e4906261118a8b6c36c0cec77ce14b1.png" />395295249_Aricoonoff.png.0988c243aa639df3781c18f86afc275e.png108518866_Aircouit.png.272a7299d63c2b5b4a74c051f949709d.png77895475_Aircoon.png.38f55ace7d71fe80f1bc600c8320d3f9.png1438789119_Aircoonoff.png.560af8db9696df49a2585d09fdd33c5a.png823764936_Aircooff.png.5a0f1db13633f7f16353ffdae851b72c.png837163285_Aircoautoon.png.13af0c7d200a1ef521655b677c69dde4.png1497486376_Aircoautoonoff.png.321562f72a48b88055265da27cd8d17a.png1712447643_Aircoautooff.png.48c4aa6a0a042ecaa5ec3f5ee2f5989e.pngAfwezig.png.6d090a583824a63b0ec0a51be3633991.png

    it is working whit a fibro wallplug and a ZXT-120 remotec (ir)

    Edited by Kage
    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.

     Share

    ×
    ×
    • Create New...