Jump to content

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


  • 0

Aeotec Wallmote Quad integration with HC2


te2603

Question

Hi all.

Any one got the Aeotec Wallmote Quad to works as an dimmer with Fibaro Dimmer 2?

I am only able to get it to work as an on/of switch

 

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

Hello,

Same for me.

I didnt manage to acced to the furthers settings with my HC2.

I would like to configurate the Touch Beep, Touch Vibration and also  the long press for dimmer.

Can we configure those parametes with HC2 gateway ?

 

Link to comment
Share on other sites

  • 0

Hi, configuring touch beep and vibration can be done by adding configuration parameters:

Touch beep

This will enable or disable the sound effects when you press or touch  the sensing area. By default, this is enabled.

 

Parameter 1 [1 byte]

0: Disable

1: Enable //default setting

 

 

Note: You can also enable or disable the sound effects via pressing  and holding the Action Button for 12 seconds (the buzzer chirp once and the red LED will fast blink) and then release.

 

Touch vibration

This will enable or disable the vibration effects when you press or  touch the sensing area. By default, this is enabled.

 

Parameter 2 [1 byte]

0: Disable

1: Enable //default setting

 

Note: You can also enable or disable the vibration effects via pressing and holding the Action Button for 17 seconds (the buzzer chirp once and the red LED will be solid) and then release.

 

it should look like this:

Please login or register to see this attachment.

 

Link to comment
Share on other sites

  • 0

Use a short touch to increase the light level from 10% up to 99% (10%) each short touch. Use the same button with a long(hold) touch to turn off/on the light.

My example currently running scenario: wallmote button 1 = device 234 in my HC2. You can also activate a scenario (example 3)

 

Wallmote_1_pressed

--[[
%% properties
%% weather
%% events
234 CentralSceneEvent 1 Pressed
%% globals
--]]
--[[
    -----event possibillities ------------------------------------------------
    234 CentralSceneEvent                 all events
    234 CentralSceneEvent 1                all events button 1
    234 CentralSceneEvent 1 Pressed        button 1 pressed (short)
    234 CentralSceneEvent 1 HeldDown    button 1 pressed (long)
    234 CentralSceneEvent 1 Released    button 1 released
    
    TRIGGER    : Device 234 wallmote button 1 pressed (short)
    INPUT     : Wallmote button 1 pressed
    OUTPUT    : device 124 (light dining) switch state
--]]
local prt = true -- debug printing on
--------------------------------------------------------------------------------
-- debug print routine                                                  --
--------------------------------------------------------------------------------
Debug = function (debug,color, message )
  if (debug) then
      fibaro:debug(string.format('<span style="color:%s;">%s</span>', color, message));
  end
end
-- colors black red green yellow blue magenta cyan white orange
Debug(prt,"yellow","starting scene Wallmote")
------------------------------------------------------------------------------
-- set locals                                                                --
------------------------------------------------------------------------------
local rgbDevice = 124 -- dining --
local startSource = fibaro:getSourceTrigger()
local battLevel = tonumber(fibaro:getValue(234, "batteryLevel"))
--------------------------------------------------------------------
-- What triggered the scene debug info     --
--------------------------------------------------------------------
--Debug(prt,"orange","startSource type = ".. startSource['type'])
--Debug(prt,"orange","startSource event type= ".. startSource['event']['type'])
------------------------------------------------------------------------------
-- battery check                                                          --
------------------------------------------------------------------------------
local textColor = "green"
if battLevel <41 then textColor = "orange";end
if battLevel <21 then textColor = "red";end
Debug(prt,textColor,"battLevel = ".. battLevel .. "%")
------------------------------------------------------------------------------
-- action                                                                      --
------------------------------------------------------------------------------
    local deviceValue1 = tonumber(fibaro:getValue(rgbDevice, "value"));
    Debug(prt,"white","light level "..deviceValue1.." %")
    if (deviceValue1 < 89) then
          deviceValue1 = deviceValue1 + 10
        fibaro:call(rgbDevice, "setValue", tostring(deviceValue1));
          Debug(prt,"white","device "..rgbDevice.." set to "..deviceValue1)
    else
        --fibaro:call(rgbDevice, "turnOn");
          Debug(prt,"white","device "..rgbDevice.." max level reached")
    end

Debug(prt,"yellow","end scene Wallmote")
Debug(prt,"cyan","---------------------//---------------------------")

 

Wallmote_1_Hold

