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

Locking door at a specific time [solved]


Landshark

Question

Hi All, 

 

I'm trying to setup a very simple scene:

 

Requirements:

  • At 20:18 AND when Magnet contact is safe lock door

 

When I configure this in a block scene it doesn't work. It ignores the time trigger and it is immediately closing the lock. What am I doing wrong or is this a bug in Hc2 4.110?

 

Cheers,

 

Landshark

Please login or register to see this attachment.

 

EDIT 15/05/17

 

Unticking the DC Voordeur box as triggering device resolved the problem

 

Please login or register to see this link.

Edited by Landshark
resolution added
Link to comment
Share on other sites

14 answers to this question

Recommended Posts

  • 0

ths should work, but don't run it manually, then the door wil lock always

to test, tick box Sunday and set time a couple of minutes in the future and wait if it locks on that time

 

and tick box trigger exact time (only this box, untick the onther one

Edited by akatar
Link to comment
Share on other sites

  • 0
  • Inquirer
  • I have tested it yesterday and the scene is set to automatic but locks keep locking immediately after closing the door  (so it looks like it not checking the time condition) 

     

     

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • I only see 'DC voordeur'  in the triggering devices

    Please login or register to see this attachment.

    Link to comment
    Share on other sites

    • 0

    the only flaw i see, when the door is open at that time it won't lock and will never lock again

     

    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • It is meant as night lock so we don't forget to lock it at night, but maybe I should add a notification in case the door is open.  

    Link to comment
    Share on other sites

    • 0

    or create a second scene at night to lock it again, or when livingroom lights go out then lock door

    Edited by akatar
    Link to comment
    Share on other sites

    • 0
    2 hours ago, Landshark said:

    It is meant as night lock so we don't forget to lock it at night, but maybe I should add a notification in case the door is open.  

    Yo can create a timer based scene, From 22:00 til 07:00 every 10 minutes

    and doormagnet is safe

    and lock is unlocked

    then lock

    Link to comment
    Share on other sites

    • 0

    The topic has been moved from "

    Please login or register to see this link.

    " to "

    Please login or register to see this link.

    ".

     

    Temat został przeniesiony z "

    Please login or register to see this link.

    " do "

    Please login or register to see this link.

    ".

    Link to comment
    Share on other sites

    • 0

    Hello,

     

    @Landshark, the topic was moved to Crowd's Solutions. Please, update the original post so that other will have a working solutions for them :-)

    Link to comment
    Share on other sites

    • 0

    local sourceTrigger = fibaro:getSourceTrigger();
    function tempFunc()
    local currentDate = os.date("*t");
    local startSource = fibaro:getSourceTrigger();
    if (
     ( (tonumber(os.date("%H%M")) >= tonumber(string.format("%02d%02d", "21", "00")) or tonumber(os.date("%H%M")) <= tonumber(string.format("%02d%02d", "05", "00"))) and (math.floor(os.time()/60)-math.floor(1494766800/60))%30 == 0  and  tonumber(fibaro:getValue(76, "value")) == 0 )
    )
    then
        fibaro:call(135, "secure");
    end

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

    local currentDate = os.date("*t");
    local startSource = fibaro:getSourceTrigger();
    if (
     ( (tonumber(os.date("%H%M")) >= tonumber(string.format("%02d%02d", "21", "00")) or tonumber(os.date("%H%M")) <= tonumber(string.format("%02d%02d", "05", "00")))  and  tonumber(fibaro:getValue(76, "value")) == 0 )
    or
    startSource["type"] == "other"
    )
    then
        fibaro:call(135, "secure");
    end

    end

    Link to comment
    Share on other sites

    • 0

    Please login or register to see this attachment.

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