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
71.11k stars 29.79k forks source link

deCONZ light group does not update light attributes when group member light is disabled. #111288

Closed ACrazyConcept closed 6 months ago

ACrazyConcept commented 6 months ago

The problem

I have a light group created in deCONZ with one member. If I disable the light device or only the light entity in HA, the light group does not update it's color attributes. The light does change color. When the member light is enabled everything updates fine when changing the light group. I have tried to put debug log for one example where the member light is disabled and one example where the member light is enabled. Both time I was trying to change the color of the light group. Light id: 71 Light group id: 65

What version of Home Assistant Core has the issue?

core-2024.1.6

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

deCONZ

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-02-24 15:02:19.873 DEBUG (MainThread) [pydeconz.gateway] Sending "put" "{'bri': 254, 'on': True, 'transitiontime': 150}" to "http://10.0.0.144:80/api/51BF1A295E/groups/65/action"
2024-02-24 15:02:19.875 DEBUG (MainThread) [pydeconz.gateway] HTTP request response: [{'success': {'/groups/65/action/on': True}},
{'success': {'/groups/65/action/bri': 254}}]
2024-02-24 15:02:20.323 DEBUG (MainThread) [pydeconz.websocket] {"attr":{"colorcapabilities":0,"ctmax":65279,"ctmin":0,"id":"71","lastannounced":"2024-01-20T18:11:12Z","lastseen":"2024-02-24T14:02Z","manufacturername":"Philips","modelid":"LCL001","name":"Extended color light 61 Hue Sony","swversion":"1.93.7","type":"Extended color light","uniqueid":"00:17:88:01:09:13:06:c0-0b"},"e":"changed","id":"71","r":"lights","t":"event","uniqueid":"00:17:88:01:09:13:06:c0-0b"}
2024-02-24 15:02:32.476 DEBUG (MainThread) [pydeconz.gateway] Sending "put" "{'ct': 207, 'on': True}" to "http://10.0.0.144:80/api/51BF1A295E/groups/65/action"
2024-02-24 15:02:32.491 DEBUG (MainThread) [pydeconz.gateway] HTTP request response: [{'success': {'/groups/65/action/on': True}},
{'success': {'/groups/65/action/ct': 207}}]
2024-02-24 15:02:32.492 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"71","r":"lights","state":{"alert":"none","bri":254,"colormode":"ct","ct":207,"effect":"none","hue":7998,"on":true,"reachable":true,"sat":170,"xy":[0.4781,0.4138]},"t":"event","uniqueid":"00:17:88:01:09:13:06:c0-0b"}
2024-02-24 15:02:33.278 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"71","r":"lights","state":{"alert":"none","bri":254,"colormode":"ct","ct":207,"effect":"none","hue":40765,"on":true,"reachable":true,"sat":35,"xy":[0.3498,0.3589]},"t":"event","uniqueid":"00:17:88:01:09:13:06:c0-0b"}

----

2024-02-24 15:11:24.431 DEBUG (MainThread) [pydeconz.gateway] Sending "put" "{'bri': 71, 'on': True}" to "http://10.0.0.144:80/api/51BF1A295E/groups/65/action"
2024-02-24 15:11:24.434 DEBUG (MainThread) [pydeconz.gateway] HTTP request response: [{'success': {'/groups/65/action/on': True}},
{'success': {'/groups/65/action/bri': 71}}]
2024-02-24 15:11:24.435 DEBUG (MainThread) [pydeconz.websocket] {"e":"changed","id":"71","r":"lights","state":{"alert":"none","bri":71,"colormode":"ct","ct":207,"effect":"none","hue":40765,"on":true,"reachable":true,"sat":35,"xy":[0.3498,0.3589]},"t":"event","uniqueid":"00:17:88:01:09:13:06:c0-0b"}
2024-02-24 15:11:25.173 DEBUG (MainThread) [pydeconz.websocket] {"attr":{"colorcapabilities":0,"ctmax":65279,"ctmin":0,"id":"71","lastannounced":"2024-01-20T18:11:12Z","lastseen":"2024-02-24T14:11Z","manufacturername":"Philips","modelid":"LCL001","name":"Extended color light 61 Hue Sony","swversion":"1.93.7","type":"Extended color light","uniqueid":"00:17:88:01:09:13:06:c0-0b"},"e":"changed","id":"71","r":"lights","t":"event","uniqueid":"00:17:88:01:09:13:06:c0-0b"}

Additional information

deCONZ light config:

    "71": {
        "capabilities": {
            "alerts": [
                "none",
                "select",
                "lselect"
            ],
            "color": {
                "ct": {
                    "max": 65279,
                    "min": 0
                },
                "modes": []
            }
        },
        "colorcapabilities": 0,
        "config": {
            "groups": [
                "0",
                "65",
                "7",
                "61",
                "45238",
                "167"
            ]
        },
        "ctmax": 65279,
        "ctmin": 0,
        "etag": "cf7f251f31c2495d77395d2c11ebe624",
        "hascolor": true,
        "lastannounced": "2024-01-20T18:11:12Z",
        "lastseen": "2024-02-24T14:22Z",
        "manufacturername": "Philips",
        "modelid": "LCL001",
        "name": "Extended color light 61 Hue Sony",
        "state": {
            "alert": "none",
            "bri": 254,
            "colormode": "ct",
            "ct": 207,
            "effect": "none",
            "hue": 40765,
            "on": true,
            "reachable": true,
            "sat": 35,
            "xy": [
                0.3498,
                0.3589
            ]
        },
        "swversion": "1.93.7",
        "type": "Extended color light",
        "uniqueid": "00:17:88:01:09:13:06:c0-0b"
    },

deCONZ group config:

    "65": {
        "action": {
            "alert": "none",
            "bri": 254,
            "colormode": "ct",
            "ct": 207,
            "effect": "none",
            "hue": 0,
            "on": true,
            "sat": 127,
            "scene": null,
            "xy": [
                0.16099794003204396,
                0.056992446784161134
            ]
        },
        "devicemembership": [],
        "etag": "0f5185d984e30724872027ddee844fb6",
        "id": "65",
        "lights": [
            "71"
        ],
        "name": "Sony XF90",
        "scenes": [],
        "state": {
            "all_on": true,
            "any_on": true
        },
        "type": "LightGroup"
    },
home-assistant[bot] commented 6 months ago

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

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


deconz documentation deconz source (message by IssueLinks)

Kane610 commented 6 months ago

Today it works like this that the light entity will perform an update of data in the group so if you disable the entity of course the group does not get updated. What do you want to achieve by disabling the entity?

ACrazyConcept commented 6 months ago

Ok I see. I had disabled some of the light entities which I have in deconz light groups since I only use the groups for control. It seems a bit redundant to have both the light and the light group as HA entities. I can still control the lights just fine with only the group though. The only difference is that the attributes are not updated. But if this is by design no big deal.

Kane610 commented 6 months ago

It's the current design. I haven't been aware of the use case of users wanting to disable the light entity so haven't considered that