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

Question
Lenfors 0
Hello!
Just started with LUA and HC2 and have a question. I want to start with somethin really simple. When I enter a room and the motion sensor detects me I want the light to go on. When I leave and there is no movement for 60 minutes I want it to go off again. But if I use the wall switch manually to turn light off or on I want the automatic to be diabled for 12 hours (Dont want light to go on automatically in the guset room if someone sleeps there). I tried with fibaro:getModificationTime(<Id of my wall switch>,'value') but it changes value also when I turn ligts on/off programatically! How can I get the last time the switch was actually used manually?
Best regards, Mikael
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.