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.

Moderators: leecollings, remb0

Post Reply
andi216
Posts: 46
Joined: Tuesday 14 March 2017 13:10
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Aurora Nanoleaf

Post by andi216 »

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: 317
Joined: Thursday 12 January 2017 15:30
Target OS: Linux
Domoticz version: Beta Ch
Location: Finland
Contact:

Re: Aurora Nanoleaf

Post by tontze »

No thats cool lightning, definitely interested if someone can implement it !
-----------------------------------------
Smartthings
zigbee2mqtt
RFLink 433mhz / Nrf 2.4Ghz
Mi Light
esp8266MiLight Hub
OpenHab/HomeAssistant/Domoticz
HP T610 & Debian 5.10.19-1 x86_64[/b]
andi216
Posts: 46
Joined: Tuesday 14 March 2017 13:10
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.7243
Contact:

Re: Aurora Nanoleaf

Post by andi216 »

They are a bit expensive. I was curious if domoticz system can contrlol.
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Aurora Nanoleaf

Post by poudenes »

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 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Aurora Nanoleaf

Post by poudenes »

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 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
cattoo
Posts: 60
Joined: Sunday 20 September 2015 17:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.3072
Location: Sweden
Contact:

Re: Aurora Nanoleaf

Post by cattoo »

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: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Aurora Nanoleaf

Post by poudenes »

cattoo wrote: Wednesday 15 November 2017 11: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 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
MatsL
Posts: 7
Joined: Monday 24 February 2014 19:11
Target OS: Linux
Domoticz version:

Re: Aurora Nanoleaf

Post by MatsL »

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 4737 times
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Aurora Nanoleaf

Post by poudenes »

Wow that is good news! Better then nothing. I go try this :)
MatsL wrote: Monday 12 February 2018 18: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 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Aurora Nanoleaf

Post by poudenes »

Cant get any API key.. Everything i try i get a 404 error
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
MatsL
Posts: 7
Joined: Monday 24 February 2014 19:11
Target OS: Linux
Domoticz version:

Re: Aurora Nanoleaf

Post by MatsL »

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: 7
Joined: Monday 24 February 2014 19:11
Target OS: Linux
Domoticz version:

Re: Aurora Nanoleaf

Post by MatsL »

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: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Aurora Nanoleaf

Post by poudenes »

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 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Aurora Nanoleaf

Post by poudenes »

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 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
desertdog
Posts: 84
Joined: Sunday 14 August 2016 13:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Netherlands
Contact:

Re: Aurora Nanoleaf

Post by desertdog »

poudenes wrote: 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"'"}';
Do you have an example of this script and how to add that to a selector?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest