Koenkk / zigbee2mqtt

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

Turning off dimmer in Z2M sets brightness to 0 and disables the physical switch #23967

Closed RoGu777 closed 1 day ago

RoGu777 commented 3 days ago

What happened?

I have a TS110E _TZ3210_k1msuvg6 dimmer.

Using the switch toggle works fine and I see all the changes in Z2M interface, but if I turn off the lights via Z2M the brightness is set to 0, which confuses the dimmer and I can't turn on the lights anymore via the hardware toggle.

What did you expect to happen?

I can turn off the lights via Z2M frontend and then turn on the lights again with the hardware switch. The light brightness should stay the same as before turning off

How to reproduce it (minimal and precise)

  1. turn on the lights with the hardware switch -> the light is on
  2. turn off the lights in Z2M -> the lights is off, but brightness is set to 0 in Z2M
  3. turn on the lights with the hardware switch -> the light stays off

To "repair" the dimmer, I need to toggle the hardware switch twice and increase the brightness with the hardware switch twice, see logs below

Zigbee2MQTT version

1.40.1

Adapter firmware version

20240710

Adapter

Sonoff Dongle-P zStack3x0

Setup

Z2M in docker + Home Assistant in docker

Debug log

Here are the logs in debug mode with the steps I've done

1. the light is on and I turn it off via the hardware switch, everything is fine so far

[2024-09-14 18:54:56] debug: zh:zstack:unpi:parser: <-- [254,7,69,196,193,44,2,237,56,107,28,203] [2024-09-14 18:54:56] debug: zh:zstack:unpi:parser: --- parseNext [254,7,69,196,193,44,2,237,56,107,28,203] [2024-09-14 18:54:56] debug: zh:zstack:unpi:parser: --> parsed 7 - 2 - 5 - 196 - [193,44,2,237,56,107,28] - 203 [2024-09-14 18:54:56] debug: zh:zstack:znp: AREQ: <-- ZDO - srcRtgInd - {"dstaddr":11457,"relaycount":2,"relaylist":[14573,7275]} [2024-09-14 18:54:56] debug: zh:zstack:unpi:parser: --- parseNext [] [2024-09-14 18:54:56] debug: zh:zstack:unpi:parser: <-- [254,27,68,129,0,0,6,0,193,44,1,1,0,25,0,186,168,46,0,0,7,8,20,10,0,0,16,0,107,28,27,125] [2024-09-14 18:54:56] debug: zh:zstack:unpi:parser: --- parseNext [254,27,68,129,0,0,6,0,193,44,1,1,0,25,0,186,168,46,0,0,7,8,20,10,0,0,16,0,107,28,27,125] [2024-09-14 18:54:56] debug: zh:zstack:unpi:parser: --> parsed 27 - 2 - 4 - 129 - [0,0,6,0,193,44,1,1,0,25,0,186,168,46,0,0,7,8,20,10,0,0,16,0,107,28,27] - 125 [2024-09-14 18:54:56] debug: zh:zstack:znp: AREQ: <-- AF - incomingMsg - {"groupid":0,"clusterid":6,"srcaddr":11457,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":25,"securityuse":0,"timestamp":3057850,"transseqnumber":0,"len":7,"data":{"type":"Buffer","data":[8,20,10,0,0,16,0]}} [2024-09-14 18:54:56] debug: zh:controller: Received payload: clusterID=6, address=11457, groupID=0, endpoint=1, destinationEndpoint=1, wasBroadcast=false, linkQuality=25, frame={"header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":20,"commandIdentifier":10},"payload":[{"attrId":0,"dataType":16,"attrData":0}],"command":{"ID":10,"name":"report","parameters":[{"name":"attrId","type":33},{"name":"dataType","type":32},{"name":"attrData","type":1000}]}} [2024-09-14 18:54:56] debug: zh:controller:endpoint: ZCL command 0xa4c138b2beb2b14c/1 genOnOff.defaultRsp({"cmdId":10,"statusCode":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":1,"reservedBits":0,"transactionSequenceNumber":20,"writeUndiv":false}) [2024-09-14 18:54:56] debug: zh:zstack: sendZclFrameToEndpointInternal 0xa4c138b2beb2b14c:11457/1 (0,0,1) [2024-09-14 18:54:56] debug: zh:zstack:znp: SREQ: --> AF - dataRequest - {"dstaddr":11457,"destendpoint":1,"srcendpoint":1,"clusterid":6,"transid":5,"options":0,"radius":30,"len":5,"data":{"type":"Buffer","data":[24,20,11,10,0]}} [2024-09-14 18:54:56] debug: zh:zstack:unpi:writer: --> frame [254,15,36,1,193,44,1,1,6,0,5,0,30,5,24,20,11,10,0,210] [2024-09-14 18:54:56] debug: zh:zstack:unpi:parser: --- parseNext [] [2024-09-14 18:54:56] debug: z2m: Received Zigbee message from 'EG Eingang Licht', type 'attributeReport', cluster 'genOnOff', data '{"onOff":0}' from endpoint 1 with groupID 0 [2024-09-14 18:54:56] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/EG Eingang Licht', payload '{"action":"off","brightness":42,"device":{"applicationVersion":64,"dateCode":"","friendlyName":"EG Eingang Licht","hardwareVersion":1,"ieeeAddr":"0xa4c138b2beb2b14c","manufacturerID":4417,"manufacturerName":"_TZ3210_k1msuvg6","model":"TS110E_1gang_1","networkAddress":11457,"powerSource":"Mains (single phase)","stackVersion":0,"type":"Router","zclVersion":3},"linkquality":25,"max_brightness":140,"min_brightness":15,"power_on_behavior":"previous","state":"OFF","switch_type":"momentary"}' [2024-09-14 18:54:56] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/EG Eingang Licht', payload '{"action":"","brightness":42,"device":{"applicationVersion":64,"dateCode":"","friendlyName":"EG Eingang Licht","hardwareVersion":1,"ieeeAddr":"0xa4c138b2beb2b14c","manufacturerID":4417,"manufacturerName":"_TZ3210_k1msuvg6","model":"TS110E_1gang_1","networkAddress":11457,"powerSource":"Mains (single phase)","stackVersion":0,"type":"Router","zclVersion":3},"linkquality":25,"max_brightness":140,"min_brightness":15,"power_on_behavior":"previous","state":"OFF","switch_type":"momentary"}' [2024-09-14 18:54:56] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/EG Eingang Licht/action', payload 'off' [2024-09-14 18:54:56] debug: zh:zstack:unpi:parser: <-- [254,1,100,1,0,100,254,3,68,128,0,1,5,195] [2024-09-14 18:54:56] debug: zh:zstack:unpi:parser: --- parseNext [254,1,100,1,0,100,254,3,68,128,0,1,5,195] [2024-09-14 18:54:56] debug: zh:zstack:unpi:parser: --> parsed 1 - 3 - 4 - 1 - [0] - 100 [2024-09-14 18:54:56] debug: zh:zstack:znp: SRSP: <-- AF - dataRequest - {"status":0} [2024-09-14 18:54:56] debug: zh:zstack:unpi:parser: --- parseNext [254,3,68,128,0,1,5,195] [2024-09-14 18:54:56] debug: zh:zstack:unpi:parser: --> parsed 3 - 2 - 4 - 128 - [0,1,5] - 195 [2024-09-14 18:54:56] debug: zh:zstack:znp: AREQ: <-- AF - dataConfirm - {"status":0,"endpoint":1,"transid":5} [2024-09-14 18:54:56] debug: zh:zstack:unpi:parser: --- parseNext []

