Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colortemp not working in GL-C-009 #277

Closed
ericsboro opened this issue Mar 30, 2019 · 26 comments
Closed

Colortemp not working in GL-C-009 #277

ericsboro opened this issue Mar 30, 2019 · 26 comments

Comments

@ericsboro
Copy link

Hi all,

I just realized that Colortemp is not working in GL-C-009. I have 2 separate led strips connected to dedicated connectors on module. strip is on 3528 leds.
Dimmer and OnOff works perfectly.

When i change in colortemp in Yahka — number reflects in Objects (from 140 to 500), but both LED strips keep shining without chenges. The same is when in manually change value in Objects.

In logs dimmer appears as "GL-C-006/GL-C-009 - Gledopto Zigbee LED controller WW/CW Dimmer (Router)" — which i believe is correct.

[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

Many thanks in advance

@asgothian
Copy link
Collaborator

can you please set the adapter to debug and post the message which comes up when you try to set the color temperature ?

A

@ericsboro
Copy link
Author

Hi @asgothian, i did some play-around with few values:

2019-03-31 13:16:41.655 - debug: zigbee.0 new device 0x00124b001d10f2ed joining the network!
2019-03-31 13:16:41.670 - info: zigbee.0 new dev 0x00124b001d10f2ed 25259 GL-C-009
2019-03-31 13:16:41.675 - debug: zigbee.0 handleMessage. {"type":"devStatus","endpoints":[{"device":{"_id":21,"type":"Router","ieeeAddr":"0x00124b001d10f2ed","nwkAddr":25259,"manufId":0,"manufName":"GLEDOPTO","powerSource":"Mains (single phase)","modelId":"GL-C-009","epList":[11,13],"status":"online","joinTime":1554027370,"endpoints":{"11":"[Circular]","13":{"device":"[Circular]","profId":49246,"epId":13,"devId":256,"inClusterList":[4096],"outClusterList":[4096],"clusters":{"zapp":null,"lightLink":{"dir":{"cid":"lightLink","sid":"dir","value":3},"attrs":{"cid":"lightLink","sid":"attrs"}}},"onAfDataConfirm":null,"onAfReflectError":null,"onAfIncomingMsg":null,"onAfIncomingMsgExt":null,"onZclFoundation":null,"onZclFunctional":null}}},"profId":49246,"epId":11,"devId":256,"inClusterList":[0,3,4,5,6,8,768],"outClusterList":[],"clusters":{"zapp":null,"genBasic":{"dir":{"cid":"genBasic","sid":"dir","value":1},"attrs":{"cid":"genBasic","sid":"attrs"}},"genIdentify":{"dir":{"cid":"genIdentify","sid":"dir","value":1},"attrs":{"cid":"genIdentify","sid":"attrs"}},"genGroups":{"dir":{"cid":"genGroups","sid":"dir","value":1},"attrs":{"cid":"genGroups","sid":"attrs"}},"genScenes":{"dir":{"cid":"genScenes","sid":"dir","value":1},"attrs":{"cid":"genScenes","sid":"attrs"}},"genOnOff":{"dir":{"cid":"genOnOff","sid":"dir","value":1},"attrs":{"cid":"genOnOff","sid":"attrs"}},"genLevelCtrl":{"dir":{"cid":"genLevelCtrl","sid":"dir","value":1},"attrs":{"cid":"genLevelCtrl","sid":"attrs"}},"lightingColorCtrl":{"dir":{"cid":"lightingColorCtrl","sid":"dir","value":1},"attrs":{"cid":"lightingColorCtrl","sid":"attrs"}}},"onAfDataConfirm":null,"onAfReflectError":null,"onAfIncomingMsg":null,"onAfIncomingMsgExt":null,"onZclFoundation":null,"onZclFunctional":null},"[Circular]"],"data":"online"}
2019-03-31 13:16:41.676 - debug: zigbee.0 Message without data cluster!
2019-03-31 13:16:41.681 - debug: zigbee.0 User stateChange zigbee.0.info.pairingMessage {"val":"New device joined 0x00124b001d10f2ed model GL-C-009","ack":false,"ts":1554027401673,"q":0,"from":"system.adapter.zigbee.0","lc":1554027401673}
2019-03-31 13:16:41.696 - debug: zigbee.0 Schedule device config for 0x00124b001d10f2ed GL-C-009
2019-03-31 13:16:48.968 - debug: zigbee.0 Check online 0x00124b001d10f2ed. 0x00124b001d10f2ed
2019-03-31 13:16:49.156 - debug: zigbee.0 Device 0x00124b001d10f2ed is available
2019-03-31 13:16:49.157 - debug: zigbee.0 Device 0x00124b001d10f2ed incoming event:{"available":true}
2019-03-31 13:16:49.157 - debug: zigbee.0 Publish {"available":true}
2019-03-31 13:17:00.619 - debug: zigbee.0 User stateChange zigbee.0.00124b001d10f2ed.colortemp {"val":400,"ack":false,"ts":1554027420614,"q":0,"from":"system.adapter.admin.0","lc":1554027420614}
2019-03-31 13:17:00.646 - debug: zigbee.0 publishFromState: deviceId=0x00124b001d10f2ed, message={"cid":"lightingColorCtrl","cmd":"moveToColorTemp","cmdType":"functional","zclData":{"colortemp":400,"transtime":0},"cfg":{"manufSpec":0,"disDefaultRsp":0},"readAfterWriteTime":0}
2019-03-31 13:17:00.669 - debug: zigbee.0 Zigbee publish to '0x00124b001d10f2ed', lightingColorCtrl - cmd moveToColorTemp - payload {"colortemp":400,"transtime":0} - cfg {"manufSpec":0,"disDefaultRsp":0} - endpoint 11
2019-03-31 13:17:00.765 - debug: zigbee.0 Device 0x00124b001d10f2ed incoming event:{"groupid":0,"clusterid":768,"srcaddr":25259,"srcendpoint":11,"dstendpoint":1,"wasbroadcast":0,"linkquality":86,"securityuse":0,"timestamp":6005817,"transseqnumber":0,"len":5,"data":{"0":24,"1":45,"2":11,"3":10,"4":0},"zclMsg":{"frameCntl":{"frameType":0,"manufSpec":0,"direction":1,"disDefaultRsp":1},"manufCode":0,"seqNum":45,"cmdId":"defaultRsp","payload":{"cmdId":10,"statusCode":0}}}
2019-03-31 13:17:00.766 - debug: zigbee.0 Publish {"linkquality":86}
2019-03-31 13:17:00.869 - debug: zigbee.0 Device 0x00124b001d10f2ed incoming event:{"groupid":0,"clusterid":768,"srcaddr":25259,"srcendpoint":11,"dstendpoint":1,"wasbroadcast":0,"linkquality":86,"securityuse":0,"timestamp":6006142,"transseqnumber":0,"len":5,"data":{"0":24,"1":46,"2":11,"3":12,"4":130},"zclMsg":{"frameCntl":{"frameType":0,"manufSpec":0,"direction":1,"disDefaultRsp":1},"manufCode":0,"seqNum":46,"cmdId":"defaultRsp","payload":{"cmdId":12,"statusCode":130}}}
2019-03-31 13:17:00.870 - debug: zigbee.0 Publish {"linkquality":86}
2019-03-31 13:17:03.744 - debug: zigbee.0 User stateChange zigbee.0.00124b001d10f2ed.colortemp {"val":200,"ack":false,"ts":1554027423739,"q":0,"from":"system.adapter.admin.0","lc":1554027423739}
2019-03-31 13:17:03.776 - debug: zigbee.0 publishFromState: deviceId=0x00124b001d10f2ed, message={"cid":"lightingColorCtrl","cmd":"moveToColorTemp","cmdType":"functional","zclData":{"colortemp":200,"transtime":0},"cfg":{"manufSpec":0,"disDefaultRsp":0},"readAfterWriteTime":0}
2019-03-31 13:17:03.800 - debug: zigbee.0 Zigbee publish to '0x00124b001d10f2ed', lightingColorCtrl - cmd moveToColorTemp - payload {"colortemp":200,"transtime":0} - cfg {"manufSpec":0,"disDefaultRsp":0} - endpoint 11
2019-03-31 13:17:03.892 - debug: zigbee.0 Device 0x00124b001d10f2ed incoming event:{"groupid":0,"clusterid":768,"srcaddr":25259,"srcendpoint":11,"dstendpoint":1,"wasbroadcast":0,"linkquality":84,"securityuse":0,"timestamp":6015610,"transseqnumber":0,"len":5,"data":{"0":24,"1":47,"2":11,"3":10,"4":0},"zclMsg":{"frameCntl":{"frameType":0,"manufSpec":0,"direction":1,"disDefaultRsp":1},"manufCode":0,"seqNum":47,"cmdId":"defaultRsp","payload":{"cmdId":10,"statusCode":0}}}
2019-03-31 13:17:03.893 - debug: zigbee.0 Publish {"linkquality":84}
2019-03-31 13:17:03.977 - debug: zigbee.0 Device 0x00124b001d10f2ed incoming event:{"groupid":0,"clusterid":768,"srcaddr":25259,"srcendpoint":11,"dstendpoint":1,"wasbroadcast":0,"linkquality":86,"securityuse":0,"timestamp":6015871,"transseqnumber":0,"len":5,"data":{"0":24,"1":48,"2":11,"3":12,"4":130},"zclMsg":{"frameCntl":{"frameType":0,"manufSpec":0,"direction":1,"disDefaultRsp":1},"manufCode":0,"seqNum":48,"cmdId":"defaultRsp","payload":{"cmdId":12,"statusCode":130}}}
2019-03-31 13:17:03.977 - debug: zigbee.0 Publish {"linkquality":86}
2019-03-31 13:17:07.339 - debug: zigbee.0 User stateChange zigbee.0.00124b001d10f2ed.colortemp {"val":500,"ack":false,"ts":1554027427336,"q":0,"from":"system.adapter.admin.0","lc":1554027427336}
2019-03-31 13:17:07.359 - debug: zigbee.0 publishFromState: deviceId=0x00124b001d10f2ed, message={"cid":"lightingColorCtrl","cmd":"moveToColorTemp","cmdType":"functional","zclData":{"colortemp":500,"transtime":0},"cfg":{"manufSpec":0,"disDefaultRsp":0},"readAfterWriteTime":0}
2019-03-31 13:17:07.366 - debug: zigbee.0 Zigbee publish to '0x00124b001d10f2ed', lightingColorCtrl - cmd moveToColorTemp - payload {"colortemp":500,"transtime":0} - cfg {"manufSpec":0,"disDefaultRsp":0} - endpoint 11
2019-03-31 13:17:07.452 - debug: zigbee.0 Device 0x00124b001d10f2ed incoming event:{"groupid":0,"clusterid":768,"srcaddr":25259,"srcendpoint":11,"dstendpoint":1,"wasbroadcast":0,"linkquality":86,"securityuse":0,"timestamp":6026734,"transseqnumber":0,"len":5,"data":{"0":24,"1":49,"2":11,"3":10,"4":0},"zclMsg":{"frameCntl":{"frameType":0,"manufSpec":0,"direction":1,"disDefaultRsp":1},"manufCode":0,"seqNum":49,"cmdId":"defaultRsp","payload":{"cmdId":10,"statusCode":0}}}
2019-03-31 13:17:07.453 - debug: zigbee.0 Publish {"linkquality":86}
2019-03-31 13:17:07.539 - debug: zigbee.0 Device 0x00124b001d10f2ed incoming event:{"groupid":0,"clusterid":768,"srcaddr":25259,"srcendpoint":11,"dstendpoint":1,"wasbroadcast":0,"linkquality":84,"securityuse":0,"timestamp":6027007,"transseqnumber":0,"len":5,"data":{"0":24,"1":50,"2":11,"3":12,"4":130},"zclMsg":{"frameCntl":{"frameType":0,"manufSpec":0,"direction":1,"disDefaultRsp":1},"manufCode":0,"seqNum":50,"cmdId":"defaultRsp","payload":{"cmdId":12,"statusCode":130}}}
2019-03-31 13:17:07.539 - debug: zigbee.0 Publish {"linkquality":84}
2019-03-31 13:17:10.092 - debug: zigbee.0 User stateChange zigbee.0.00124b001d10f2ed.colortemp {"val":140,"ack":false,"ts":1554027430086,"q":0,"from":"system.adapter.admin.0","lc":1554027430086}
2019-03-31 13:17:10.128 - debug: zigbee.0 publishFromState: deviceId=0x00124b001d10f2ed, message={"cid":"lightingColorCtrl","cmd":"moveToColorTemp","cmdType":"functional","zclData":{"colortemp":140,"transtime":0},"cfg":{"manufSpec":0,"disDefaultRsp":0},"readAfterWriteTime":0}
2019-03-31 13:17:10.147 - debug: zigbee.0 Zigbee publish to '0x00124b001d10f2ed', lightingColorCtrl - cmd moveToColorTemp - payload {"colortemp":140,"transtime":0} - cfg {"manufSpec":0,"disDefaultRsp":0} - endpoint 11
2019-03-31 13:17:10.235 - debug: zigbee.0 Device 0x00124b001d10f2ed incoming event:{"groupid":0,"clusterid":768,"srcaddr":25259,"srcendpoint":11,"dstendpoint":1,"wasbroadcast":0,"linkquality":86,"securityuse":0,"timestamp":6035431,"transseqnumber":0,"len":5,"data":{"0":24,"1":51,"2":11,"3":10,"4":0},"zclMsg":{"frameCntl":{"frameType":0,"manufSpec":0,"direction":1,"disDefaultRsp":1},"manufCode":0,"seqNum":51,"cmdId":"defaultRsp","payload":{"cmdId":10,"statusCode":0}}}
2019-03-31 13:17:10.236 - debug: zigbee.0 Publish {"linkquality":86}
2019-03-31 13:17:10.323 - debug: zigbee.0 Device 0x00124b001d10f2ed incoming event:{"groupid":0,"clusterid":768,"srcaddr":25259,"srcendpoint":11,"dstendpoint":1,"wasbroadcast":0,"linkquality":84,"securityuse":0,"timestamp":6035705,"transseqnumber":0,"len":5,"data":{"0":24,"1":52,"2":11,"3":12,"4":130},"zclMsg":{"frameCntl":{"frameType":0,"manufSpec":0,"direction":1,"disDefaultRsp":1},"manufCode":0,"seqNum":52,"cmdId":"defaultRsp","payload":{"cmdId":12,"statusCode":130}}}
2019-03-31 13:17:10.323 - debug: zigbee.0 Publish {"linkquality":84}

@asgothian
Copy link
Collaborator

ok.. now here is what you need to try:

go to the developer tab on the iobroker.zigbee adapter.
Select the gledopto as device,
select 13 as endpoint
select lightingColorCtrl (768) as cluster id
select functional as command type
select moveToColorTemp as command
select colorTemperature as attribute id
check "needs value"
set value to 150
set unit ID to uint16 (33)

Hit run, and check the output in the results window, as well as what the led strip does

repeat with

  • endpoint 11 instead of 13
  • other values (between 150 and 500)

A.

@ericsboro
Copy link
Author

the only result i'm receiving no matter endpoint 11 or 13 and any value — undefined {"err":"The argument object has incorrect properties"}

@allofmex
Copy link
Collaborator

Please try "Expert Mode". I guess you have to use "colortemp" as attribute (and maybe also "transtime")

I created an issue to have more specific error messages in future (zigbeer/zcl-packet#14)

@asgothian
Copy link
Collaborator

asgothian commented Mar 31, 2019

Please activate the expert mode, and edit the json you see, changing the zcldata: {....} to
"zclData": {
"colortemp": 500,
"transtime": 0
},

and try again for different values of "colortemp" , and "ep" - higher up in the JSON (colortemp between 150 and 500, "ep" either 11 or 13, editing all values directly in the JSON)

@ericsboro
Copy link
Author

done!
for ep13 — unsupClusterCmd {"msg":{"cmdId":10,"statusCode":129}}
for ep11 — success {"msg":{"cmdId":10,"statusCode":0}}

but colortemp not changing — both strips continue shining

@asgothian
Copy link
Collaborator

Can you please check if there are other endpoints available to select as endpoints on the tab ?

@ericsboro
Copy link
Author

nope, no more ep's available except 11 and 13

@asgothian
Copy link
Collaborator

mm.. not good. It means the unit is not ZCL compliant for color temp control.

Can you please check if you can control both led strips using the genLevelCtrl cluster (foundation, write, current level, value between 0 and 100, type 32) with both endpoints ?

@ericsboro
Copy link
Author

Overall no changes. Here are some play-arounds:

{
"devId": "zigbee.0.00124b001d10f2ed",
"ep": "13",
"cid": "8",
"cmd": "2",
"cmdType": "foundation",
"zclData": {
"attrId": "0",
"dataType": "33",
"attrData": "0"
},
"cfg": null
}
Values between 0 and 100 — unsupAttribute {"msg":[{"status":134,"attrId":0}]}

{
"devId": "zigbee.0.00124b001d10f2ed",
"ep": "11",
"cid": "8",
"cmd": "2",
"cmdType": "foundation",
"zclData": {
"attrId": "0",
"dataType": "33",
"attrData": "100"
},
"cfg": null
}

Values between 0 and 100 — invalidDataType {"msg":[{"status":141,"attrId":0}]}

{
"devId": "zigbee.0.00124b001d10f2ed",
"ep": "11",
"cid": "8",
"cmd": "2",
"cmdType": "foundation",
"zclData": {
"attrId": "0",
"dataType": "32",
"attrData": "100"
},
"cfg": null
}

Values between 0 and 100 — success {"msg":[{"status":0}]}

@asgothian
Copy link
Collaborator

can you check the last set also on ep 12, and mention if the brightness / colortemp changes ?

A

@ericsboro
Copy link
Author

on ep12 — "We did not receive any response."

@asgothian
Copy link
Collaborator

sorry.. wrong endpoint.. i meant ep 13. Also.. when you do use those values.. does the brightness of the leds change at all ?

@ericsboro
Copy link
Author

unfortunately no :( I've tried multiple values.
here's my JSON:
{
"devId": "zigbee.0.00124b001d10f2ed",
"ep": "13",
"cid": "8",
"cmd": "2",
"cmdType": "foundation",
"zclData": {
"attrId": "0",
"attrData": "7",
"dataType": "32"
},
"cfg": null
}

@asgothian
Copy link
Collaborator

ok.. i am afraid that's the end of the line for me. Without having a unit to test, it is rather hard to do any kind of meaningful debugging. The one you have does not seem to heed the definition for colortemp. There might be a second brightness setting hidden somewhere, but i have no idea where exactly.

@ericsboro
Copy link
Author

I'll try to get one more same dimmer to exclude damage if current module, as there's still possibility.
As an option — we can setup teamviewer or skype session and do some tests together, if you still have passion to make it working ))

@asgothian
Copy link
Collaborator

We can do that for sure - possibly thursday evening, if that's ok for you.

@ericsboro
Copy link
Author

not sure if module will be delivered by that time. I'll let you know tomorrow afternoon.

@asgothian
Copy link
Collaborator

sounds like a plan.

@ericsboro
Copy link
Author

hi @asgothian
I have a suggestion that 009 module might be just a dimmer - at least Gledopto positioning it as dimmer. Unfortunately another 009 module will not be available by tomorrow, but i ordered 006 version - so if it will act the same as 009 — we can play around with it tomorrow.
I'll let you know test result and then we'll decide what to do next.

have a nice day :)

