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
Circumflex_sigma 0
Hi,
I tried to search the forum for 'Dimmer S1' or 'Check S1', but scrolling to all the different threads, didn't let me find what i'm looking for (if it possible in the first place; don't know)
What i'm looking for is a way to check if a certain device, in my case a Dimmer, the S1 is pushed or not.
I'm trying to create a LUA scene that uses a motion sensor as a trigger to turn on a dimmer for a certain amount of time, and reset that timer every time there is a movement detected.
But in some cases, i want to push the momentary switch, what is connected to the S1, so that the timer is boosted for a much higher time.
And is the S1 is pushed again (like if i'm leaving the room) the timer is reduced again to a much lesser time, so that when the timer hits 0, the lights are turned off.
Now i looks very simple at first hand, and i have an idea how to this, but it falls or stands by the fact i don't know how to check the S1 status; if it is pushed or not.
Now i found some other fantastic LUA scenes with VD devices and all, but the code was that massive, i couldn't wrap my mind around it how it works; and i always want to know how the code works
Thanks in advance guys for looking in to this one.
Regards
David
Edited by Circumflex_sigmaLink to comment
Share on other sites
3 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.