In this manual we will show you how to simply set the Aeon Labs Minimote driver as a secondary driver in the Fibaro Home Center 2 control unit.
The Aeon Labs Minimote device can be used as a separate Z-Wave controller and this means it can assign (associate) the particular Z-Wave devices to the functions of its buttons.
You can find more information on the hierarchy of the Z-Wave communication port in this article.
In the LUA code it is necessary to set the ID of the Aeon Labs Minimote device (in code 687).
The meaning of the particular numbers of buttons in the LUA code (ButtonPressed).
--[[
%% properties
687 sceneActivation
-- nastavte vase ID zariadenia Minimote miesto 687, najdeteho ked kliknete na nastavenia zariadenia
%% globals
--]]
local ButtonPressed = fibaro:getValue(687, "sceneActivation")
-- takisto treba zmenit ID miesto 687
if (tonumber(ButtonPressed) == 1) then
fibaro:debug("MiniMote button 1 pressed")
-- spusti sa scena s ID 11
fibaro:startScene(11)
elseif (tonumber(ButtonPressed) == 2) then
fibaro:debug("MiniMote button 2 pressed")
-- naraz sa vypnu zariadenia s ID 580, 629, 678
fibaro:call(580,"turnOff")
fibaro:call(629,"turnOff")
fibaro:call(678,"turnOff")
elseif (tonumber(ButtonPressed) == 3) then
fibaro:debug("MiniMote button 3 pressed")
elseif (tonumber(ButtonPressed) == 4) then
fibaro:debug("MiniMote button 4 pressed")
elseif (tonumber(ButtonPressed) == 5) then
fibaro:debug("MiniMote button 5 pressed")
elseif (tonumber(ButtonPressed) == 6) then
fibaro:debug("MiniMote button 6 pressed")
fibaro:call(689, "turnOff")
elseif (tonumber(ButtonPressed) == 7) then
fibaro:debug("MiniMote button 7 pressed")
elseif (tonumber(ButtonPressed) == 8) then
fibaro:debug("MiniMote button 8 pressed")
else
fibaro:debug("No response")
end
Fibaro HC2: LUA script to check the status of windows and doors
Short LUA script for Z-Wave controller Fibaro Home Center 2 for checking the door and window sensors when leaving the...
LUA Script: Battery check - Fibaro Home Center 2
A simple LUA script to check the status of battery devices.
Vera Edge - How to work with scenes and the Minimote controller
Creating a scene and controlling the scenes using the Minimote remote controller
Implementations and setting the device for the triggering of the Fibaro Swipe scenes using the LUA script.