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! Now i got stuck again on a really simple task....
I have a Fibaro button and want it to trigger a scene, and in the scene I want to turn ligts on or off depending on if it was 1 or two clicks on the button.
I stared with the following...
--[[
%% events
22 CentralSceneEvent
–]]
fibaro:debug('White button trigger') -- No problem here, the event is fired
local trigger = fibaro:getSourceTrigger()
fibaro:debug('Type= '..trigger['type']) -- yes the type is 'event' as it should be
if trigger['type'] == 'event' then
-- How can I detect if its one or two click?
end
You can see in my code what I'm missing!
I'w been googling all evening but cant find this basic information. Is there some Total manual covering all the fibaro LUA language or are there separate manuals for all devices?
In the Fibaro "Button" manual there is nothing mentioned about what events that can be triggered....
Please help, Mikael
8 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.