2. I switch the light on again with the hardware switch, everything fine so far

[2024-09-14 18:55:12] debug: zh:zstack:unpi:parser: <-- [254,7,69,196,193,44,2,237,56,107,28,203] [2024-09-14 18:55:12] debug: zh:zstack:unpi:parser: --- parseNext [254,7,69,196,193,44,2,237,56,107,28,203] [2024-09-14 18:55:12] debug: zh:zstack:unpi:parser: --> parsed 7 - 2 - 5 - 196 - [193,44,2,237,56,107,28] - 203 [2024-09-14 18:55:12] debug: zh:zstack:znp: AREQ: <-- ZDO - srcRtgInd - {"dstaddr":11457,"relaycount":2,"relaylist":[14573,7275]} [2024-09-14 18:55:12] debug: zh:zstack:unpi:parser: --- parseNext [] [2024-09-14 18:55:12] debug: zh:zstack:unpi:parser: <-- [254,27,68,129,0,0,6,0,193,44,1,1,0,25,0,255,93,61,0,0,7,8,21,10,0,0,16,1,107,28,27,222] [2024-09-14 18:55:12] debug: zh:zstack:unpi:parser: --- parseNext [254,27,68,129,0,0,6,0,193,44,1,1,0,25,0,255,93,61,0,0,7,8,21,10,0,0,16,1,107,28,27,222] [2024-09-14 18:55:12] debug: zh:zstack:unpi:parser: --> parsed 27 - 2 - 4 - 129 - [0,0,6,0,193,44,1,1,0,25,0,255,93,61,0,0,7,8,21,10,0,0,16,1,107,28,27] - 222 [2024-09-14 18:55:12] debug: zh:zstack:znp: AREQ: <-- AF - incomingMsg - {"groupid":0,"clusterid":6,"srcaddr":11457,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":25,"securityuse":0,"timestamp":4021759,"transseqnumber":0,"len":7,"data":{"type":"Buffer","data":[8,21,10,0,0,16,1]}} [2024-09-14 18:55:12] debug: zh:controller: Received payload: clusterID=6, address=11457, groupID=0, endpoint=1, destinationEndpoint=1, wasBroadcast=false, linkQuality=25, frame={"header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":21,"commandIdentifier":10},"payload":[{"attrId":0,"dataType":16,"attrData":1}],"command":{"ID":10,"name":"report","parameters":[{"name":"attrId","type":33},{"name":"dataType","type":32},{"name":"attrData","type":1000}]}} [2024-09-14 18:55:12] debug: zh:controller:endpoint: ZCL command 0xa4c138b2beb2b14c/1 genOnOff.defaultRsp({"cmdId":10,"statusCode":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":1,"reservedBits":0,"transactionSequenceNumber":21,"writeUndiv":false}) [2024-09-14 18:55:12] debug: zh:zstack: sendZclFrameToEndpointInternal 0xa4c138b2beb2b14c:11457/1 (0,0,1) [2024-09-14 18:55:12] debug: zh:zstack:znp: SREQ: --> AF - dataRequest - {"dstaddr":11457,"destendpoint":1,"srcendpoint":1,"clusterid":6,"transid":6,"options":0,"radius":30,"len":5,"data":{"type":"Buffer","data":[24,21,11,10,0]}} [2024-09-14 18:55:12] debug: zh:zstack:unpi:writer: --> frame [254,15,36,1,193,44,1,1,6,0,6,0,30,5,24,21,11,10,0,208] [2024-09-14 18:55:12] debug: zh:zstack:unpi:parser: --- parseNext [] [2024-09-14 18:55:12] debug: z2m: Received Zigbee message from 'EG Eingang Licht', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0 [2024-09-14 18:55:12] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/EG Eingang Licht', payload '{"action":"on","brightness":42,"device":{"applicationVersion":64,"dateCode":"","friendlyName":"EG Eingang Licht","hardwareVersion":1,"ieeeAddr":"0xa4c138b2beb2b14c","manufacturerID":4417,"manufacturerName":"_TZ3210_k1msuvg6","model":"TS110E_1gang_1","networkAddress":11457,"powerSource":"Mains (single phase)","stackVersion":0,"type":"Router","zclVersion":3},"linkquality":25,"max_brightness":140,"min_brightness":15,"power_on_behavior":"previous","state":"ON","switch_type":"momentary"}' [2024-09-14 18:55:12] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/EG Eingang Licht', payload '{"action":"","brightness":42,"device":{"applicationVersion":64,"dateCode":"","friendlyName":"EG Eingang Licht","hardwareVersion":1,"ieeeAddr":"0xa4c138b2beb2b14c","manufacturerID":4417,"manufacturerName":"_TZ3210_k1msuvg6","model":"TS110E_1gang_1","networkAddress":11457,"powerSource":"Mains (single phase)","stackVersion":0,"type":"Router","zclVersion":3},"linkquality":25,"max_brightness":140,"min_brightness":15,"power_on_behavior":"previous","state":"ON","switch_type":"momentary"}' [2024-09-14 18:55:12] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/EG Eingang Licht/action', payload 'on' [2024-09-14 18:55:12] debug: zh:zstack:unpi:parser: <-- [254,1,100,1,0,100,254,3,68,128,0,1,6,192] [2024-09-14 18:55:12] debug: zh:zstack:unpi:parser: --- parseNext [254,1,100,1,0,100,254,3,68,128,0,1,6,192] [2024-09-14 18:55:12] debug: zh:zstack:unpi:parser: --> parsed 1 - 3 - 4 - 1 - [0] - 100 [2024-09-14 18:55:12] debug: zh:zstack:znp: SRSP: <-- AF - dataRequest - {"status":0} [2024-09-14 18:55:12] debug: zh:zstack:unpi:parser: --- parseNext [254,3,68,128,0,1,6,192] [2024-09-14 18:55:12] debug: zh:zstack:unpi:parser: --> parsed 3 - 2 - 4 - 128 - [0,1,6] - 192 [2024-09-14 18:55:12] debug: zh:zstack:znp: AREQ: <-- AF - dataConfirm - {"status":0,"endpoint":1,"transid":6} [2024-09-14 18:55:12] debug: zh:zstack:unpi:parser: --- parseNext []

3. I increase the brightness to 78 via hardware switch, everything is fine so far

[2024-09-14 18:55:23] debug: zh:zstack:unpi:parser: <-- [254,27,68,129,0,0,8,0,193,44,1,1,0,25,0,199,91,72,0,0,7,8,31,10,0,0,32,78,107,28,27,238] [2024-09-14 18:55:23] debug: zh:zstack:unpi:parser: --- parseNext [254,27,68,129,0,0,8,0,193,44,1,1,0,25,0,199,91,72,0,0,7,8,31,10,0,0,32,78,107,28,27,238] [2024-09-14 18:55:23] debug: zh:zstack:unpi:parser: --> parsed 27 - 2 - 4 - 129 - [0,0,8,0,193,44,1,1,0,25,0,199,91,72,0,0,7,8,31,10,0,0,32,78,107,28,27] - 238 [2024-09-14 18:55:23] debug: zh:zstack:znp: AREQ: <-- AF - incomingMsg - {"groupid":0,"clusterid":8,"srcaddr":11457,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":25,"securityuse":0,"timestamp":4742087,"transseqnumber":0,"len":7,"data":{"type":"Buffer","data":[8,31,10,0,0,32,78]}} [2024-09-14 18:55:23] debug: zh:controller: Received payload: clusterID=8, address=11457, groupID=0, endpoint=1, destinationEndpoint=1, wasBroadcast=false, linkQuality=25, frame={"header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":31,"commandIdentifier":10},"payload":[{"attrId":0,"dataType":32,"attrData":78}],"command":{"ID":10,"name":"report","parameters":[{"name":"attrId","type":33},{"name":"dataType","type":32},{"name":"attrData","type":1000}]}} [2024-09-14 18:55:23] debug: zh:controller:endpoint: ZCL command 0xa4c138b2beb2b14c/1 genLevelCtrl.defaultRsp({"cmdId":10,"statusCode":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":1,"reservedBits":0,"transactionSequenceNumber":31,"writeUndiv":false}) [2024-09-14 18:55:23] debug: zh:zstack: sendZclFrameToEndpointInternal 0xa4c138b2beb2b14c:11457/1 (0,0,1) [2024-09-14 18:55:23] debug: zh:zstack:znp: SREQ: --> AF - dataRequest - {"dstaddr":11457,"destendpoint":1,"srcendpoint":1,"clusterid":8,"transid":7,"options":0,"radius":30,"len":5,"data":{"type":"Buffer","data":[24,31,11,10,0]}} [2024-09-14 18:55:23] debug: zh:zstack:unpi:writer: --> frame [254,15,36,1,193,44,1,1,8,0,7,0,30,5,24,31,11,10,0,213] [2024-09-14 18:55:23] debug: zh:zstack:unpi:parser: --- parseNext [] [2024-09-14 18:55:23] debug: z2m: Received Zigbee message from 'EG Eingang Licht', type 'attributeReport', cluster 'genLevelCtrl', data '{"currentLevel":78}' from endpoint 1 with groupID 0 [2024-09-14 18:55:23] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/EG Eingang Licht', payload '{"brightness":78,"device":{"applicationVersion":64,"dateCode":"","friendlyName":"EG Eingang Licht","hardwareVersion":1,"ieeeAddr":"0xa4c138b2beb2b14c","manufacturerID":4417,"manufacturerName":"_TZ3210_k1msuvg6","model":"TS110E_1gang_1","networkAddress":11457,"powerSource":"Mains (single phase)","stackVersion":0,"type":"Router","zclVersion":3},"linkquality":25,"max_brightness":140,"min_brightness":15,"power_on_behavior":"previous","state":"ON","switch_type":"momentary"}' [2024-09-14 18:55:23] debug: zh:zstack:unpi:parser: <-- [254,1,100,1,0,100] [2024-09-14 18:55:23] debug: zh:zstack:unpi:parser: --- parseNext [254,1,100,1,0,100] [2024-09-14 18:55:23] debug: zh:zstack:unpi:parser: --> parsed 1 - 3 - 4 - 1 - [0] - 100 [2024-09-14 18:55:23] debug: zh:zstack:znp: SRSP: <-- AF - dataRequest - {"status":0} [2024-09-14 18:55:23] debug: zh:zstack:unpi:parser: --- parseNext [] [2024-09-14 18:55:23] debug: zh:zstack:unpi:parser: <-- [254,3,68,128,0,1,7,193] [2024-09-14 18:55:23] debug: zh:zstack:unpi:parser: --- parseNext [254,3,68,128,0,1,7,193] [2024-09-14 18:55:23] debug: zh:zstack:unpi:parser: --> parsed 3 - 2 - 4 - 128 - [0,1,7] - 193 [2024-09-14 18:55:23] debug: zh:zstack:znp: AREQ: <-- AF - dataConfirm - {"status":0,"endpoint":1,"transid":7} [2024-09-14 18:55:23] debug: zh:zstack:unpi:parser: --- parseNext []

4. I click the ON/OFF toggle in Z2M to turn off the light. The light turns off, the brightness is shown as 0 now in Z2M

[2024-09-14 18:56:01] debug: z2m:mqtt: Received MQTT message on 'zigbee2mqtt/EG Eingang Licht/set' with data '{"state":"OFF"}' [2024-09-14 18:56:01] debug: z2m: Publishing 'set' 'state' to 'EG Eingang Licht' [2024-09-14 18:56:01] debug: zh:controller:endpoint: ZCL command 0xa4c138b2beb2b14c/1 genLevelCtrl.moveToLevelWithOnOff({"level":0,"transtime":10}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":false,"direction":0,"reservedBits":0,"writeUndiv":false}) [2024-09-14 18:56:01] debug: zh:zstack: sendZclFrameToEndpointInternal 0xa4c138b2beb2b14c:11457/1 (0,0,1) [2024-09-14 18:56:01] debug: zh:zstack:znp: SREQ: --> AF - dataRequest - {"dstaddr":11457,"destendpoint":1,"srcendpoint":1,"clusterid":8,"transid":11,"options":0,"radius":30,"len":6,"data":{"type":"Buffer","data":[1,6,4,0,10,0]}} [2024-09-14 18:56:01] debug: zh:zstack:unpi:writer: --> frame [254,16,36,1,193,44,1,1,8,0,11,0,30,6,1,6,4,0,10,0,202] [2024-09-14 18:56:01] debug: zh:zstack:unpi:parser: <-- [254,1,100,1,0,100] [2024-09-14 18:56:01] debug: zh:zstack:unpi:parser: --- parseNext [254,1,100,1,0,100] [2024-09-14 18:56:01] debug: zh:zstack:unpi:parser: --> parsed 1 - 3 - 4 - 1 - [0] - 100 [2024-09-14 18:56:01] debug: zh:zstack:znp: SRSP: <-- AF - dataRequest - {"status":0} [2024-09-14 18:56:01] debug: zh:zstack:unpi:parser: --- parseNext [] [2024-09-14 18:56:01] debug: zh:zstack:unpi:parser: <-- [254,3,68,128,0,1,11,205] [2024-09-14 18:56:01] debug: zh:zstack:unpi:parser: --- parseNext [254,3,68,128,0,1,11,205] [2024-09-14 18:56:01] debug: zh:zstack:unpi:parser: --> parsed 3 - 2 - 4 - 128 - [0,1,11] - 205 [2024-09-14 18:56:01] debug: zh:zstack:znp: AREQ: <-- AF - dataConfirm - {"status":0,"endpoint":1,"transid":11} [2024-09-14 18:56:01] debug: zh:zstack:unpi:parser: --- parseNext [] [2024-09-14 18:56:01] debug: zh:zstack:unpi:parser: <-- [254,25,68,129,0,0,8,0,193,44,1,1,0,25,0,50,49,108,0,0,5,24,6,11,4,0,107,28,27,55] [2024-09-14 18:56:01] debug: zh:zstack:unpi:parser: --- parseNext [254,25,68,129,0,0,8,0,193,44,1,1,0,25,0,50,49,108,0,0,5,24,6,11,4,0,107,28,27,55] [2024-09-14 18:56:01] debug: zh:zstack:unpi:parser: --> parsed 25 - 2 - 4 - 129 - [0,0,8,0,193,44,1,1,0,25,0,50,49,108,0,0,5,24,6,11,4,0,107,28,27] - 55 [2024-09-14 18:56:01] debug: zh:zstack:znp: AREQ: <-- AF - incomingMsg - {"groupid":0,"clusterid":8,"srcaddr":11457,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":25,"securityuse":0,"timestamp":7090482,"transseqnumber":0,"len":5,"data":{"type":"Buffer","data":[24,6,11,4,0]}} [2024-09-14 18:56:01] debug: zh:controller: Received payload: clusterID=8, address=11457, groupID=0, endpoint=1, destinationEndpoint=1, wasBroadcast=false, linkQuality=25, frame={"header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":true,"reservedBits":0},"transactionSequenceNumber":6,"commandIdentifier":11},"payload":{"cmdId":4,"statusCode":0},"command":{"ID":11,"name":"defaultRsp","parameters":[{"name":"cmdId","type":32},{"name":"statusCode","type":32}]}} [2024-09-14 18:56:01] debug: zh:zstack:unpi:parser: --- parseNext [] [2024-09-14 18:56:01] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/EG Eingang Licht', payload '{"brightness":78,"device":{"applicationVersion":64,"dateCode":"","friendlyName":"EG Eingang Licht","hardwareVersion":1,"ieeeAddr":"0xa4c138b2beb2b14c","manufacturerID":4417,"manufacturerName":"_TZ3210_k1msuvg6","model":"TS110E_1gang_1","networkAddress":11457,"powerSource":"Mains (single phase)","stackVersion":0,"type":"Router","zclVersion":3},"linkquality":25,"max_brightness":140,"min_brightness":15,"power_on_behavior":"previous","state":"OFF","switch_type":"momentary"}' [2024-09-14 18:56:01] debug: zh:zstack:unpi:parser: <-- [254,32,68,129,0,0,8,0,193,44,1,1,0,25,0,167,245,108,0,0,12,8,32,10,0,0,32,0,0,240,33,0,0,107,28,27,148] [2024-09-14 18:56:01] debug: zh:zstack:unpi:parser: --- parseNext [254,32,68,129,0,0,8,0,193,44,1,1,0,25,0,167,245,108,0,0,12,8,32,10,0,0,32,0,0,240,33,0,0,107,28,27,148] [2024-09-14 18:56:01] debug: zh:zstack:unpi:parser: --> parsed 32 - 2 - 4 - 129 - [0,0,8,0,193,44,1,1,0,25,0,167,245,108,0,0,12,8,32,10,0,0,32,0,0,240,33,0,0,107,28,27] - 148 [2024-09-14 18:56:01] debug: zh:zstack:znp: AREQ: <-- AF - incomingMsg - {"groupid":0,"clusterid":8,"srcaddr":11457,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":25,"securityuse":0,"timestamp":7140775,"transseqnumber":0,"len":12,"data":{"type":"Buffer","data":[8,32,10,0,0,32,0,0,240,33,0,0]}} [2024-09-14 18:56:01] debug: zh:controller: Received payload: clusterID=8, address=11457, groupID=0, endpoint=1, destinationEndpoint=1, wasBroadcast=false, linkQuality=25, frame={"header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":32,"commandIdentifier":10},"payload":[{"attrId":0,"dataType":32,"attrData":0},{"attrId":61440,"dataType":33,"attrData":0}],"command":{"ID":10,"name":"report","parameters":[{"name":"attrId","type":33},{"name":"dataType","type":32},{"name":"attrData","type":1000}]}} [2024-09-14 18:56:01] debug: zh:controller:endpoint: ZCL command 0xa4c138b2beb2b14c/1 genLevelCtrl.defaultRsp({"cmdId":10,"statusCode":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":1,"reservedBits":0,"transactionSequenceNumber":32,"writeUndiv":false}) [2024-09-14 18:56:01] debug: zh:zstack: sendZclFrameToEndpointInternal 0xa4c138b2beb2b14c:11457/1 (0,0,1) [2024-09-14 18:56:01] debug: zh:zstack:znp: SREQ: --> AF - dataRequest - {"dstaddr":11457,"destendpoint":1,"srcendpoint":1,"clusterid":8,"transid":12,"options":0,"radius":30,"len":5,"data":{"type":"Buffer","data":[24,32,11,10,0]}} [2024-09-14 18:56:01] debug: zh:zstack:unpi:writer: --> frame [254,15,36,1,193,44,1,1,8,0,12,0,30,5,24,32,11,10,0,225] [2024-09-14 18:56:01] debug: zh:zstack:unpi:parser: --- parseNext [] [2024-09-14 18:56:01] debug: z2m: Received Zigbee message from 'EG Eingang Licht', type 'attributeReport', cluster 'genLevelCtrl', data '{"61440":0,"currentLevel":0}' from endpoint 1 with groupID 0 [2024-09-14 18:56:01] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/EG Eingang Licht', payload '{"brightness":0,"device":{"applicationVersion":64,"dateCode":"","friendlyName":"EG Eingang Licht","hardwareVersion":1,"ieeeAddr":"0xa4c138b2beb2b14c","manufacturerID":4417,"manufacturerName":"_TZ3210_k1msuvg6","model":"TS110E_1gang_1","networkAddress":11457,"powerSource":"Mains (single phase)","stackVersion":0,"type":"Router","zclVersion":3},"linkquality":25,"max_brightness":140,"min_brightness":15,"power_on_behavior":"previous","state":"OFF","switch_type":"momentary"}' [2024-09-14 18:56:01] debug: zh:zstack:unpi:parser: <-- [254,1,100,1,0,100] [2024-09-14 18:56:01] debug: zh:zstack:unpi:parser: --- parseNext [254,1,100,1,0,100] [2024-09-14 18:56:01] debug: zh:zstack:unpi:parser: --> parsed 1 - 3 - 4 - 1 - [0] - 100 [2024-09-14 18:56:01] debug: zh:zstack:znp: SRSP: <-- AF - dataRequest - {"status":0} [2024-09-14 18:56:01] debug: zh:zstack:unpi:parser: --- parseNext [] [2024-09-14 18:56:01] debug: zh:zstack:unpi:parser: <-- [254,3,68,128,0,1,12,202] [2024-09-14 18:56:01] debug: zh:zstack:unpi:parser: --- parseNext [254,3,68,128,0,1,12,202] [2024-09-14 18:56:01] debug: zh:zstack:unpi:parser: --> parsed 3 - 2 - 4 - 128 - [0,1,12] - 202 [2024-09-14 18:56:01] debug: zh:zstack:znp: AREQ: <-- AF - dataConfirm - {"status":0,"endpoint":1,"transid":12} [2024-09-14 18:56:01] debug: zh:zstack:unpi:parser: --- parseNext [] [2024-09-14 18:56:02] debug: zh:zstack:unpi:parser: <-- [254,35,68,129,0,0,0,0,193,44,1,1,0,25,0,36,97,109,0,0,15,8,33,10,1,0,32,64,226,255,32,54,228,255,32,0,107,28,27,43] [2024-09-14 18:56:02] debug: zh:zstack:unpi:parser: --- parseNext [254,35,68,129,0,0,0,0,193,44,1,1,0,25,0,36,97,109,0,0,15,8,33,10,1,0,32,64,226,255,32,54,228,255,32,0,107,28,27,43] [2024-09-14 18:56:02] debug: zh:zstack:unpi:parser: --> parsed 35 - 2 - 4 - 129 - [0,0,0,0,193,44,1,1,0,25,0,36,97,109,0,0,15,8,33,10,1,0,32,64,226,255,32,54,228,255,32,0,107,28,27] - 43 [2024-09-14 18:56:02] debug: zh:zstack:znp: AREQ: <-- AF - incomingMsg - {"groupid":0,"clusterid":0,"srcaddr":11457,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":25,"securityuse":0,"timestamp":7168292,"transseqnumber":0,"len":15,"data":{"type":"Buffer","data":[8,33,10,1,0,32,64,226,255,32,54,228,255,32,0]}} [2024-09-14 18:56:02] debug: zh:controller: Received payload: clusterID=0, address=11457, groupID=0, endpoint=1, destinationEndpoint=1, wasBroadcast=false, linkQuality=25, frame={"header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":33,"commandIdentifier":10},"payload":[{"attrId":1,"dataType":32,"attrData":64},{"attrId":65506,"dataType":32,"attrData":54},{"attrId":65508,"dataType":32,"attrData":0}],"command":{"ID":10,"name":"report","parameters":[{"name":"attrId","type":33},{"name":"dataType","type":32},{"name":"attrData","type":1000}]}} [2024-09-14 18:56:02] debug: zh:controller:endpoint: ZCL command 0xa4c138b2beb2b14c/1 genBasic.defaultRsp({"cmdId":10,"statusCode":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":1,"reservedBits":0,"transactionSequenceNumber":33,"writeUndiv":false}) [2024-09-14 18:56:02] debug: zh:zstack: sendZclFrameToEndpointInternal 0xa4c138b2beb2b14c:11457/1 (0,0,1) [2024-09-14 18:56:02] debug: zh:zstack:znp: SREQ: --> AF - dataRequest - {"dstaddr":11457,"destendpoint":1,"srcendpoint":1,"clusterid":0,"transid":13,"options":0,"radius":30,"len":5,"data":{"type":"Buffer","data":[24,33,11,10,0]}} [2024-09-14 18:56:02] debug: zh:zstack:unpi:writer: --> frame [254,15,36,1,193,44,1,1,0,0,13,0,30,5,24,33,11,10,0,233] [2024-09-14 18:56:02] debug: zh:zstack:unpi:parser: --- parseNext [] [2024-09-14 18:56:02] debug: z2m: Received Zigbee message from 'EG Eingang Licht', type 'attributeReport', cluster 'genBasic', data '{"65506":54,"65508":0,"appVersion":64}' from endpoint 1 with groupID 0 [2024-09-14 18:56:02] debug: zh:zstack:unpi:parser: <-- [254,1,100,1,0,100] [2024-09-14 18:56:02] debug: zh:zstack:unpi:parser: --- parseNext [254,1,100,1,0,100] [2024-09-14 18:56:02] debug: zh:zstack:unpi:parser: --> parsed 1 - 3 - 4 - 1 - [0] - 100 [2024-09-14 18:56:02] debug: zh:zstack:znp: SRSP: <-- AF - dataRequest - {"status":0} [2024-09-14 18:56:02] debug: zh:zstack:unpi:parser: --- parseNext [] [2024-09-14 18:56:02] debug: zh:zstack:unpi:parser: <-- [254,3,68,128,0,1,13,203] [2024-09-14 18:56:02] debug: zh:zstack:unpi:parser: --- parseNext [254,3,68,128,0,1,13,203] [2024-09-14 18:56:02] debug: zh:zstack:unpi:parser: --> parsed 3 - 2 - 4 - 128 - [0,1,13] - 203 [2024-09-14 18:56:02] debug: zh:zstack:znp: AREQ: <-- AF - dataConfirm - {"status":0,"endpoint":1,"transid":13} [2024-09-14 18:56:02] debug: zh:zstack:unpi:parser: --- parseNext []

5. I push the hardware switch to turn on the light. The light stays off, Z2M still shows the state as OFF and brightness = 0

[2024-09-14 18:56:18] debug: zh:zstack:unpi:parser: <-- [254,7,69,196,193,44,2,237,56,107,28,203,254,27,68,129,0,0,6,0,193,44,1,1,0,25,0,173,140,124,0,0,7,8,34,10,0,0,16,0,107,28,27,42] [2024-09-14 18:56:18] debug: zh:zstack:unpi:parser: --- parseNext [254,7,69,196,193,44,2,237,56,107,28,203,254,27,68,129,0,0,6,0,193,44,1,1,0,25,0,173,140,124,0,0,7,8,34,10,0,0,16,0,107,28,27,42] [2024-09-14 18:56:18] debug: zh:zstack:unpi:parser: --> parsed 7 - 2 - 5 - 196 - [193,44,2,237,56,107,28] - 203 [2024-09-14 18:56:18] debug: zh:zstack:znp: AREQ: <-- ZDO - srcRtgInd - {"dstaddr":11457,"relaycount":2,"relaylist":[14573,7275]} [2024-09-14 18:56:18] debug: zh:zstack:unpi:parser: --- parseNext [254,27,68,129,0,0,6,0,193,44,1,1,0,25,0,173,140,124,0,0,7,8,34,10,0,0,16,0,107,28,27,42] [2024-09-14 18:56:18] debug: zh:zstack:unpi:parser: --> parsed 27 - 2 - 4 - 129 - [0,0,6,0,193,44,1,1,0,25,0,173,140,124,0,0,7,8,34,10,0,0,16,0,107,28,27] - 42 [2024-09-14 18:56:18] debug: zh:zstack:znp: AREQ: <-- AF - incomingMsg - {"groupid":0,"clusterid":6,"srcaddr":11457,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":25,"securityuse":0,"timestamp":8162477,"transseqnumber":0,"len":7,"data":{"type":"Buffer","data":[8,34,10,0,0,16,0]}} [2024-09-14 18:56:18] debug: zh:controller: Received payload: clusterID=6, address=11457, groupID=0, endpoint=1, destinationEndpoint=1, wasBroadcast=false, linkQuality=25, frame={"header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":34,"commandIdentifier":10},"payload":[{"attrId":0,"dataType":16,"attrData":0}],"command":{"ID":10,"name":"report","parameters":[{"name":"attrId","type":33},{"name":"dataType","type":32},{"name":"attrData","type":1000}]}} [2024-09-14 18:56:18] debug: zh:controller:endpoint: ZCL command 0xa4c138b2beb2b14c/1 genOnOff.defaultRsp({"cmdId":10,"statusCode":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":1,"reservedBits":0,"transactionSequenceNumber":34,"writeUndiv":false}) [2024-09-14 18:56:18] debug: zh:zstack: sendZclFrameToEndpointInternal 0xa4c138b2beb2b14c:11457/1 (0,0,1) [2024-09-14 18:56:18] debug: zh:zstack:znp: SREQ: --> AF - dataRequest - {"dstaddr":11457,"destendpoint":1,"srcendpoint":1,"clusterid":6,"transid":14,"options":0,"radius":30,"len":5,"data":{"type":"Buffer","data":[24,34,11,10,0]}} [2024-09-14 18:56:18] debug: zh:zstack:unpi:writer: --> frame [254,15,36,1,193,44,1,1,6,0,14,0,30,5,24,34,11,10,0,239] [2024-09-14 18:56:18] debug: zh:zstack:unpi:parser: --- parseNext [] [2024-09-14 18:56:18] debug: z2m: Received Zigbee message from 'EG Eingang Licht', type 'attributeReport', cluster 'genOnOff', data '{"onOff":0}' from endpoint 1 with groupID 0 [2024-09-14 18:56:18] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/EG Eingang Licht', payload '{"action":"off","brightness":0,"device":{"applicationVersion":64,"dateCode":"","friendlyName":"EG Eingang Licht","hardwareVersion":1,"ieeeAddr":"0xa4c138b2beb2b14c","manufacturerID":4417,"manufacturerName":"_TZ3210_k1msuvg6","model":"TS110E_1gang_1","networkAddress":11457,"powerSource":"Mains (single phase)","stackVersion":0,"type":"Router","zclVersion":3},"linkquality":25,"max_brightness":140,"min_brightness":15,"power_on_behavior":"previous","state":"OFF","switch_type":"momentary"}' [2024-09-14 18:56:18] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/EG Eingang Licht', payload '{"action":"","brightness":0,"device":{"applicationVersion":64,"dateCode":"","friendlyName":"EG Eingang Licht","hardwareVersion":1,"ieeeAddr":"0xa4c138b2beb2b14c","manufacturerID":4417,"manufacturerName":"_TZ3210_k1msuvg6","model":"TS110E_1gang_1","networkAddress":11457,"powerSource":"Mains (single phase)","stackVersion":0,"type":"Router","zclVersion":3},"linkquality":25,"max_brightness":140,"min_brightness":15,"power_on_behavior":"previous","state":"OFF","switch_type":"momentary"}' [2024-09-14 18:56:18] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/EG Eingang Licht/action', payload 'off' [2024-09-14 18:56:18] debug: zh:zstack:unpi:parser: <-- [254,1,100,1,0,100] [2024-09-14 18:56:18] debug: zh:zstack:unpi:parser: --- parseNext [254,1,100,1,0,100] [2024-09-14 18:56:18] debug: zh:zstack:unpi:parser: --> parsed 1 - 3 - 4 - 1 - [0] - 100 [2024-09-14 18:56:18] debug: zh:zstack:znp: SRSP: <-- AF - dataRequest - {"status":0} [2024-09-14 18:56:18] debug: zh:zstack:unpi:parser: --- parseNext [] [2024-09-14 18:56:18] debug: zh:zstack:unpi:parser: <-- [254,3,68,128,0,1,14,200] [2024-09-14 18:56:18] debug: zh:zstack:unpi:parser: --- parseNext [254,3,68,128,0,1,14,200] [2024-09-14 18:56:18] debug: zh:zstack:unpi:parser: --> parsed 3 - 2 - 4 - 128 - [0,1,14] - 200 [2024-09-14 18:56:18] debug: zh:zstack:znp: AREQ: <-- AF - dataConfirm - {"status":0,"endpoint":1,"transid":14} [2024-09-14 18:56:18] debug: zh:zstack:unpi:parser: --- parseNext []

6. I push the hardware switch again to turn on the light. The light still stays off, Z2M shows the state as ON, brightness = 0

[2024-09-14 18:56:34] debug: zh:zstack:unpi:parser: <-- [254,27,68,129,0,0,6,0,193,44,1,1,0,25,0,1,190,139,0,0,7,8,35,10,0,0,16,1,107,28,27,67] [2024-09-14 18:56:34] debug: zh:zstack:unpi:parser: --- parseNext [254,27,68,129,0,0,6,0,193,44,1,1,0,25,0,1,190,139,0,0,7,8,35,10,0,0,16,1,107,28,27,67] [2024-09-14 18:56:34] debug: zh:zstack:unpi:parser: --> parsed 27 - 2 - 4 - 129 - [0,0,6,0,193,44,1,1,0,25,0,1,190,139,0,0,7,8,35,10,0,0,16,1,107,28,27] - 67 [2024-09-14 18:56:34] debug: zh:zstack:znp: AREQ: <-- AF - incomingMsg - {"groupid":0,"clusterid":6,"srcaddr":11457,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":25,"securityuse":0,"timestamp":9158145,"transseqnumber":0,"len":7,"data":{"type":"Buffer","data":[8,35,10,0,0,16,1]}} [2024-09-14 18:56:34] debug: zh:controller: Received payload: clusterID=6, address=11457, groupID=0, endpoint=1, destinationEndpoint=1, wasBroadcast=false, linkQuality=25, frame={"header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":35,"commandIdentifier":10},"payload":[{"attrId":0,"dataType":16,"attrData":1}],"command":{"ID":10,"name":"report","parameters":[{"name":"attrId","type":33},{"name":"dataType","type":32},{"name":"attrData","type":1000}]}} [2024-09-14 18:56:34] debug: zh:controller:endpoint: ZCL command 0xa4c138b2beb2b14c/1 genOnOff.defaultRsp({"cmdId":10,"statusCode":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":1,"reservedBits":0,"transactionSequenceNumber":35,"writeUndiv":false}) [2024-09-14 18:56:34] debug: zh:zstack: sendZclFrameToEndpointInternal 0xa4c138b2beb2b14c:11457/1 (0,0,1) [2024-09-14 18:56:34] debug: zh:zstack:znp: SREQ: --> AF - dataRequest - {"dstaddr":11457,"destendpoint":1,"srcendpoint":1,"clusterid":6,"transid":17,"options":0,"radius":30,"len":5,"data":{"type":"Buffer","data":[24,35,11,10,0]}} [2024-09-14 18:56:34] debug: zh:zstack:unpi:writer: --> frame [254,15,36,1,193,44,1,1,6,0,17,0,30,5,24,35,11,10,0,241] [2024-09-14 18:56:34] debug: zh:zstack:unpi:parser: --- parseNext [] [2024-09-14 18:56:34] debug: z2m: Received Zigbee message from 'EG Eingang Licht', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0 [2024-09-14 18:56:34] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/EG Eingang Licht', payload '{"action":"on","brightness":0,"device":{"applicationVersion":64,"dateCode":"","friendlyName":"EG Eingang Licht","hardwareVersion":1,"ieeeAddr":"0xa4c138b2beb2b14c","manufacturerID":4417,"manufacturerName":"_TZ3210_k1msuvg6","model":"TS110E_1gang_1","networkAddress":11457,"powerSource":"Mains (single phase)","stackVersion":0,"type":"Router","zclVersion":3},"linkquality":25,"max_brightness":140,"min_brightness":15,"power_on_behavior":"previous","state":"ON","switch_type":"momentary"}' [2024-09-14 18:56:34] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/EG Eingang Licht', payload '{"action":"","brightness":0,"device":{"applicationVersion":64,"dateCode":"","friendlyName":"EG Eingang Licht","hardwareVersion":1,"ieeeAddr":"0xa4c138b2beb2b14c","manufacturerID":4417,"manufacturerName":"_TZ3210_k1msuvg6","model":"TS110E_1gang_1","networkAddress":11457,"powerSource":"Mains (single phase)","stackVersion":0,"type":"Router","zclVersion":3},"linkquality":25,"max_brightness":140,"min_brightness":15,"power_on_behavior":"previous","state":"ON","switch_type":"momentary"}' [2024-09-14 18:56:34] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/EG Eingang Licht/action', payload 'on' [2024-09-14 18:56:34] debug: zh:zstack:unpi:parser: <-- [254,1,100,1,0,100,254,3,68,128,0,1,17,215] [2024-09-14 18:56:34] debug: zh:zstack:unpi:parser: --- parseNext [254,1,100,1,0,100,254,3,68,128,0,1,17,215] [2024-09-14 18:56:34] debug: zh:zstack:unpi:parser: --> parsed 1 - 3 - 4 - 1 - [0] - 100 [2024-09-14 18:56:34] debug: zh:zstack:znp: SRSP: <-- AF - dataRequest - {"status":0} [2024-09-14 18:56:34] debug: zh:zstack:unpi:parser: --- parseNext [254,3,68,128,0,1,17,215] [2024-09-14 18:56:34] debug: zh:zstack:unpi:parser: --> parsed 3 - 2 - 4 - 128 - [0,1,17] - 215 [2024-09-14 18:56:34] debug: zh:zstack:znp: AREQ: <-- AF - dataConfirm - {"status":0,"endpoint":1,"transid":17} [2024-09-14 18:56:34] debug: zh:zstack:unpi:parser: --- parseNext []

