Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.03k stars 1.67k forks source link

Gledopto GL-B-007P 6W Bulbs (firmware-version: 20451233) - Mixed color channels (red/green/blue) #23697

Open chris-nite opened 2 months ago

chris-nite commented 2 months ago

What happened?

Since the past few updates of Zigbee2MQTT and/or the last Gledopto OTA-update all of the color channels on my Gledopto bulbs are mixed up completely. When i choose the following colors in their strongest form through the Zigbee2MQTT WebUI on the device tab (X/Y-Values), all of the colors go way somewhere else: picked red --> visible green color picked green --> visible blue color picked blue --> visible red color additionally if i pick purple the device tab shows "black", but the lamp itself still emits colorful light. The problem itself exists on all eight bulbs i got, which all got the current available OTA-firmware. Are there any options i can choose to set or swap the color channels on my own for the rgb to x/y conversion?

What did you expect to happen?

The light color should be emitted by the lamp as chosen by the selected values.

How to reproduce it (minimal and precise)

Choose one color and look at the light. :-)

Zigbee2MQTT version

1.39.1

Adapter firmware version

20210708

Adapter

Sonoff_Zigbee_3.0_USB_Dongle_Plus

Setup

Homeassistant OS on Intel NUC with Zigbee2MQTT installed as Container (Standard setup)

Debug log

[2024-08-22 10:32:02] debug:    z2m:mqtt: Received MQTT message on 'zigbee2mqtt/LT Terasse rechts/set' with data '{"color":{"hex":"#FF0018"}}'
[2024-08-22 10:32:02] debug:    z2m: Skipping state because of Home Assistant
[2024-08-22 10:32:02] debug:    z2m: Publishing 'set' 'color' to 'LT Terasse rechts'
[2024-08-22 10:32:02] debug:    zh:controller:endpoint: ZCL command 0xa4c138f055954e19/11 lightingColorCtrl.moveToColor({"transtime":4,"colorx":45494,"colory":19418}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"srcEndpoint":null,"reservedBits":0,"manufacturerCode":null,"transactionSequenceNumber":null,"writeUndiv":false})
[2024-08-22 10:32:02] debug:    zh:zstack: sendZclFrameToEndpointInternal 0xa4c138f055954e19:32993/11 (0,0,1)
[2024-08-22 10:32:02] debug:    zh:zstack:znp: SREQ: --> AF - dataRequest - {"dstaddr":32993,"destendpoint":11,"srcendpoint":1,"clusterid":768,"transid":13,"options":0,"radius":30,"len":9,"data":{"type":"Buffer","data":[1,231,7,182,177,218,75,4,0]}}
[2024-08-22 10:32:02] debug:    zh:zstack:unpi:writer: --> frame [254,19,36,1,225,128,11,1,0,3,13,0,30,9,1,231,7,182,177,218,75,4,0,55]
[2024-08-22 10:32:02] debug:    zh:zstack:unpi:parser: <-- [254,1,100,1,0,100]
[2024-08-22 10:32:02] debug:    zh:zstack:unpi:parser: --- parseNext [254,1,100,1,0,100]
[2024-08-22 10:32:02] debug:    zh:zstack:unpi:parser: --> parsed 1 - 3 - 4 - 1 - [0] - 100
[2024-08-22 10:32:02] debug:    zh:zstack:znp: SRSP: <-- AF - dataRequest - {"status":0}
[2024-08-22 10:32:02] debug:    zh:zstack:unpi:parser: --- parseNext []
[2024-08-22 10:32:02] debug:    zh:zstack:unpi:parser: <-- [254,3,68,128,0,1,13,203]
[2024-08-22 10:32:02] debug:    zh:zstack:unpi:parser: --- parseNext [254,3,68,128,0,1,13,203]
[2024-08-22 10:32:02] debug:    zh:zstack:unpi:parser: --> parsed 3 - 2 - 4 - 128 - [0,1,13] - 203
[2024-08-22 10:32:02] debug:    zh:zstack:znp: AREQ: <-- AF - dataConfirm - {"status":0,"endpoint":1,"transid":13}
[2024-08-22 10:32:02] debug:    zh:zstack:unpi:parser: --- parseNext []
[2024-08-22 10:32:02] debug:    zh:zstack:unpi:parser: <-- [254,25,68,129,0,0,0,3,225,128,11,1,0,63,0,224,166,227,0,0,5,24,231,11,7,0,14,205,28,7]
[2024-08-22 10:32:02] debug:    zh:zstack:unpi:parser: --- parseNext [254,25,68,129,0,0,0,3,225,128,11,1,0,63,0,224,166,227,0,0,5,24,231,11,7,0,14,205,28,7]
[2024-08-22 10:32:02] debug:    zh:zstack:unpi:parser: --> parsed 25 - 2 - 4 - 129 - [0,0,0,3,225,128,11,1,0,63,0,224,166,227,0,0,5,24,231,11,7,0,14,205,28] - 7
[2024-08-22 10:32:02] debug:    zh:zstack:znp: AREQ: <-- AF - incomingMsg - {"groupid":0,"clusterid":768,"srcaddr":32993,"srcendpoint":11,"dstendpoint":1,"wasbroadcast":0,"linkquality":63,"securityuse":0,"timestamp":14919392,"transseqnumber":0,"len":5,"data":{"type":"Buffer","data":[24,231,11,7,0]}}
[2024-08-22 10:32:02] debug:    zh:controller: Received payload: clusterID=768, address=32993, groupID=0, endpoint=11, destinationEndpoint=1, wasBroadcast=false, linkQuality=63, frame={"header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":true,"reservedBits":0},"manufacturerCode":null,"transactionSequenceNumber":231,"commandIdentifier":11},"payload":{"cmdId":7,"statusCode":0},"command":{"ID":11,"name":"defaultRsp","parameters":[{"name":"cmdId","type":32},{"name":"statusCode","type":32}]}}
[2024-08-22 10:32:02] debug:    zh:zstack:unpi:parser: --- parseNext []
[2024-08-22 10:32:02] info:     z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/LT Terasse rechts', payload '{"brightness":254,"color":{"x":0.6942,"y":0.2963},"color_mode":"xy","color_temp":158,"linkquality":63,"power_on_behavior":null,"state":"ON","update":{"installed_version":604057601,"latest_version":604057601,"state":"idle"},"update_available":null}'
[2024-08-22 10:32:04] debug:    zh:zstack:unpi:parser: <-- [254,32,68,129,0,0,25,0,17,194,11,1,0,66,0,23,86,229,0,0,12,1,217,1,0,79,18,25,20,1,48,1,35,17,194,29,155]
[2024-08-22 10:32:04] debug:    zh:zstack:unpi:parser: --- parseNext [254,32,68,129,0,0,25,0,17,194,11,1,0,66,0,23,86,229,0,0,12,1,217,1,0,79,18,25,20,1,48,1,35,17,194,29,155]
[2024-08-22 10:32:04] debug:    zh:zstack:unpi:parser: --> parsed 32 - 2 - 4 - 129 - [0,0,25,0,17,194,11,1,0,66,0,23,86,229,0,0,12,1,217,1,0,79,18,25,20,1,48,1,35,17,194,29] - 155
[2024-08-22 10:32:04] debug:    zh:zstack:znp: AREQ: <-- AF - incomingMsg - {"groupid":0,"clusterid":25,"srcaddr":49681,"srcendpoint":11,"dstendpoint":1,"wasbroadcast":0,"linkquality":66,"securityuse":0,"timestamp":15029783,"transseqnumber":0,"len":12,"data":{"type":"Buffer","data":[1,217,1,0,79,18,25,20,1,48,1,35]}}
[2024-08-22 10:32:04] debug:    zh:controller: Received payload: clusterID=25, address=49681, groupID=0, endpoint=11, destinationEndpoint=1, wasBroadcast=false, linkQuality=66, frame={"header":{"frameControl":{"frameType":1,"manufacturerSpecific":false,"direction":0,"disableDefaultResponse":false,"reservedBits":0},"manufacturerCode":null,"transactionSequenceNumber":217,"commandIdentifier":1},"payload":{"fieldControl":0,"manufacturerCode":4687,"imageType":5145,"fileVersion":587280385},"command":{"ID":1,"response":2,"parameters":[{"name":"fieldControl","type":32},{"name":"manufacturerCode","type":33},{"name":"imageType","type":33},{"name":"fileVersion","type":35}],"name":"queryNextImageRequest"}}
[2024-08-22 10:32:04] debug:    zh:zstack:unpi:parser: --- parseNext []
chris-nite commented 1 week ago

For your information, the situation still persists with the current ZStack-Version 20240710 and Zigbee2MQTT-Version 1.40.2. Are there any ideas, how i can adress this issue on my own?