home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.04k stars 31.07k forks source link

Nanoleaf Integration UI Setup - Aborted #55759

Closed IIAIronWolf closed 3 years ago

IIAIronWolf commented 3 years ago

The problem

I deleted Nanoleaf setup from config.yaml and then deleted it from the integrations page and restarted home assistant. I am now trying to setup Nanoleaf via the UI, per the latest HA release, and after pressing the power button for 5 seconds and clicking submit in HA, the integration just says 'Aborted.'

What is version of Home Assistant Core has the issue?

core-2020.9.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Nanoleaf

Link to integration documentation on our website

https://www.home-assistant.io/integrations/nanoleaf/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2021-09-04 19:26:39 ERROR (SyncWorker_3) [pynanoleaf.pynanoleaf] Nanoleaf is not allowing new tokens,
please make sure to press and hold the on/off button
on your device for 5 seconds until the LED starts flashing
in a pattern.

Additional information

These are Nanoleaf Light Panels

probot-home-assistant[bot] commented 3 years ago

nanoleaf documentation nanoleaf source (message by IssueLinks)

probot-home-assistant[bot] commented 3 years ago

Hey there @milanmeu, mind taking a look at this issue as it has been labeled with an integration (nanoleaf) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

IIAIronWolf commented 3 years ago

The fix was to restart home assistant yet again (about 3 times) and wait for Nanoleaf to be automatically discovered. For some reason I couldn't manually add the integration if it wasn't discovered first. I need no further assistance but will let you close this, in case further information is needed for a potential bug.

milanmeu commented 3 years ago

Hi @IIAIronWolf,

The setup is aborted in the event of a communication or authentication error during setup. It will also abort if you try to set up the device multiple times. I've tested the integration and everything seems to work for my Nanoleaf Canvas.

The fix was to restart home assistant yet again (about 3 times) and wait for Nanoleaf to be automatically discovered.

A Home Assistant restart is not fun, so since 2021.9 you no longer have to restart for a Nanoleaf discovery, a new search is performed every few minutes.

the integration just says 'Aborted.'

Was there more information in the abort popup? If not, in which language do you use Home Assistant, maybe something went wrong with the translations?

Anything in the logs that might be useful for us?

2021-09-04 19:26:39 ERROR (SyncWorker_3) [pynanoleaf.pynanoleaf] Nanoleaf is not allowing new tokens,
please make sure to press and hold the on/off button
on your device for 5 seconds until the LED starts flashing
in a pattern.

The token error log will be removed in later version. This is made by an external library and I don't have much control over it.

Additional information

These are Nanoleaf Light Panels

I only have a Nanoleaf Canvas. The config flow has been tested on a Canvas and a Shapes before release.

I need no further assistance but will let you close this, in case further information is needed for a potential bug.

I'm glad to hear that the issue has been resolved.

Thanks for your feedback and have a nice day.