Here’s the link to my fork of SteveTheGeekAH’s code, that has the v1 and effects changes from gferrarri, a change to the default smartthings icon color, and the addition of the 3 user selection scenes, now with auto updating labels.
To install:
Go to https://graph.api.smartthings.com/login/auth , and login with your smartthings or samsung account.
Select the My Device Handlers tab, and click the Create New Device Handler button, then select the From Code tab and copy/paste the code from the github link above, then click the Create button.
Click the Publish button, then the For Me in the menu that appears.
Next select My Devices tab, and click the New Device button.
Enter the following into each field:
-Name- (whatever you like)
-Label- (whatever you like)
-Zigbee ID- (leave blank)
-Device Network Id *- (IP address and port in Hex. See below for conversion)
-Type *- Nanoleaf Aurora Smarter API
-Version *- Published
-Location- (Select your hub’s location)
-Hub- (select your hub)
-Group- (select your room)
Then click the Create button at the bottom.
From the Devices tab, click the Display Name you selected above, then scroll down to Preferences and click (edit)
Enter your Aurora API key (see below for instructions on obtaining your key) and three scenes for quick selection (You can leave these blank or change at any time), then click the Save button.
You’re done!
To convert your IP address and port to hex, go here: IP(IPv4/IPv6) Address to Hex Converter
Enter your ip address. Drop the first two characters, and add :3E95 at the end for your port, and enter in the Device Network ID field above. IP:port should be in this format: C0A8FFFF:3E95
To obtain your API key: Now another easier method below the Postman method
Grab the Chrome Postman plugin, and open it by going to your Apps tab. (should be on your main hotbar)
Close the help window that opens first.
Select POST (1) from the dropdown selector on the left (default is GET).
Put your device IP address in field to the right (2), replacing the Xs:
http://192.168.x.x:16021/api/v1/new
(don’t select Send yet)
Press and hold the power button on your Nanoleaf until the two lights near the button flash.
Select “Send” in Postman (3) within 30 seconds (while the lights are still flashing).
The apikey will display in the body. (4)
Alternate API key method courtesy of FuzzyLabRat:
