zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

GLEDOPTO GL-C-007-2ID not updating state correctly when changed by external device

Open shawly opened this issue 1 year ago • 2 comments

What happened?

I've bound my IKEA STYRBAR to my GLEDOPTO GL-C-007-2ID LED controllers RGB endpoint so I can turn it on and off.

But when I turn it on or off the state is not reflected on the device in Z2M or in MQTT.

Interestingly, a log message with the change is produced and the LED controllers state does change to on, but the RGB endpoints (ID 11) genOnOff cluster stays off.

Debug log message:

Debug 2024-01-24 15:42:43Received Zigbee message from 'Living room LED Controller', type 'readResponse', cluster 'genOnOff', data '{"onOff":1}' from endpoint 11 with groupID 0

And the controllers state:

{
    "brightness": 162,
    "brightness_rgb": 49,
    "brightness_white": 162,
    "color": {
        "h": 24,
        "hue": 24,
        "s": 100,
        "saturation": 100,
        "x": 0.555,
        "y": 0.422
    },
    "color_mode": "xy",
    "color_mode_rgb": "xy",
    "color_rgb": {
        "hue": 24,
        "saturation": 100,
        "x": 0.555,
        "y": 0.422
    },
    "color_temp": 532,
    "color_temp_rgb": 532,
    "last_seen": "2024-01-24T15:42:43+01:00",
    "linkquality": 72,
    "state": "ON",
    "state_rgb": "OFF",
    "state_white": "OFF"
}

What did you expect to happen?

That the state change is reflected in the state_rgb property

How to reproduce it (minimal and precise)

Bind STYRBAR to LED controllers RGB or White endpoint Turn it on or off

Zigbee2MQTT version

1.35.1

Adapter firmware version

20230507

Adapter

zzh

Setup

Docker

Debug log

zigbee2mqtt  | Zigbee2MQTT:debug 2024-01-24 15:50:15: Received Zigbee message from 'STYRBAR', type 'commandOff', cluster 'genOnOff', data '{}' from endpoint 1 with groupID 0
zigbee2mqtt  | Zigbee2MQTT:info  2024-01-24 15:50:15: MQTT publish: topic 'zigbee2mqtt/STYRBAR', payload '{"action":"off","battery":85,"last_seen":"2024-01-24T15:50:15+01:00","linkquality":91,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":null}'
zigbee2mqtt  | Zigbee2MQTT:info  2024-01-24 15:50:15: MQTT publish: topic 'zigbee2mqtt/STYRBAR', payload '{"action":"","battery":85,"last_seen":"2024-01-24T15:50:15+01:00","linkquality":91,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":null}'
zigbee2mqtt  | Zigbee2MQTT:info  2024-01-24 15:50:15: MQTT publish: topic 'zigbee2mqtt/STYRBAR/action', payload 'off'
zigbee2mqtt  | Zigbee2MQTT:debug 2024-01-24 15:50:16: Received Zigbee message from 'Living room LED Controller', type 'readResponse', cluster 'genOnOff', data '{"onOff":0}' from endpoint 11 with groupID 0
zigbee2mqtt  | Zigbee2MQTT:info  2024-01-24 15:50:16: MQTT publish: topic 'zigbee2mqtt/Living room LED Controller', payload '{"brightness":162,"brightness_rgb":49,"brightness_white":162,"color":{"h":24,"hue":24,"s":100,"saturation":100,"x":0.555,"y":0.422},"color_mode":"xy","color_mode_rgb":"xy","color_rgb":{"hue":24,"saturation":100,"x":0.555,"y":0.422},"color_temp":532,"color_temp_rgb":532,"last_seen":"2024-01-24T15:50:16+01:00","linkquality":72,"state":"OFF","state_rgb":"OFF","state_white":"OFF"}'
zigbee2mqtt  | Zigbee2MQTT:info  2024-01-24 15:50:16: MQTT publish: topic 'zigbee2mqtt/Living room LED Controller/rgb', payload '{"brightness":49,"color":{"hue":24,"saturation":100,"x":0.555,"y":0.422},"color_mode":"xy","color_temp":532,"state":"OFF"}'
zigbee2mqtt  | Zigbee2MQTT:info  2024-01-24 15:50:16: MQTT publish: topic 'zigbee2mqtt/Living room LED Controller/white', payload '{"brightness":162,"state":"OFF"}'
zigbee2mqtt  | Zigbee2MQTT:debug 2024-01-24 15:50:17: Received Zigbee message from 'STYRBAR', type 'commandOn', cluster 'genOnOff', data '{}' from endpoint 1 with groupID 0
zigbee2mqtt  | Zigbee2MQTT:info  2024-01-24 15:50:17: MQTT publish: topic 'zigbee2mqtt/STYRBAR', payload '{"action":"on","battery":85,"last_seen":"2024-01-24T15:50:17+01:00","linkquality":83,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":null}'
zigbee2mqtt  | Zigbee2MQTT:info  2024-01-24 15:50:17: MQTT publish: topic 'zigbee2mqtt/STYRBAR', payload '{"action":"","battery":85,"last_seen":"2024-01-24T15:50:17+01:00","linkquality":83,"update":{"installed_version":65572,"latest_version":581,"state":"idle"},"update_available":null}'
zigbee2mqtt  | Zigbee2MQTT:info  2024-01-24 15:50:17: MQTT publish: topic 'zigbee2mqtt/STYRBAR/action', payload 'on'
zigbee2mqtt  | Zigbee2MQTT:debug 2024-01-24 15:50:18: Received Zigbee message from 'Living room LED Controller', type 'readResponse', cluster 'genOnOff', data '{"onOff":1}' from endpoint 11 with groupID 0
zigbee2mqtt  | Zigbee2MQTT:info  2024-01-24 15:50:18: MQTT publish: topic 'zigbee2mqtt/Living room LED Controller', payload '{"brightness":162,"brightness_rgb":49,"brightness_white":162,"color":{"h":24,"hue":24,"s":100,"saturation":100,"x":0.555,"y":0.422},"color_mode":"xy","color_mode_rgb":"xy","color_rgb":{"hue":24,"saturation":100,"x":0.555,"y":0.422},"color_temp":532,"color_temp_rgb":532,"last_seen":"2024-01-24T15:50:18+01:00","linkquality":69,"state":"ON","state_rgb":"OFF","state_white":"OFF"}'
zigbee2mqtt  | Zigbee2MQTT:info  2024-01-24 15:50:18: MQTT publish: topic 'zigbee2mqtt/Living room LED Controller/rgb', payload '{"brightness":49,"color":{"hue":24,"saturation":100,"x":0.555,"y":0.422},"color_mode":"xy","color_temp":532,"state":"OFF"}'
zigbee2mqtt  | Zigbee2MQTT:info  2024-01-24 15:50:18: MQTT publish: topic 'zigbee2mqtt/Living room LED Controller/white', payload '{"brightness":162,"state":"OFF"}'

shawly avatar Jan 24 '24 14:01 shawly

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days

github-actions[bot] avatar Jul 23 '24 00:07 github-actions[bot]

Still an issue

shawly avatar Jul 23 '24 16:07 shawly

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days

github-actions[bot] avatar Dec 30 '24 00:12 github-actions[bot]

No stale

shawly avatar Dec 30 '24 10:12 shawly

I have the same issue.

jannesaarinen avatar Dec 30 '24 12:12 jannesaarinen

You can configure reporting for the genOnOff onOff attribute via the reporting tab

Koenkk avatar Dec 30 '24 20:12 Koenkk

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Mar 02 '25 00:03 github-actions[bot]