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
Apax 1
Hi All!
I have created a loop in a QA and need to detect if a button (from a 8-button device, Scene Master - ZRC-90 - Remotec) has been singleclick or dubbleclick and which one
Normaly I simple use this:
{
conditions = { {
id = 162,
isTrigger = true,
operator = "anyValue",
property = "centralSceneEvent",
type = "device"
} },
operator = "any"
}
local trigger = sourceTrigger
if (trigger.value.keyId==1 and trigger.value.keyAttribute=="Pressed" )
But in this case we do not have this device as a "sourceTrigger"
I have tried diffrent ways but can not get it to work
function QuickApp:loop(KeyCodeQA)
local trigger = hub.getValue(162, "value")
if (trigger.keyId==1 and trigger.keyAttribute=="Pressed" )
end
Link to comment
Share on other sites
12 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.