--[[
%% properties
%% weather
%% events
234 CentralSceneEvent 1 HeldDown
%% globals
--]]
--[[
    -----event possibillities ------------------------------------------------
    234 CentralSceneEvent                 all events
    234 CentralSceneEvent 1                all events button 1
    234 CentralSceneEvent 1 Pressed        button 1 pressed (short)
    234 CentralSceneEvent 1 HeldDown    button 1 pressed (long)
    234 CentralSceneEvent 1 Released    button 1 released
    
    TRIGGER    : Device 234 wallmote button 1 pressed (short)
    INPUT     : Wallmote button 1 pressed
    OUTPUT    : device 124 (light dining) switch state
--]]
local prt = true -- debug printing on
--------------------------------------------------------------------------------
-- debug print routine                                                        --
--------------------------------------------------------------------------------
Debug = function (debug,color, message )
  if (debug) then
      fibaro:debug(string.format('<span style="color:%s;">%s</span>', color, message));
  end
end
-- colors black red green yellow blue magenta cyan white orange
Debug(prt,"yellow","starting scene Wallmote")
------------------------------------------------------------------------------
-- set locals                                                                --
------------------------------------------------------------------------------
local rgbDevice = 124 -- dining --
local startSource = fibaro:getSourceTrigger()
local battLevel = tonumber(fibaro:getValue(234, "batteryLevel"))
--------------------------------------------------------------------
-- What triggered the scene debug info                            --
--------------------------------------------------------------------
--Debug(prt,"orange","startSource type = ".. startSource['type'])
--Debug(prt,"orange","startSource event type= ".. startSource['event']['type'])
------------------------------------------------------------------------------
-- battery check                                                              --
------------------------------------------------------------------------------
local textColor = "green"
if battLevel <41 then textColor = "orange";end
if battLevel <21 then textColor = "red";end
Debug(prt,textColor,"battLevel = ".. battLevel .. "%")
------------------------------------------------------------------------------
-- action                                                                    --
------------------------------------------------------------------------------
    local deviceValue1 = tonumber(fibaro:getValue(rgbDevice, "value"));
    Debug(prt,"white","light level "..deviceValue1.." %")
    if (deviceValue1 > 0) then
        fibaro:call(rgbDevice, "turnOff");
          Debug(prt,"white","device "..rgbDevice.." turned off")
    else
        fibaro:call(rgbDevice, "turnOn");
          Debug(prt,"white","device "..rgbDevice.." turned on")
    end

Debug(prt,"yellow","end scene Wallmote")
Debug(prt,"cyan","---------------------//---------------------------")

 

Wallmote_4_pressed

--[[
%% properties
%% weather
%% events
234 CentralSceneEvent 4 Pressed
%% globals
--]]
--[[
    -----event possibillities ------------------------------------------------
    234 CentralSceneEvent                 all events
    234 CentralSceneEvent 1                all events button 1
    234 CentralSceneEvent 1 Pressed        button 1 pressed (short)
    234 CentralSceneEvent 1 HeldDown    button 1 pressed (long)
    234 CentralSceneEvent 1 Released    button 1 released
    
    TRIGGER    : Device 234 wallmote button 1 pressed (short)
    INPUT     : Wallmote button 1 pressed
    OUTPUT    : device 124 (light dining) switch state
--]]
local prt = true -- debug printing on
--------------------------------------------------------------------------------
-- debug print routine                                                        --
--------------------------------------------------------------------------------
Debug = function (debug,color, message )
  if (debug) then
      fibaro:debug(string.format('<span style="color:%s;">%s</span>', color, message));
  end
end
-- colors black red green yellow blue magenta cyan white orange
Debug(prt,"yellow","starting scene Wallmote")
------------------------------------------------------------------------------
-- set locals                                                                --
------------------------------------------------------------------------------
local rgbDevice = 124 -- dining --
local startSource = fibaro:getSourceTrigger()
local battLevel = tonumber(fibaro:getValue(234, "batteryLevel"))
--------------------------------------------------------------------
-- What triggered the scene debug info                            --
--------------------------------------------------------------------
--Debug(prt,"orange","startSource type = ".. startSource['type'])
--Debug(prt,"orange","startSource event type= ".. startSource['event']['type'])
------------------------------------------------------------------------------
-- battery check                                                              --
------------------------------------------------------------------------------
local textColor = "green"
if battLevel <41 then textColor = "orange";end
if battLevel <21 then textColor = "red";end
Debug(prt,textColor,"battLevel = ".. battLevel .. "%")
------------------------------------------------------------------------------
-- action start scene goodmorning(137)                                        --
------------------------------------------------------------------------------
fibaro:startScene(137);
Debug(prt,"orange","scene goodmorning started")
Debug(prt,"yellow","end scene Wallmote")
Debug(prt,"cyan","---------------------//---------------------------")

 

Link to comment
Share on other sites

  • 0

Hi Thanks for a great example.

How does the button hold work? Does it just send command over and over while holding? 

Any ideas how the "dim up/down" work by sliding?

 

Just started with the wallmote example over

Link to comment
Share on other sites

  • 0

see 

Please login or register to see this link.

Excellent german solution ( he also have a solution on you tube for sliding, which didnt work for me)

 

My release of the same solution:

- Button 1 hold : turn on

- Button 1 hold when on: max light ( my addition to the german solution)
- Button 3 hold: turn of
- button 1 Pressed : +10% ( will also turn on light if off)

- button 3 Pressed: -10% 

- Specified the events and buttons that I use, so I get fewer IF/ELSEIF/ELSE statements to og thru

My scene so far

–[[
%% properties
%% weather
%% events
189 CentralSceneEvent 1 Pressed
189 CentralSceneEvent 1 HeldDown
189 CentralSceneEvent 3 Pressed
189 CentralSceneEvent 3 HeldDown
%% globals
–]]
–replace 189 above with your Wallmote id, add other buttons if needed

 

local LightID = 104 –LightSource to be used

if (fibaro:countScenes()>1) then
     fibaro:abort();
end
local startSource = fibaro:getSourceTrigger();
local button = startSource[“event”][“data”][“keyId”];
local keyAttribute = startSource[“event”][“data”][“keyAttribute”];
fibaro:debug(keyAttribute);
if (keyAttribute == ‘Pressed’ and button == 1) then
     local dim_value_now = tonumber(fibaro:getValue(LightID, ‘value’));
     if(dim_value_now >= 90) then
         dim_value_new = 99;
    else
       dim_value_new = dim_value_now+10;
     end
     fibaro:call(LightID, ‘setValue’, dim_value_new);
elseif (keyAttribute == ‘Pressed’ and button == 3) then
     local dim_value_now = tonumber(fibaro:getValue(LightID, ‘value’));
    if(dim_value_now <= 10) then
       dim_value_new = 0;
   else
      dim_value_new = dim_value_now-10;
   end
   fibaro:call(LightID, 'setValue', dim_value_new);
elseif (keyAttribute == 'HeldDown' and button == 1) then
    local dim_value_now = tonumber(fibaro:getValue(LightID, 'value'));
   if(dim_value_now <=10) then
      fibaro:call(LightID, "turnOn");
  else
      fibaro:call(LightID, 'setValue', 99);
  end
elseif (keyAttribute == 'HeldDown' and button == 3) then
    fibaro:call(LightID, "turnOff");
end

 

Link to comment
Share on other sites

  • 0

I try your script and have this error :

 

Please login or register to see this image.

/monthly_2018_09/image.png.3da203cacaec1135ba59e4bed9a61270.png" alt="image.png.3da203cacaec1135ba59e4bed9a61270.png" />

 

did you have an idea to fix it ?

here is my script :

 –[[
%% properties
%% weather
%% events
216 CentralSceneEvent 2 Pressed
216 CentralSceneEvent 2 HeldDown
216 CentralSceneEvent 4 Pressed
216 CentralSceneEvent 4 HeldDown
%% globals
–]]
–-replace 216 above with your Wallmote id, add other buttons if needed

 

local LightID = 128 –LightSource to be used

if (fibaro:countScenes()>1) then
     fibaro:abort();
end
local startSource = fibaro:getSourceTrigger();
local button = startSource[“event”][“data”][“keyId”];
local keyAttribute = startSource[“event”][“data”][“keyAttribute”];
fibaro:debug(keyAttribute);
if (keyAttribute == ‘Pressed’ and button == 2) then
     local dim_value_now = tonumber(fibaro:getValue(LightID, ‘value’));
     if(dim_value_now >= 90) then
         dim_value_new = 99;
    else
       dim_value_new = dim_value_now+10;
     end
     fibaro:call(LightID, ‘setValue’, dim_value_new);
elseif (keyAttribute == ‘Pressed’ and button == 4) then
     local dim_value_now = tonumber(fibaro:getValue(LightID, ‘value’));
    if(dim_value_now <= 10) then
       dim_value_new = 0;
   else
      dim_value_new = dim_value_now-10;
   end
   fibaro:call(LightID, 'setValue', dim_value_new);
elseif (keyAttribute == 'HeldDown' and button == 2) then
    local dim_value_now = tonumber(fibaro:getValue(LightID, 'value'));
   if(dim_value_now <=10) then
      fibaro:call(LightID, "turnOn");
  else
      fibaro:call(LightID, 'setValue', 99);
  end
elseif (keyAttribute == 'HeldDown' and button == 4) then
    fibaro:call(LightID, "turnOff");
end

Link to comment
Share on other sites

  • 0

wow, these are lots of code.

 

I use this to detemine the key and action

Please login or register to see this code.

and then I use this to control the dimmers

Please login or register to see this code.

 

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...