@asgothian
Copy link
Collaborator

Ok.. that can work. Thank you for helping with getting these bugs ironed out.

@ericsboro
Copy link
Author

I finally took 006 module and now I feel happy :) it works as expected! dimming and colortemp - everything :)
So, what i think on 009 — either it totally doesn't support colortemp (but why then did Gledopto designed it so), or there's something wrong with software on iobroker adapter end.
Anyway — I'd be happy to participate in 009 investigation to finally understand what the hell is wrong with it :)

@asgothian
Copy link
Collaborator

After having thought about it for a while, i have 2 questions remaining:

  • if you use the on/off and brightness functions, do they affect both strips the same way ?
  • does the 009 work stable aside the color temp function ?

I have spent a bit of time digging, and to me, it looks as if the unit is simply a led dimmer with 2 combined channels, rather than a cw/ww unit.

If that is the case, the fix would be to change the iobroker implementation to only support on/off and brightness.

A.

@ericsboro
Copy link
Author

@asgothian
I confirm that 009 works very stable with on/off and brightness. It's dimming both strips at the same time.
As an option — I'll try to connect it to Domoticz with zigbee2mqtt and check how it works there (support is not listed in scope, but maybe it'll work).

@ericsboro
Copy link
Author

I've also did some research on the internet — and most of people are disappointed with 009 as it's just dimmer.
So, I propose to remove colortemp options/details from configuration and keep it just as a dimmer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants