Page 1 of 1
Aurora Nanoleaf
Posted: Tuesday 14 March 2017 13:24
by andi216
Re: Aurora Nanoleaf
Posted: Wednesday 15 March 2017 7:46
by tontze
No thats cool lightning, definitely interested if someone can implement it !
Re: Aurora Nanoleaf
Posted: Thursday 16 March 2017 7:33
by andi216
They are a bit expensive. I was curious if domoticz system can contrlol.
Re: Aurora Nanoleaf
Posted: Tuesday 09 May 2017 9:35
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
Re: Aurora Nanoleaf
Posted: Tuesday 09 May 2017 11:28
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
Re: Aurora Nanoleaf
Posted: Wednesday 15 November 2017 11:48
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
Re: Aurora Nanoleaf
Posted: Thursday 23 November 2017 10:33
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
Re: Aurora Nanoleaf
Posted: Monday 12 February 2018 18:52
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 (11.35 KiB) Viewed 4731 times
Re: Aurora Nanoleaf
Posted: Monday 12 February 2018 19:39
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
Re: Aurora Nanoleaf
Posted: Wednesday 21 February 2018 15:02
by poudenes
Cant get any API key.. Everything i try i get a 404 error
Re: Aurora Nanoleaf
Posted: Wednesday 04 April 2018 11:43
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
Re: Aurora Nanoleaf
Posted: Wednesday 04 April 2018 11:46
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"
]
}
Re: Aurora Nanoleaf
Posted: Wednesday 04 April 2018 13:41
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"'"}';
Re: Aurora Nanoleaf
Posted: Wednesday 25 April 2018 9:50
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.
Re: Aurora Nanoleaf
Posted: Tuesday 19 March 2019 10:28
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?