For users using SmartThings Hub, NanoMote may require custom device type support until SmartThings adds native compatibility with the dual button controller.
Notes - Using the below device handler, you have a few options for control using the below SmartApps:
- Button Control
- CoRE
- Other scene based Smart App type applications.
Developer klaframboise has created a custom device type for NanoMote Quad and One and published it to Github for the public to use it. (https://github.com/krlaframboise/SmartThings/blob/master/devicetypes/krlaframboise)
SmartThings Hub Instructions for creating your own Device Handler:
http://docs.smartthings.com/en/latest/device-type-developers-guide/quick-start.html
Recommended NanoMote Device Handler
https://github.com/krlaframboise/SmartThings/blob/master/devicetypes/krlaframboise/aeotec-nanomote.src/aeotec-nanomote.groovy (by klaframboise)
Follow the steps below:
- Login to Web IDE (login here: https://graph.api.smartthings.com/)
- Click on "My Location" tab, then select your gateway.
- Click on the "My Device Handlers" link on the top menu
- Create a new Device Handler by clicking on "New Device Handler" button in the upper-right corner. (Green button)
- Click on "From Code."
- Copy klaframboise code from Github (https://github.com/krlaframboise/SmartThings/blob/master/devicetypes/krlaframboise/aeotec-nanomote.src/aeotec-nanomote.groovy), and paste it into the code section.
- Click on "Save", then wait for the spinning wheel to stop.
- Click on "Publish" -> "Publish for me"
- Install it on your NanoMote by going to "My Devices" page in the IDE
- Find your NanoMote.
- Go to the bottom of the page for the current NanoMote and click on "Edit."
- Find the "Type" field and select your device handler. (should be located at the bottom of the list as Aeotec NanoMote).
- Click on "Update"
- Save Changes
NOTES: Before moving onto Button Controller SmartApp or Group Association use, make sure that you install the device handler above.
Button Controller (Central Scene Use)
The easiest way to get started to use NanoMote with SmartThings is to install the Button Controller SmartApp developed and designed by SmartThings development team. To get install Button Controller, follow the steps below:
- Open SmartThings App from your Smart Phone.
- At the bottom click on "Automation"
- Near the top, select "SmartApps"
- Click on "+ Add a SmartApp"
- Scroll to the bottom of the list, and select "+ More"
- Click on "Button Controller" located on the top of the list.
Now you get to program Button Controller with the device desired. There are 2 separate parts, (1) first determining which button device to use, in this case you'd set the NanoMote for this, (2) Programming what each button does when you tap or press and hold them which a bunch of provided options will be available to you here.
When programming each button, you will be setting up each button individually up to 4 buttons, every time you click on Next at the top right, it will move on to allow you to program the next upcoming buttons.
(1) Button 1 = Middle button.
Here are some general steps to get started (continuing from the steps above):
- Tap on "Button - Tap to set"
- Select your NanoMote (or your desired button controller).
- Now at the top right, click on "Next"
- You will now be taken to program Button #1 (top left button), scroll up and down and decide what you want to control.
- Click on "Next" at the top right corner"
- This will continue onto programming Button #2.
- Keep Following Steps 4 and 5 for each button control that you want to program.
- When you are done, and you have no need to program more buttons, just keep pressing next until the top right says "Save"
- Click on "Save" to finish.
Group Association
Notes - Using the below device handler, you have a few options for control using the below SmartApps:
- Direct control of Z-Wave devices
- Bypass SmartThings hub
The Device Handler option above provides you a method to bypass SmartThings and allow you to directly control your Z-Wave Switches and Dimmers.
The steps to install Z-Wave Tweaker (You only need to do this once, if already installed, skip this section):
- Login to your SmartThings IDE
- Click on Locations and then select your gateway
- Select "My Device Handlers" then click on "Add new Device Handler"
- Select "From Code"
- Go into the Z-Wave Tweaker Code, and copy all of the code from line 0 to the very last line. (can be found here directly: https://github.com/codersaur/SmartThings/blob/master/devices/zwave-tweaker/zwave-tweaker.groovy)
- PRO TIP - Click on the "Raw" button which exposes only code, then ctrl + a (highlight all), then ctrl + c (copy highlighted).
- Paste this into your SmartThings IDE.
- Save the code.
- Then click on Publish -> "Publish for me"
Now install Z-Wave Tweaker over NanoMote:
- Click on "My Devices"
- Look for your NanoMote and click on it
- Scroll to the bottom then click "Edit"
- Find "Type" and bring out the drop down menu
- First make note of the original device handler that you were using (you will need to revert back to the original device handler later)
- Find "Z-Wave Tweaker" and select it
- click on Save
Using Z-Wave Tweaker to Set a GROUP ASSOCATION
- Go into your SmartThings App over your Smartphone
- Find the NanoMote and open up its page, you'll notice that everything is incredibly different. Please make note of the GREEN "Sync" symbol at the bottom.
- On the top right, click on the GEAR icon
- Scroll down and look for the "CONFIGURE ASSOCIATION GROUP" section, there are multiple parts in this section (Association Group ID, Association Group Members, Command Class)
- On "Association Group ID" set this to the group ID you want to program
For step 5 on setting Association Group ID, this is the grid list of what can be set over NanoMote:Group Association # Function Button # Press Function 2 Toggle On/Off 1 (Left) Tap 3 Toggle Last dim level / Off
Dim up/down1 (Left) Tap
Press and Hold - On "Association Group Members" set this to the Device Network ID (which can be found under SmartThings IDE -> My Devices)
Image below is where you can find the Device Network ID (under SmartThings IDE):
Input into SmartThings App (in belows example, we want to control backyard lights which has Device Network Id of 15 with button 1 and allow us to dim using Group #3): - On "Command Class" set this to "Auto-detect"
- Now click on "Done" located on the top right.
- From step 2 you made note of the GREEN "Sync" symbol, if the color is ORANGE "Unsynced" then you will need to wait for this to change to GREEN "Sync" before moving onto the next section.
- Your NanoMote is a battery device, Wake up the battery device now to take in the new changes. To do this, press and hold the Action Button located on the back of NanoMote until the NanoMote turns red/orange, then release the Action Button. (The Yellow LED should be flashing rapidly during this time).
- If you see GREEN "Sync" at the bottom of the device page, you are now done with this section.
- Tap the Action Button of NanoMote to bring NanoMote out of its awake state, and its yellow LED should stop flashing.
Now install the original device handler over NanoMote (using SmartThings IDE):
- Click on "My Devices"
- Look for your NanoMote and click on it
- Scroll to the bottom then click "Edit"
- Find "Type" and bring out the drop down menu
- Find the original device handler and select it
- click on Save