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
69.75k stars 28.91k forks source link

Nanoleaf Matter thread lightstrip sluggish color translation #119981

Open nchieffo opened 2 weeks ago

nchieffo commented 2 weeks ago

The problem

When I invoke the light.turn on on my Nanoleaf Lightstrip Matter, the light changes color in a super sluggish way, by performing non-smooth steps. This happens both if I use and don't use a transition in seconds. This does not happen when I use the Nanoleaf APP (but I guess it uses bluetooth to connect)

What version of Home Assistant Core has the issue?

core-2024.6.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

Matter

Link to integration documentation on our website

No response

Diagnostics information

matter server log.txt open thread border router log.txt

Example YAML snippet

alias: New Script
sequence:
  - service: light.turn_on
    target:
      entity_id: light.barra_led_bagno
    data:
      transition: 2
      color_temp: 255
  - service: light.turn_on
    target:
      entity_id: light.barra_led_bagno
    data:
      transition: 2
      color_temp: 400

Anything in the logs that might be useful for us?

No response

Additional information

Nanoleaf lightstrip

Firmware: 3.6.196
Hardware: 4.1.8

Thread USB key ZB-GW04 (v1.2)

Flashed default firmware using https://darkxst.github.io/silabs-firmware-builder/
Openthread RCP 2.3.1.0

Open Thread Border Router config

device: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
baudrate: "230400"
flow_control: true
autoflash_firmware: true
otbr_log_level: notice
firewall: true
nat64: false
home-assistant[bot] commented 2 weeks ago

Hey there @home-assistant/matter, mind taking a look at this issue as it has been labeled with an integration (matter) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `matter` 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 matter` 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)


matter documentation matter source (message by IssueLinks)

marcelveldt commented 2 weeks ago

This is a device issue, not a HA issue. Please report the issue to Nanoleaf.

nchieffo commented 1 week ago

I don't think it's a device issue.

The reason why I say that is because if I control the light with my nanoleaf APP having Bluetooth disabled on my phone, color transitions are smooth.

It seems home assistant may use a different way to change the color than the Nanoleaf app.

Do you still believe I should open an issue with nanoleaf itself?

Thanks for your support

marcelveldt commented 1 week ago

Home Assistant is the only controller actually implementing transitions and we figured out that some devices really have difficulties with that, while for others it works great. So far we found out that its troublesome on ESP32 based devices, running the 1.0 version of the SDK.

As this is not an ESP32 based device but Thread it should work fine, at least it works for the other Nanoleaf lights we have tested, such as the E27 and GU10 bulbs.

Can you provide a bit more detail on what is sluggish exactly ? Only a color to color transition or also a turn on/off ? What about brightness changes ?

nchieffo commented 1 week ago

I think I can take a video of the color transition which will clarify what happens: basically instead of changing from color A to B in a straight line in the color 'globe', it starts to move around with a curved line following a strange trajectory, causing weired color changes to the light. https://github.com/home-assistant/core/assets/632266/3a476a16-0b78-4976-8032-a316a5e8f1ce

See what happens when changing via nanoleaf app, HASSIO is able to track color change even if it's done via nanoleaf https://github.com/home-assistant/core/assets/632266/ab3b7584-cf00-4b22-b4d2-bae79f0abb32

Similar thing when changing TEMPERATURE. In the following video there's a comparison between nanoleaf APP and hassio https://github.com/home-assistant/core/assets/632266/f6c5be67-a7fd-418b-98a4-c4d1bab84e7e

Turn on from off is smooth only if the color is the same. If I'm in red, switch off, and turn on with blue, I still get the strange color route

Brightness change seems OK