7. now I try to increase the brightness with the hardware switch, the brightness increases to "14", not higher. (min brightness is set to 15). The light still is off

[2024-09-14 18:57:19] debug: zh:zstack:unpi:parser: <-- [254,27,68,129,0,0,8,0,193,44,1,1,0,25,0,89,190,182,0,0,7,8,38,10,0,0,32,14,107,28,27,18] [2024-09-14 18:57:19] debug: zh:zstack:unpi:parser: --- parseNext [254,27,68,129,0,0,8,0,193,44,1,1,0,25,0,89,190,182,0,0,7,8,38,10,0,0,32,14,107,28,27,18] [2024-09-14 18:57:19] debug: zh:zstack:unpi:parser: --> parsed 27 - 2 - 4 - 129 - [0,0,8,0,193,44,1,1,0,25,0,89,190,182,0,0,7,8,38,10,0,0,32,14,107,28,27] - 18 [2024-09-14 18:57:19] debug: zh:zstack:znp: AREQ: <-- AF - incomingMsg - {"groupid":0,"clusterid":8,"srcaddr":11457,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":25,"securityuse":0,"timestamp":11976281,"transseqnumber":0,"len":7,"data":{"type":"Buffer","data":[8,38,10,0,0,32,14]}} [2024-09-14 18:57:19] debug: zh:controller: Received payload: clusterID=8, address=11457, groupID=0, endpoint=1, destinationEndpoint=1, wasBroadcast=false, linkQuality=25, frame={"header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":38,"commandIdentifier":10},"payload":[{"attrId":0,"dataType":32,"attrData":14}],"command":{"ID":10,"name":"report","parameters":[{"name":"attrId","type":33},{"name":"dataType","type":32},{"name":"attrData","type":1000}]}} [2024-09-14 18:57:19] debug: zh:controller:endpoint: ZCL command 0xa4c138b2beb2b14c/1 genLevelCtrl.defaultRsp({"cmdId":10,"statusCode":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":1,"reservedBits":0,"transactionSequenceNumber":38,"writeUndiv":false}) [2024-09-14 18:57:19] debug: zh:zstack: sendZclFrameToEndpointInternal 0xa4c138b2beb2b14c:11457/1 (0,0,1) [2024-09-14 18:57:19] debug: zh:zstack:znp: SREQ: --> AF - dataRequest - {"dstaddr":11457,"destendpoint":1,"srcendpoint":1,"clusterid":8,"transid":21,"options":0,"radius":30,"len":5,"data":{"type":"Buffer","data":[24,38,11,10,0]}} [2024-09-14 18:57:19] debug: zh:zstack:unpi:writer: --> frame [254,15,36,1,193,44,1,1,8,0,21,0,30,5,24,38,11,10,0,254] [2024-09-14 18:57:19] debug: zh:zstack:unpi:parser: --- parseNext [] [2024-09-14 18:57:19] debug: z2m: Received Zigbee message from 'EG Eingang Licht', type 'attributeReport', cluster 'genLevelCtrl', data '{"currentLevel":14}' from endpoint 1 with groupID 0 [2024-09-14 18:57:19] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/EG Eingang Licht', payload '{"brightness":14,"device":{"applicationVersion":64,"dateCode":"","friendlyName":"EG Eingang Licht","hardwareVersion":1,"ieeeAddr":"0xa4c138b2beb2b14c","manufacturerID":4417,"manufacturerName":"_TZ3210_k1msuvg6","model":"TS110E_1gang_1","networkAddress":11457,"powerSource":"Mains (single phase)","stackVersion":0,"type":"Router","zclVersion":3},"linkquality":25,"max_brightness":140,"min_brightness":15,"power_on_behavior":"previous","state":"ON","switch_type":"momentary"}' [2024-09-14 18:57:19] debug: zh:zstack:unpi:parser: <-- [254,1,100,1,0,100,254,3,68,128,0,1,21,211] [2024-09-14 18:57:19] debug: zh:zstack:unpi:parser: --- parseNext [254,1,100,1,0,100,254,3,68,128,0,1,21,211] [2024-09-14 18:57:19] debug: zh:zstack:unpi:parser: --> parsed 1 - 3 - 4 - 1 - [0] - 100 [2024-09-14 18:57:19] debug: zh:zstack:znp: SRSP: <-- AF - dataRequest - {"status":0} [2024-09-14 18:57:19] debug: zh:zstack:unpi:parser: --- parseNext [254,3,68,128,0,1,21,211] [2024-09-14 18:57:19] debug: zh:zstack:unpi:parser: --> parsed 3 - 2 - 4 - 128 - [0,1,21] - 211 [2024-09-14 18:57:19] debug: zh:zstack:znp: AREQ: <-- AF - dataConfirm - {"status":0,"endpoint":1,"transid":21} [2024-09-14 18:57:19] debug: zh:zstack:unpi:parser: --- parseNext []

