Nanoleaf Aurora Component

Any update on this? Sometime this week I’m going to be testing this out, if there’s been any developments I’d love to try those out too.

Hi! I’m having some trouble installing this. I added aurora.py to the custom_component folder in /.homeassistant/, but when I run pip install nanoleaf --upgrade on my Pi I get this error:

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-DYUTdG/nanoleaf/

Any help would be appreciated :slight_smile:

Okay, turns out using pip3 solved the problem. Still having trouble trying to generate the Auth key though :frowning:

Did someone successfully make it run with hass.io and could post some brief instructions?

Were you able to get the api key? I cant seem to get it…

Yes actually, from this thread here: Nanoleaf Aurora API Key

The instructions I followed are from this site here: https://www.technikkram.net/2017/05/nanoleaf-aurora-via-api-zugriff-per-homematic-steuern (I used Google Translate to follow along :slightly_smiling_face:)

Hi,

I’m still trying to set it up on hass.io and getting the following error:

2017-12-26 16:06:01 ERROR (MainThread) [homeassistant.loader] Error loading custom_components.light.aurora. Make sure all dependencies are installed
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/loader.py”, line 142, in get_component
module = importlib.import_module(path)
File “/usr/lib/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 994, in _gcd_import
File “”, line 971, in _find_and_load
File “”, line 955, in _find_and_load_unlocked
File “”, line 665, in _load_unlocked
File “”, line 678, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/config/custom_components/light/aurora.py”, line 1, in
from nanoleaf import Aurora
ModuleNotFoundError: No module named ‘nanoleaf’
2017-12-26 16:06:01 ERROR (MainThread) [homeassistant.loader] Unable to find component light.aurora

Any idea on how to install the dependencies on hass.io?

Sorry I don’t know much about hassio. Hopefully someone else can help you out.

As far as I know there isn’t yet a hass.io addon. If the component gets to a feature complete state @Software2 has expressed interest in making a pull request to add it to the release version of home assistant. At the moment it’s just in a testing stage.

Hey @Software2,

Thank you so much for creating the Component and the python wrapper!
I’d like to take your component and push this into Home Assistant proper so that everyone can benefit from your work. Would it be OK with you if I continue with your work and create a PR for the Home Assistant repo?
(Albeit with several changes which I think make the Aurora component even better, see https://github.com/Oro/home-assistant/tree/light-aurora )

Cheers
Marco

5 Likes

homeassistant) homeassistant@lxc-hass:/root$ pip install nanoleaf --upgrade
Collecting nanoleaf
Downloading nanoleaf-0.4.1-py3-none-any.whl
Requirement already up-to-date: requests in /srv/homeassistant/lib/python3.5/site-packages (from nanoleaf)
Requirement already up-to-date: chardet<3.1.0,>=3.0.2 in /srv/homeassistant/lib/python3.5/site-packages (from requests->nanoleaf)
Requirement already up-to-date: certifi>=2017.4.17 in /srv/homeassistant/lib/python3.5/site-packages (from requests->nanoleaf)
Requirement already up-to-date: urllib3<1.23,>=1.21.1 in /srv/homeassistant/lib/python3.5/site-packages (from requests->nanoleaf)
Requirement already up-to-date: idna<2.7,>=2.5 in /srv/homeassistant/lib/python3.5/site-packages (from requests->nanoleaf)
Installing collected packages: nanoleaf
Successfully installed nanoleaf-0.4.1

That is not on a hass.io installation, is it?

I’m interested in getting this to work on my hass.io installation.

@Oro will you open a PR for this?

I’ve opened up the PR, thanks for the push :slight_smile:

2 Likes

Thank you for great work, unfortunately upgrading to 0.66 seems to break this custom component?

It probably fails with something like

ImportError: cannot import name ‘SUPPORT_RGB_COLOR’

That was a change in 0.66 that is already reflected in my pull request, could you please try aurora.py from Add support for Nanoleaf Aurora Light Panels by Oro · Pull Request #13456 · home-assistant/core · GitHub ?

1 Like

Works, thank you! Great work!
(please note, change in config-file from api_key to token, I missed it first)

1 Like

Looking forward tor integration into HAAS! I have two of these and looking forward to start building automations with these lights from HAAS.

Have a look at my how-to to get Aurora Nanoleaf working in hass.io. NB! This will be redundant as soon as this PR is merged. But if you are impatient :slight_smile: