Binding Request: Nanoleaf Aurora (LED Design Triangle)

Hey Guys,

please have a look at these awesome led triangles:

wouldn’t it be great to control them via openhab?!
if anyone likes to create a binding for it i would be looking forward to test it :wink:

regards

1 Like

It is really nice to include a link to the manufacture’s website when making posts like this so we don’t have to search for it ourselves.

https://nanoleaf.me/en/consumer-led-lighting/products/smarter-series/nanoleaf-aurora-smarter-kit/

According to their roadmap there is already Alexa and IFTTT integration implemented with an Open API scheduled for release in May.

So there is at least some ability to control these from OH right now. Depending on what the forthcoming API is there may not be a need for a binding.

$200 for the starter kit (9 panels I think) isn’t too bad all things considered.

hey, thanks for your reply.

i can control it via Alexa, but not via OH. so its not possible to use it within rules. but you say that we have to wait for the open api release?!

My understanding is the Alexa to OH integration should let you control devices connected to Alexa.

On IFTTT one can create an applet linking the Nanoleaf channel and openHAB channel.

I don’t understand why you are surprised by this. Without an open API how would you recommend OH talk to these devices?

Do you have a link? Because my understanding is that I can just control devices connected to OH with Alexa not the other way around.

I don’t want to use the ifttt service because I don’t want to send all this stuff through internet and keep things as often as possible in the local network.

Regards

You do realize that Alexa sends everything you say through the internet too, right? The actual voice to text processing is done on Amazon’s computers, not on the Echo itself. The only thing that happens locally is recognizing the wake-up word “Alexa”. Much of the additional processing takes place on Amazon’s servers as well.

Anyway, you are right, the Alexa skills only allow you to control openHAB devices, not the other way around.

Yes of course. I know. And I don’t like it. But I have no choice when I want to use voice control.
But I don’t want to use ifttt for my smart home as well and send even more data trough the internet.

So for controlling aurora through openhab we need to wait for the openapi to be finished and then see how we can use it.

Thanks for your help.

Regards

There is no guarantee that this open API will also not require the Internet. For devices like these, being able to control them directly is the exception, not the rule. The fact that they implemented integration with Alexa and IFTTT does not bode well for direct control without going out to the Internet.Given their roadmap, if I were running this company, the “Open API” would be REST based and would hit the same servers that the phone apps and other cloud services interact with.

It doesn’t look like the “Open API” requires internet access:

https://s3.amazonaws.com/aurora-api-docs/Aurora+Open+API+Documentation+v0.1.pdf?utm_source=sendinblue&utm_campaign=Nanoleaf_Aurora_Open_API_beta&utm_medium=email

Anyone looking into this? If not may have some cycles available soon to take a stab at it.

1 Like

I’ve seen these sold in the stores hear locally and they seem pretty cool. Does anyone have one and workign with OH2. Does perhaps the existing Wifi LED or other bindings already work with it?

Nanoleaf aurora seems to be supported by homegear. https://doc.homegear.eu/data/homegear-nanoleaf/

Perhaps some openhabian user with a nanoleaf can check this :slight_smile:

And I think this could be a great starting point for a direct openhab integration.

Does anyone have this working with OpenHab? I would love to integrate it with my current setup.

1 Like

I have found a workaround for getting the Aurora to work with OpenHab and Alexa.

I installed the Alexa Control binding and that has a feature to run a scene. Since Aurora is native with Alexa, I can have it “run the scene” at sunset.

The whole API was release now, and it seem we have all we need for a good binding.
http://forum.nanoleaf.me/docs/openapi
I’m not be able to achieve this, but I’ve managed to get it working with a rule, only a Dimmer control for the moment.
If it help someone, this is how I done it :

First of all, you need a auth token :

  1. Holding the on-off button down for 5-7 seconds until the LED starts flashing in a pattern

  2. Sending a POST request to the authorization endpoint : http://NANOLEAF-IP:16021/api/v1/new

within 30 seconds of activating pairing.

  1. If 2 is achieved, the POST response will contain a randomly generated authorization token:
    {“auth_token” : “xxxxxxxxxxxxxxxxxxxxx … xxx”}

Next, set up a Dummy Dimmer item :

Dimmer NANOLEAF 

and this is my rule :

rule "Nanoleaf"

when
    Item NANOLEAF received command
then

var String command = receivedCommand.toString.lowerCase
val String MY_URL = 'http://NANOLEAF-IP:16021/api/v1/AUTH-TOKEN/state'
var String myData

if (command == "on") {
	myData = '{"on" : {"value":true}}'

} else if (command == "off") {
	myData = '{"on" : {"value":false}}'

} else {
	myData = '{"brightness" : {"value":' + command + '}}'
}

sendHttpPutRequest(MY_URL, "application/x-www-form-urlencoded", myData)

end

Don’t forget to replace NANOLEAF-IP and AUTH-TOKEN with your proper values in the MY_URL String.

Next I will look how to trigger scenes, and I’ll post progress if some peoples are interested.

Best regards,

Mac_Fly.

Hi MacFly,
your rule Definition works perfectly. I implemented it a couple days ago in my Setup, works fine, even in Habpanel Setups. Please keep us updated on your Progress, I’ ll want to try and contribute to it.

Best regards,
Kai

Hi folks,
I did some fiddling with my nanoleaf and modified the example given above. It is possible to send a “direct” brightness value to a panel. It will then turn on with the given brightness value. I implemented some cron based rules to switch on my panels to 30% brightness at 06:00 in the moring on weekdays and on 07:30 on weekends. Here is my rule definition:

rule "Nanoleaf turns on"
when 
	Time cron "0 0 6 ? * MON-FRI" or //weekdays at 06:00
	Time cron "0 30 7 ? * SAT-SUN" //weekends at 07:30
then
        val String MY_URL = 'http://NANOLEAF-IP:16021/api/v1/AUTH-TOKEN/state'
	myData = '{"brightness" : 30}' //anschalten, 30% Helligkeit
	sendHttpPutRequest(MY_URL, "application/x-www-form-urlencoded", myData)
	logInfo("wohnzimmer.rules","Nanoleaf turns on")
	Nanoleaf_Flur.postUpdate(30)
end

The last line with Nanoleaf_Flur.postUpdate(30) updates an Dimmer Item used in my Habpanel to the correct value. Hope that helps!
Best regards,
Kai

I’ve seen this java api that looks quite simple to integrate

bump nanoleaf

Hi guys,

I have started a Nanoleaf binding. Could you perhaps hop over to my new thread and help collect use cases and requirements?

1 Like