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

stop automatic light whith switch?


Question

Guest pblacky
Posted

Hi,

I use a small script for activating light (fibaro relais switch) in bathroom with an fibaro motion sensor.

this works fine but when anybody switches the light of by hand the script cant be reactivated with motion sensor bevore delay time (15 min) is over.

so maybe there is a hint, how i can stop (ore reset) the script when light is switched off by wallswitch??

Here is the script i use: (not my idea, found it and changed it for my use ;-)

Please login or register to see this code.

 

3 answers to this question

Recommended Posts

  • 0
Guest pblacky
  • Inquirer
  • Posted

    Really no hints for this question?

    is my posting in the right forumthread?

    • 0
    Posted (edited)

    Hi,

     

    I think what you need can be accomplished by making a scene that is triggered when the switch is pressed.

    When a switch is controlled by a momentary switch, you can use it to activate a scene, which in turn can stop the other scene.

    I kind of need the same you need, but I haven't implemented it yet.

     

    Anyway you will have to use the CentralSceneEvent from the first slave of the switch device as a trigger. I already have a working scene (found on this forum) that logs the keypresses, but I haven't used it yet, to cancel my other scene. do a forum search on "CentralSceneEvent" . That should help you in the right direction.

     

    Code for a scene to test if you get those events.

    Please login or register to see this code.

    Looks like this with my switch.

     

    Please login or register to see this attachment.

    Edited by TW1979
    • 0
    Posted

    This can be done with one scene that control this light. All you need to do is to check status of the light switch during countdown when there is no more movement (motion sensor is safe), and if switch is off then reset countdown timer to zero so that scene stops running.

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