Using the Aeon Minimote in Fibaro Home Center 2
This guide shows how to include the Aeon Labs Minimote into a Z-Wave home automation network using a Fibaro Home Center 2 central controller and how it can be used to control various scenes.
The Aeon Labs Minimote is a handheld remote control, it can be used as a standalone Z-Wave controller or most often it is added to an existing Z-Wave network as a secondary controller. The process to include the Minimote and control scenes is relatively straightforward, however, there are a few things you need to do carefully to ensure it all goes smoothly.
When included into the Fibaro Home Center 2 (HC2) network, the Minimote acts as a scene controller. This means that it controls scenes rather than individual devices directly. The Minimote has four buttons and can control eight scenes - each button can control two scenes based on a 'short' or 'long' button press.
Add the Minimote to HC2
- Reset the Minimote by holding its 'Associate' and 'Learn' buttons until the LEDs stop blinking
- In the HC2 UI go to the Devices tab
- Click the Add or Remove Devices tab (on the left-hand sidebar)
- In the Add device section click the 'Add' button
- Press the Minimote's 'Learn' button once for about 3 seconds
- The Minimote's LEDs will flash while it is being included into the HC2 network
- HC2 will tell you that it is adding the Minimote to the system
- Wait for HC2 to finish adding the Minimote and then click the Devices tab
- You will now see a Minimote icon in the 'Unassigned' section of the HC2 Devices page
- The Minimote will probably have a message 'Not Configured'
- Click the Minimote 'Wrench' icon and choose a room to assign the device to
- Click Save (right-hand sidebar) and press the Minimote's 'Learn' button for 3 seconds to wake it up
- Wait for the HC2 to finish configuring the Minimote
- If the Minimote icon displays a message 'Device Asleep' - press the Minimote's 'Learn' button for 3 seconds to wake it up again
- The Minimote should now be fully included and configured in HC2
This guide was written and tested using HC2 firmware v3.558. Howver, since the release of v3.571 we have seen some problems.
- The Minimote can be difficult to add to HC2 - you may see a message "Learn mode error". If you do get this error, delete the Minimote from HC2, reset it and complete the 'Add" process again (this may take several attempts).
- When included in HC2 you may not be able to activate scenes. If this is the case, parameter 250 has not been configured correctl.
- Set Minimote's Parameter 250 to 1 - do this in the Minimote's 'Advanced tab, click save and wake the Minimote.
- The Minimote will now function correctly in HC2.
Creating a Minimote Scene
To use Minimote in HC2 you need to create a scene using LUA code - this isn't difficult, all the information is included in this guide.
To create a LUA scene that enables all Minimote buttons to be used:
- In the HC2 UI go to the Scenes tab
- Click the 'Add Scene' tab in left-hand navigation bar
- Give the new scene a name - for example 'Minimote'
- Choose a Room from the drop-down list
- Select the 'Active Scene' box, but do not select 'Start when Home Center 2 starts'
- Go to the scenes Advanced tab and click the 'Save' button in the Add scene in Lua section
- Add the LUA code (below) and make changes for your system
- Click the 'Save' button on the right-hand sidebar
local ButtonPressed = fibaro:getValue(36, "sceneActivation")
if ( tonumber(ButtonPressed) == 1) then
fibaro:debug("MiniMote button 1 pressed")
elseif ( tonumber(ButtonPressed) == 2) then
fibaro:debug("MiniMote button 2 pressed")
elseif ( tonumber(ButtonPressed) == 3) then
fibaro:debug("MiniMote button 3 pressed - Everspring AN158 ON")
elseif ( tonumber(ButtonPressed) == 4) then
fibaro:debug("MiniMote button 4 pressed - Everspring AN158 OFF")
elseif ( tonumber(ButtonPressed) == 5) then
fibaro:debug("MiniMote button 5 pressed")
elseif ( tonumber(ButtonPressed) == 6) then
fibaro:debug("MiniMote button 6 pressed")
elseif ( tonumber(ButtonPressed) == 7) then
fibaro:debug("MiniMote button 7 pressed")
elseif ( tonumber(ButtonPressed) == 8) then
fibaro:debug("MiniMote button 8 pressed")
The LUA code sets Minimote as the controller for the scene and then assigns an action for each button.
- The Minimote's device ID number is used in lines 3 and 6 - Minimote's number is 36 in this example (change this to the correct number in your system)
- Buttons - Each button has two actions (short or long press), the scene uses the following number to define each button press
- 1 = Button 1 Short Press
- 2 = Button 1 Long Press
- 3 = Button 2 Short Press, etc.
- Each button can be assigned an action, a device ID number is used to tell the scene which device to use - device ID 29 is used in this example
This example scene enables:
- Button 2 (short) - Everspring AN158 turns On (device ID 29) when scene button 3 is pressed (line 12 in the LUA code)
- Button 2 (long) - Everspring AN158 turns Off (device ID 29) when scene button 4 is pressed (line 15)
Adding Minimote Control to an existing Scene
Minimote control can also be added to existing scenes, by adding a short LUA code to the beginning of the scene.
If you create your scenes in the Graphical Block Editor, it's probably better to finish and test the scene, then Switch to LUA editing mode in the scenes Advanced tab and add the Minimote scene activation code.
This screenshot shows the Minimote SceneActivation code added to an existing scene.
Adding Minimote Scene Activation code to an existing HC2 scene
This scene will now be activated by Minimote scene button 7 (button 4 short press), the scene will turn On device 29 and sets device 35 to 60% dim level.
You can now use your Minimote as a stand alone controller within HC2 or use it to trigger existing scenes.
This application note is based on testing by Vesternet as well as many useful forum posts from the users of the Fibaro Forum.
Copyright Vesternet 2014