Aurora Nanoleaf

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.
Post Reply
andi216
Posts: 57
Joined: Tuesday 14 March 2017 14:10
Target OS: Raspberry Pi
Domoticz version: 3.7243
Contact:

Aurora Nanoleaf

Post by andi216 » Tuesday 14 March 2017 14:24

Hello everybody
Aurora Nanoleaf device is possible to implement?

https://nanoleaf.me/en/consumer-led-lig ... arter-kit/

Api (.pdf)
https://community.home-assistant.io/t/n ... ort/5786/5

tontze
Posts: 329
Joined: Thursday 12 January 2017 16:30
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Aurora Nanoleaf

Post by tontze » Wednesday 15 March 2017 8:46

No thats cool lightning, definitely interested if someone can implement it !
-----------------------------------------
Rpi 3 / Razberry 2
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
ESP82xx

andi216
Posts: 57
Joined: Tuesday 14 March 2017 14:10
Target OS: Raspberry Pi
Domoticz version: 3.7243
Contact:

Re: Aurora Nanoleaf

Post by andi216 » Thursday 16 March 2017 8:33

They are a bit expensive. I was curious if domoticz system can contrlol.

poudenes
Posts: 546
Joined: Wednesday 08 March 2017 10:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Aurora Nanoleaf

Post by poudenes » Tuesday 09 May 2017 9:35

I gonna get mine today.... For now not supported. And to bad im not a programmer. But maybe people can help en give me some info maybe someone can build a plugin :)
RPi3 with OSMC - RPi3 with Domoticz - Dashticz - MiLight - Nanolead Aurora - KaKu - Logitech Hamony - Nest - RFLink

poudenes
Posts: 546
Joined: Wednesday 08 March 2017 10:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Aurora Nanoleaf

Post by poudenes » Tuesday 09 May 2017 11:28

Until there is no plugin what you can do (if you use homekit as well) is add the created scenes in NanoLead app and make a automation within Homekit.
When you do lights on you can automatic turn on a scene on NanoLeaf Aurora.

I have created switched in Domoticz that triggers scenes within Domoticz for my lights. These switches are true homebridge into homekit. With MQTT as well the response is so quick that it seems that Aurora is controlled by Domoticz
RPi3 with OSMC - RPi3 with Domoticz - Dashticz - MiLight - Nanolead Aurora - KaKu - Logitech Hamony - Nest - RFLink

cattoo
Posts: 66
Joined: Sunday 20 September 2015 17:37
Target OS: Raspberry Pi
Domoticz version: 2.3072
Location: Sweden
Contact:

Re: Aurora Nanoleaf

Post by cattoo » Wednesday 15 November 2017 12:48

Home assistant had success to include Nanoleaf Aurora, so it feels like if some programer could translate the script it would be possible.
Script

poudenes
Posts: 546
Joined: Wednesday 08 March 2017 10:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Aurora Nanoleaf

Post by poudenes » Thursday 23 November 2017 11:33

cattoo wrote:
Wednesday 15 November 2017 12:48
Home assistant had success to include Nanoleaf Aurora, so it feels like if some programer could translate the script it would be possible.
Script
im not a programer but a high Thanks for the one who can do this !!

+1
RPi3 with OSMC - RPi3 with Domoticz - Dashticz - MiLight - Nanolead Aurora - KaKu - Logitech Hamony - Nest - RFLink

MatsL
Posts: 12
Joined: Monday 24 February 2014 20:11
Target OS: Linux
Domoticz version:
Contact:

Re: Aurora Nanoleaf

Post by MatsL » Monday 12 February 2018 19:52

Nanoleafs can be controlled similary as the Ikea bulbs by calling scripts. See here:
viewtopic.php?t=13882&start=40#p143476

First generate a API key (google translate)
https://technikkram.net/2017/05/nanolea ... ic-steuern

Then create scripts and make a calls to them from a domoticz selector switch

Examples below, replace IP and Auth_token with your own

On= {"on":true}
Off= {"on":false}

Code: Select all

#!/bin/bash
curl -v -X PUT -H "Content-Type: application/json" -d '{"on":true}' http://192.168.0.218:16021/api/v1/AUTH_TOKEN/state/

Effect selector=
{"select" : "Forest"}
{"select" : "Nemo"}
and so on...

Code: Select all

#!/bin/bash
curl -v -X PUT -H "Content-Type: application/json" -d '{"select" : "Forest"}' http://192.168.0.218:16021/api/v1/AUTH_TOKEN/effects/
nanoleafs.PNG
nanoleafs.PNG (11.35 KiB) Viewed 1476 times

poudenes
Posts: 546
Joined: Wednesday 08 March 2017 10:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Aurora Nanoleaf

Post by poudenes » Monday 12 February 2018 20:39

Wow that is good news! Better then nothing. I go try this :)
MatsL wrote:
Monday 12 February 2018 19:52
Nanoleafs can be controlled similary as the Ikea bulbs by calling scripts. See here:
viewtopic.php?t=13882&start=40#p143476

First generate a API key (google translate)
https://technikkram.net/2017/05/nanolea ... ic-steuern

Then create scripts and make a calls to them from a domoticz selector switch

Examples below, replace IP and Auth_token with your own

On= {"on":true}
Off= {"on":false}

Code: Select all

#!/bin/bash
curl -v -X PUT -H "Content-Type: application/json" -d '{"on":true}' http://192.168.0.218:16021/api/v1/AUTH_TOKEN/state/

Effect selector=
{"select" : "Forest"}
{"select" : "Nemo"}
and so on...

Code: Select all

#!/bin/bash
curl -v -X PUT -H "Content-Type: application/json" -d '{"select" : "Forest"}' http://192.168.0.218:16021/api/v1/AUTH_TOKEN/effects/
nanoleafs.PNG
RPi3 with OSMC - RPi3 with Domoticz - Dashticz - MiLight - Nanolead Aurora - KaKu - Logitech Hamony - Nest - RFLink

poudenes
Posts: 546
Joined: Wednesday 08 March 2017 10:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Aurora Nanoleaf

Post by poudenes » Wednesday 21 February 2018 16:02

Cant get any API key.. Everything i try i get a 404 error
RPi3 with OSMC - RPi3 with Domoticz - Dashticz - MiLight - Nanolead Aurora - KaKu - Logitech Hamony - Nest - RFLink

MatsL
Posts: 12
Joined: Monday 24 February 2014 20:11
Target OS: Linux
Domoticz version:
Contact:

Re: Aurora Nanoleaf

Post by MatsL » Wednesday 04 April 2018 11:43

Guide in swedish:
https://snillevilla.se/guide_step/nanol ... i-nyckeln/

A short translation:

Download Postman and install it on your computer

Find you nanoleaf IP-adress, check in your wireless router or use Fing on your mobile phone
192.168.xxx.xxx

Go to your Nanoleaf and press power button for 5-7s until white led starts blinking
Now you got a 30s window to do the next step:

Use postman and do a POST (not GET) select it next to the adress bar
Replace with your own IP
http://192.168.xxx.xxx:16021/api/v1/new

In postman you will see the response containing the API key

MatsL
Posts: 12
Joined: Monday 24 February 2014 20:11
Target OS: Linux
Domoticz version:
Contact:

Re: Aurora Nanoleaf

Post by MatsL » Wednesday 04 April 2018 11:46

And to verify if the key works you can do a GET in Postman to this adress:
http://192.168.xxx.xxx:16021/api/v1/APIKEY/effects/

Replace with right IP and insert your own API KEY

The response should be a list of available effects

Code: Select all

{
    "select": "Romantic",
    "effectsList": [
        "Bedtime",
        "Color Burst",
        "Deep Abyss",
        "Dracarys",
        "Flames",
        "Forest",
        "Matrix",
        "Mint",
        "Nemo",
        "Netflix and Chill",
        "Northern Lights",
        "Rain",
        "Reading Light",
        "Romantic",
        "Sleep Mode",
        "Snowfall",
        "Sweet candy",
        "Test",
        "Triluminox Energy Crystal",
        "Twinkling Midnight Sky",
        "Vibrant Sunrise",
        "Vintage Modern",
        "moonlight"
    ]
}

poudenes
Posts: 546
Joined: Wednesday 08 March 2017 10:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Aurora Nanoleaf

Post by poudenes » Wednesday 04 April 2018 13:41

I have created this script for On and Off

nl.sh true/false

Code: Select all

#!/bin/bash
curl -v -X PUT \
    --url  http://192.168.100.2:16021/api/v1/API KEY HERE/state/\
    --header 'content-type: application/json' \
    --data '{"on":'$1'}';
and this one for effect. You can now add the effect and it will act. So you can add many Switch Selectors with a scene without make lots of script for 1 specific scene
nleffect.sh "flames"
nleffect.sh "Roces are Red"

Code: Select all

#!/bin/bash

curl -v -X PUT \
    --url  http://192.168.100.2:16021/api/v1/API KEY HERE/effects/\
    --header 'content-type: application/json' \
    --data '{"select":"'"$1"'"}';
RPi3 with OSMC - RPi3 with Domoticz - Dashticz - MiLight - Nanolead Aurora - KaKu - Logitech Hamony - Nest - RFLink

poudenes
Posts: 546
Joined: Wednesday 08 March 2017 10:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Aurora Nanoleaf

Post by poudenes » Wednesday 25 April 2018 9:50

Hi All,

found this on GitHub:

https://github.com/dumbstart/nanoleaf-cli

You can do more then just effect and on off. Also Brightness level.
RPi3 with OSMC - RPi3 with Domoticz - Dashticz - MiLight - Nanolead Aurora - KaKu - Logitech Hamony - Nest - RFLink

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests