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 repeats a touch event every time the device becomes unavailable and returns #125088

Open agoode opened 2 months ago

agoode commented 2 months ago

The problem

The last Nanoleaf touch event (swipe left, swipe right, etc) is repeated whenever Home Assistant disconnects and reconnects to the device. I set up a touch event "swipe left" -> "turn off lights" and after testing it once, the lights kept turning off every few minutes.

What version of Home Assistant Core has the issue?

core-2024.8.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/

Diagnostics information

config_entry-nanoleaf-01J376B0M0RXP6BPNXHJFWEYFS.json

Screenshot 2024-09-02 at 10 11 49

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 2 months ago

Hey there @milanmeu, @joostlek, 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!

Code owner commands Code owners of `nanoleaf` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign nanoleaf` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


nanoleaf documentation nanoleaf source (message by IssueLinks)

joostlek commented 2 months ago

Could it be how you set up your automation?

Smarthome-Creator commented 2 months ago

@agoode , can you tell how you setup your Shapes in HA? My HA does not recognize touch events on the shapes. Only when it feels like it. The last time was two weeks ago, but I didn't do anything then.

I tried it again today and nothing happens, regardless of whether I swipe up, down, right or left.

agoode commented 2 months ago

The device has to be on, and the touch needs to be quite firm. The streaming version of the touch API (not used by HA) will report detailed touch information which would include light touches.

I chatted with one of the developers on their forum and there are a few firmware bugs that have been fixed and at least some not yet fixed, so I would try updating to the latest firmware before trying anything else.

Smarthome-Creator commented 2 months ago

@agoode Sometimes miracles just happen. I tested it again today and suddenly it works as if it had always worked.

I found the "bug". After a firmware update it's needed to restart the Nanoleaf Integration and than it works how it should.