8. I increase the brightness with the hardware switch again, now the light is finally on, the brightness is increased to 66 and the dimmer works fine again

[2024-09-14 18:57:26] debug: zh:zstack:unpi:parser: <-- [254,27,68,129,0,0,8,0,193,44,1,1,0,25,0,202,219,189,0,0,7,8,52,10,0,0,32,66,107,28,27,177] [2024-09-14 18:57:26] debug: zh:zstack:unpi:parser: --- parseNext [254,27,68,129,0,0,8,0,193,44,1,1,0,25,0,202,219,189,0,0,7,8,52,10,0,0,32,66,107,28,27,177] [2024-09-14 18:57:26] debug: zh:zstack:unpi:parser: --> parsed 27 - 2 - 4 - 129 - [0,0,8,0,193,44,1,1,0,25,0,202,219,189,0,0,7,8,52,10,0,0,32,66,107,28,27] - 177 [2024-09-14 18:57:26] debug: zh:zstack:znp: AREQ: <-- AF - incomingMsg - {"groupid":0,"clusterid":8,"srcaddr":11457,"srcendpoint":1,"dstendpoint":1,"wasbroadcast":0,"linkquality":25,"securityuse":0,"timestamp":12442570,"transseqnumber":0,"len":7,"data":{"type":"Buffer","data":[8,52,10,0,0,32,66]}} [2024-09-14 18:57:26] debug: zh:controller: Received payload: clusterID=8, address=11457, groupID=0, endpoint=1, destinationEndpoint=1, wasBroadcast=false, linkQuality=25, frame={"header":{"frameControl":{"frameType":0,"manufacturerSpecific":false,"direction":1,"disableDefaultResponse":false,"reservedBits":0},"transactionSequenceNumber":52,"commandIdentifier":10},"payload":[{"attrId":0,"dataType":32,"attrData":66}],"command":{"ID":10,"name":"report","parameters":[{"name":"attrId","type":33},{"name":"dataType","type":32},{"name":"attrData","type":1000}]}} [2024-09-14 18:57:26] debug: zh:controller:endpoint: ZCL command 0xa4c138b2beb2b14c/1 genLevelCtrl.defaultRsp({"cmdId":10,"statusCode":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":1,"reservedBits":0,"transactionSequenceNumber":52,"writeUndiv":false}) [2024-09-14 18:57:26] debug: zh:zstack: sendZclFrameToEndpointInternal 0xa4c138b2beb2b14c:11457/1 (0,0,1) [2024-09-14 18:57:26] debug: zh:zstack:znp: SREQ: --> AF - dataRequest - {"dstaddr":11457,"destendpoint":1,"srcendpoint":1,"clusterid":8,"transid":23,"options":0,"radius":30,"len":5,"data":{"type":"Buffer","data":[24,52,11,10,0]}} [2024-09-14 18:57:26] debug: zh:zstack:unpi:writer: --> frame [254,15,36,1,193,44,1,1,8,0,23,0,30,5,24,52,11,10,0,238] [2024-09-14 18:57:26] debug: zh:zstack:unpi:parser: --- parseNext [] [2024-09-14 18:57:26] debug: z2m: Received Zigbee message from 'EG Eingang Licht', type 'attributeReport', cluster 'genLevelCtrl', data '{"currentLevel":66}' from endpoint 1 with groupID 0 [2024-09-14 18:57:26] info: z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/EG Eingang Licht', payload '{"brightness":66,"device":{"applicationVersion":64,"dateCode":"","friendlyName":"EG Eingang Licht","hardwareVersion":1,"ieeeAddr":"0xa4c138b2beb2b14c","manufacturerID":4417,"manufacturerName":"_TZ3210_k1msuvg6","model":"TS110E_1gang_1","networkAddress":11457,"powerSource":"Mains (single phase)","stackVersion":0,"type":"Router","zclVersion":3},"linkquality":25,"max_brightness":140,"min_brightness":15,"power_on_behavior":"previous","state":"ON","switch_type":"momentary"}' [2024-09-14 18:57:26] debug: zh:zstack:unpi:parser: <-- [254,1,100,1,0,100,254,3,68,128,0,1,23,209] [2024-09-14 18:57:26] debug: zh:zstack:unpi:parser: --- parseNext [254,1,100,1,0,100,254,3,68,128,0,1,23,209] [2024-09-14 18:57:26] debug: zh:zstack:unpi:parser: --> parsed 1 - 3 - 4 - 1 - [0] - 100 [2024-09-14 18:57:26] debug: zh:zstack:znp: SRSP: <-- AF - dataRequest - {"status":0} [2024-09-14 18:57:26] debug: zh:zstack:unpi:parser: --- parseNext [254,3,68,128,0,1,23,209] [2024-09-14 18:57:26] debug: zh:zstack:unpi:parser: --> parsed 3 - 2 - 4 - 128 - [0,1,23] - 209 [2024-09-14 18:57:26] debug: zh:zstack:znp: AREQ: <-- AF - dataConfirm - {"status":0,"endpoint":1,"transid":23} [2024-09-14 18:57:26] debug: zh:zstack:unpi:parser: --- parseNext []

RoGu777 commented 3 days ago

I've been now looking into the code and found that there are 2 functions:

for _TZ3210_k1msuvg6 TS110E_light_onoff_brightness is used, for some other dimmers TS110E_onoff_brightness. So I've created an external converter with TS110E_onoff_brightness for _TZ3210_k1msuvg6 and after some tests it looks like it solves the problem.

here the converter:

const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const modernExtend = require('zigbee-herdsman-converters/lib/modernExtend');
const e = exposes.presets;
const ea = exposes.access;
const tuya = require('zigbee-herdsman-converters/lib/tuya');

const definition = {
    fingerprint: [
        {
            modelID: 'TS110E',
            manufacturerName: '_TZ3210_k1msuvg6',
        },
    ],
    model: 'TS110E_custom',
    vendor: 'Tuya',
    description: '1 channel dimmer customized',

    extend: [modernExtend.light({ powerOnBehavior: false, configureReporting: true })],
    fromZigbee: [tuya.fz.power_on_behavior_1, fz.TS110E_switch_type, fz.TS110E, fz.on_off],
    toZigbee: [tz.TS110E_onoff_brightness, tuya.tz.power_on_behavior_1, tz.TS110E_options],
    exposes: [e.power_on_behavior(), tuya.exposes.switchType(), e.min_brightness(), e.max_brightness()],
    configure: tuya.configureMagicPacket,
};

module.exports = definition;
Koenkk commented 1 day ago

Integrated the fix, thanks!

Changes will be available in the dev branch in a few hours from now.

kiksia95 commented 1 day ago

I am facing the same issue with 2 channel version of this dimmer TS110E _TZ3210_3mpwqzuu. Can the above converter be applied to 2CH version?

Also, I've noticed that the min.&max. brightness thresholds set up is not reflected in HA fronted still allowing to set the brightness below/above the thresholds.