Lights don't get their color state updated on reports

Open Beginner friendly
#855 5 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
85/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
python
Domain
backend

Research direction

Start in zha/application/platforms/light/__init__.py, where event listeners for on/off and level clusters are configured around line 1015, while the color cluster is initialized around line 1000 without matching listeners. Add the same event listener setup for the color cluster to forward color change reports to Home Assistant, then verify the light's color state updates correctly when the Zigbee device reports a change.

Written by the indexing model from the issue text.

Description

entities

Currently, it seems that color-change reports for light endpoints aren't properly handled.
I'm trying to let my Zigbee device report its changed color, but (in my case) Home Assistant doesn't update its state.

For the on/off and level clusters, event listeners are properly created.
However, for color clusters they aren't, despite the cluster being created inside the constructor.

I assume this is the root cause of the behavior I'm seeing, but I didn't get to verify it yet.

Is there a reason color clusters don't get event listeners assigned or is that eventually a bug?

Dominant language
Python
Stars
96
Forks
84
Avg merge
2d 4h
Merged PRs (30d)
30

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from zigpy/zha

All issues in zigpy/zha

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.