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
CWestermark 0
Hi,
I am trying to get the sceneActivation value back to 0 after a dimmer press. The below code gives 14 upon a double click on the dimmer. However, next time it reads local "sa = tonumber(fibaro:getValue(33, "sceneActivation"))" it gets 14 again. I would like it to get number 14 only upon the event of a double click on the dimmer. Can I achieve this by setting some parameter in the dimmer setting?
Basically I want to create a scene that triggers every time I press a dimmer. But not in between.
--[[
%% properties
%% events
%% weather
%% globals
0 sceneActivation
Time
--]]
local sa = tonumber(fibaro:getValue(33, "sceneActivation"))
fibaro:debug(sa)
if (sa == 14) then
fibaro:debug('2clickon')
sa= 0
end
Link to comment
Share on other sites
2 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.