Driver for Aqara light switch with Neutral (UK)

Hi,

I've been using a modified version of the Markus Liljergren (https://oh-lalabs.com) Zigbee Aqara wall switch driver:

https://raw.githubusercontent.com/markus-li/Hubitat/release/drivers/expanded/zigbee-aqara-wall-switch-expanded.groovy"

It's no longer supported, is there an alternative version?

It didn't support my switch, I hacked it slightly to support with little knowledge 'lumi.switch.n3acn3' and now it generally works, but I get a constant warning:

dev:382023-07-24 16:05:50.670warnUnknown model (146C756D692E7377697463682E62326E61636E3032) - PLEASE REPORT THIS LOG TO THE DEV - description:read attr - raw: B3B40100005001FF42246410006510000328199839000000009539C9A3D34105212B009A20100821401009210002, dni: B3B4, endpoint: 01, cluster: 0000, size: 50, attrId: FF01, encoding: 42, command: 0A, value: 246410006510000328199839000000009539C9A3D34105212B009A20100821401009210002 | parseMap:[raw:B3B40100005001FF42246410006510000328199839000000009539C9A3D34105212B009A20100821401009210002, dni:B3B4, endpoint:01, cluster:0000, size:50, attrId:FF01, encoding:41, command:0A, value:[raw:[openClose:00, switch2:00, deviceTemperature:19, power:00000000, consumption:41D3A3C9, RSSI_dB:002B, unknown7:10, unknown3:1040, unknown4:0200], openClose:false, switch2:false, deviceTemperature:25, power:0.0, consumption:26.454973, RSSI_dB:43, unknown7:16, unknown3:4160, unknown4:512], clusterInt:0, attrInt:65281]

Any suggestions welcomed.

Thanks
Paul

Data:

  • endpointId: 01
  • application: 40
  • buttonCombos: 1
  • driver: v1.0.1.1123
  • inClusters: 0000,0004,0003,0006,0010,0005,000A,0001,0002
  • manufacturer: LUMI
  • model: 146C756D692E7377697463682E62326E61636E3032
  • outClusters: 0019,000A
  • physicalButtons: 2
  • softwareBuild:

second similar switch, also errors:

  • endpointId: 01
  • application: 5A
  • buttonCombos: 3
  • driver: v1.0.1.1123
  • inClusters: 0000,0004,0003,0006,0005,0002,000A,FCC0,0B04
  • manufacturer: LUMI
  • model: lumi.switch.n3acn3
  • outClusters: 0019,000A,FCC0
  • physicalButtons: 3
  • softwareBuild:

There are many postings of drives for Aqara, and I can no longer tell which would be the latest and actually work properly.

For example the Aqara switch drive, so far I have not found a solution for when we command manual, that the status in HE is updated.

If anyone can help by trying to consolidate that would be a latest version.

Thanks.

Kind of an inherent problem with work done by community developers. There’s not that much of an incentive for any one person to “consolidate” things, which may not even be possible in many cases.

Perhaps you can get things started by linking to each GitHub repository that you’re trying to keep straight.

This switch is not paired successfully to HE. Aqara gadget are often difficult to pair to hubs different than Aqara.

You need to delete the device (use the red ‘REMOVE DEVICE’ button at the bottom of the web page) and then to pair it again. Observe the ‘model’ value in the Data section, should NOT be this long alphanumeric string.

The second device is different than the first one. I propose to try to fix the problem with just one of them, and when done - proceed with the second one .

@PaulB was there any progress on solving the issues with the two Aqara wall switches?

Sorry am away from home. Will be back and will test next week.

1 Like

Hi,
so the initial one paired again now seems to work.

The second one, which appears to be paired correctly produces a warning:

[

dev:47](http://192.168.1.98/logs?tab=past&deviceId=47#)2023-08-27 16:21:22.835[warn](http://192.168.1.98/logs?tab=past&deviceId=47#)Unhandled Event PLEASE REPORT TO DEV - description:read attr - raw: 9BDB01FCC080F700413C0328190521010008215A01092100030F23000090000C200064100065100066100095395B9CCE3E963937A71B45973900000000983900C0D73A9A2000, dni: 9BDB, endpoint: 01, cluster: FCC0, size: 80, attrId: 00F7, encoding: 41, command: 0A, value: 3C0328190521010008215A01092100030F23000090000C200064100065100066100095395B9CCE3E963937A71B45973900000000983900C0D73A9A2000 | msgMap:[raw:9BDB01FCC080F700413C0328190521010008215A01092100030F23000090000C200064100065100066100095395B9CCE3E963937A71B45973900000000983900C0D73A9A2000, dni:9BDB, endpoint:01, cluster:FCC0, size:80, attrId:00F7, encoding:41, command:0A, value:0328190521010008215A01092100030F23000090000C200064100065100066100095395B9CCE3E963937A71B45973900000000983900C0D73A9A2000, clusterInt:64704, attrInt:247]

[dev:47](http://192.168.1.98/logs?tab=past&deviceId=47#)2023-08-27 16:15:23.977[warn](http://192.168.1.98/logs?tab=past&deviceId=47#)Unhandled Event PLEASE REPORT TO DEV - description:read attr - raw: 9BDB01FCC080F700413C03281A0521010008215A01092100030F23000090000C200064100065100066100095395B9CCE3E9639039F1B459739000000009839007E143C9A2000, dni: 9BDB, endpoint: 01, cluster: FCC0, size: 80, attrId: 00F7, encoding: 41, command: 0A, value: 3C03281A0521010008215A01092100030F23000090000C200064100065100066100095395B9CCE3E9639039F1B459739000000009839007E143C9A2000 | msgMap:[raw:9BDB01FCC080F700413C03281A0521010008215A01092100030F23000090000C200064100065100066100095395B9CCE3E9639039F1B459739000000009839007E143C9A2000, dni:9BDB, endpoint:01, cluster:FCC0, size:80, attrId:00F7, encoding:41, command:0A, value:03281A0521010008215A01092100030F23000090000C200064100065100066100095395B9CCE3E9639039F1B459739000000009839007E143C9A2000, clusterInt:64704, attrInt:247]

Ideas?

Thaks
Paul

lumi.switch.n3acn3 is not included in Markus's last version drivers.

If anyone who has this switch has made it work, let me know and I can merge the code changes into the latest Zigbee - Aqara Wall Switch (w/ healthStatus) version.

Has no-one else come across this switch?

I dont suppose I can provide you enough logs so you can make the changes without the switch? Just asking :wink:

I don’t own any Aqara mains-powered switches, so practically I can’t test anything..

we can try - send me some debug logs when you press a physical switch.

Before doing this, please publish the device fingerprint, using the HE built-in ‘Device’ driver ( Get Info button)

Thank you, lets see if I can provide what you need.

dev:1572023-10-06 16:00:59.166infoZigbee parsed:[raw:180F2B00120A5500210100, dni:180F, endpoint:2B, cluster:0012, size:0A, attrId:0055, encoding:21, command:0A, value:0001, clusterInt:18, attrInt:85]
dev:1572023-10-06 16:00:58.761infoZigbee parsed:[raw:180F0300061600001000F50023000F1803, dni:180F, endpoint:03, cluster:0006, size:16, attrId:0000, encoding:10, command:0A, value:00, clusterInt:6, attrInt:0, additionalAttrs:[[value:03180F00, encoding:23, attrId:00F5, consumedBytes:7, attrInt:245]]]
dev:1572023-10-06 16:00:57.604infoZigbee parsed:[raw:180F2A00120A5500210100, dni:180F, endpoint:2A, cluster:0012, size:0A, attrId:0055, encoding:21, command:0A, value:0001, clusterInt:18, attrInt:85]
dev:1572023-10-06 16:00:57.272infoZigbee parsed:[raw:180F0200061600001000F50023000F1803, dni:180F, endpoint:02, cluster:0006, size:16, attrId:0000, encoding:10, command:0A, value:00, clusterInt:6, attrInt:0, additionalAttrs:[[value:03180F00, encoding:23, attrId:00F5, consumedBytes:7, attrInt:245]]]
dev:1572023-10-06 16:00:56.491infoZigbee parsed:[raw:180F2900120A5500210100, dni:180F, endpoint:29, cluster:0012, size:0A, attrId:0055, encoding:21, command:0A, value:0001, clusterInt:18, attrInt:85]
dev:1572023-10-06 16:00:56.024infoZigbee parsed:[raw:180F0100061600001001F50023000F1803, dni:180F, endpoint:01, cluster:0006, size:16, attrId:0000, encoding:10, command:0A, value:01, clusterInt:6, attrInt:0, additionalAttrs:[[value:03180F00, encoding:23, attrId:00F5, consumedBytes:7, attrInt:245]]]
dev:1572023-10-06 16:00:44.560infoZigbee parsed:[raw:180F2900120A5500210100, dni:180F, endpoint:29, cluster:0012, size:0A, attrId:0055, encoding:21, command:0A, value:0001, clusterInt:18, attrInt:85]

What else can I get that can help?
Thanks
Paul

Oh what I forgot to mention is that I'm using this driver, as it has 'some' support for this device.

And, sorry, those logs were on a newly added device, before I added the faulty driver!

dev:1572023-10-06 16:08:45.494infoButton 39 was pushed
dev:1572023-10-06 16:08:45.492infoMultistate - endpoint: 43, taps: 1, physicalButton: 39, physicalButtons: 0, button: 39
dev:1572023-10-06 16:08:45.489infoMultistate - description:read attr - raw: 180F2B00120A5500210100, dni: 180F, endpoint: 2B, cluster: 0012, size: 0A, attrId: 0055, encoding: 21, command: 0A, value: 0100 | parseMap:[raw:180F2B00120A5500210100, dni:180F, endpoint:2B, cluster:0012, size:0A, attrId:0055, encoding:21, command:0A, value:0001, clusterInt:18, attrInt:85, valueParsed:1]
dev:1572023-10-06 16:08:45.311infoWATT - description:read attr - raw: 180F15000C0E55003900000000, dni: 180F, endpoint: 15, cluster: 000C, size: 0E, attrId: 0055, encoding: 39, command: 0A, value: 00000000 | parseMap:[raw:180F15000C0E55003900000000, dni:180F, endpoint:15, cluster:000C, size:0E, attrId:0055, encoding:39, command:0A, value:00000000, clusterInt:12, attrInt:85, valueParsed:0.0]
dev:1572023-10-06 16:08:45.002errorjava.lang.NumberFormatException: null on line 520 (method parse)
dev:1572023-10-06 16:08:44.997infoOn/Off Button press - description:read attr - raw: 180F0300061600001000F50023000F1803, dni: 180F, endpoint: 03, cluster: 0006, size: 16, attrId: 0000, encoding: 10, command: 0A, value: 00F50023000F1803 | parseMap:[raw:180F0300061600001000F50023000F1803, dni:180F, endpoint:03, cluster:0006, size:16, attrId:0000, encoding:10, command:0A, value:00, clusterInt:6, attrInt:0, additionalAttrs:[[value:03180F00, encoding:23, attrId:00F5, consumedBytes:7, attrInt:245]], valueParsed:false]
dev:1572023-10-06 16:08:44.235infoButton 38 was pushed
dev:1572023-10-06 16:08:44.233infoMultistate - endpoint: 42, taps: 1, physicalButton: 38, physicalButtons: 0, button: 38
dev:1572023-10-06 16:08:44.230infoMultistate - description:read attr - raw: 180F2A00120A5500210100, dni: 180F, endpoint: 2A, cluster: 0012, size: 0A, attrId: 0055, encoding: 21, command: 0A, value: 0100 | parseMap:[raw:180F2A00120A5500210100, dni:180F, endpoint:2A, cluster:0012, size:0A, attrId:0055, encoding:21, command:0A, value:0001, clusterInt:18, attrInt:85, valueParsed:1]
dev:1572023-10-06 16:08:43.640errorjava.lang.NumberFormatException: null on line 520 (method parse)
dev:1572023-10-06 16:08:43.637infoOn/Off Button press - description:read attr - raw: 180F0200061600001000F50023000F1803, dni: 180F, endpoint: 02, cluster: 0006, size: 16, attrId: 0000, encoding: 10, command: 0A, value: 00F50023000F1803 | parseMap:[raw:180F0200061600001000F50023000F1803, dni:180F, endpoint:02, cluster:0006, size:16, attrId:0000, encoding:10, command:0A, value:00, clusterInt:6, attrInt:0, additionalAttrs:[[value:03180F00, encoding:23, attrId:00F5, consumedBytes:7, attrInt:245]], valueParsed:false]
dev:1572023-10-06 16:08:42.399infoButton 37 was pushed
dev:1572023-10-06 16:08:42.396infoMultistate - endpoint: 41, taps: 1, physicalButton: 37, physicalButtons: 0, button: 37
dev:1572023-10-06 16:08:42.392infoMultistate - description:read attr - raw: 180F2900120A5500210100, dni: 180F, endpoint: 29, cluster: 0012, size: 0A, attrId: 0055, encoding: 21, command: 0A, value: 0100 | parseMap:[raw:180F2900120A5500210100, dni:180F, endpoint:29, cluster:0012, size:0A, attrId:0055, encoding:21, command:0A, value:0001, clusterInt:18, attrInt:85, valueParsed:1]
dev:1572023-10-06 16:08:42.020errorjava.lang.NumberFormatException: null on line 520 (method parse)
dev:1572023-10-06 16:08:41.988infoOn/Off Button press - description:read attr - raw: 180F0100061600001000F50023000F1803, dni: 180F, endpoint: 01, cluster: 0006, size: 16, attrId: 0000, encoding: 10, command: 0A, value: 00F50023000F1803 | parseMap:[raw:180F0100061600001000F50023000F1803, dni:180F, endpoint:01, cluster:0006, size:16, attrId:0000, encoding:10, command:0A, value:00, clusterInt:6, attrInt:0, additionalAttrs:[[value:03180F00, encoding:23, attrId:00F5, consumedBytes:7, attrInt:245]], valueParsed:false]
dev:1572023-10-06 16:08:35.864infoWATT - description:read attr - raw: 180F15000C0E550039D076FD3E, dni: 180F, endpoint: 15, cluster: 000C, size: 0E, attrId: 0055, encoding: 39, command: 0A, value: D076FD3E | parseMap:[raw:180F15000C0E550039D076FD3E, dni:180F, endpoint:15, cluster:000C, size:0E, attrId:0055, encoding:39, command:0A, value:3EFD76D0, clusterInt:12, attrInt:85, valueParsed:0.4950471]
dev:1572023-10-06 16:08:34.904infoWATT - description:read attr - raw: 180F15000C0E55003900000000, dni: 180F, endpoint: 15, cluster: 000C, size: 0E, attrId: 0055, encoding: 39, command: 0A, value: 00000000 | parseMap:[raw:180F15000C0E55003900000000, dni:180F, endpoint:15, cluster:000C, size:0E, attrId:0055, encoding:39, command:0A, value:00000000, clusterInt:12, attrInt:85, valueParsed:0.0]
dev:1572023-10-06 16:08:32.867infoWATT - description:read attr - raw: 180F15000C0E5500395011DA3E, dni: 180F, endpoint: 15, cluster: 000C, size: 0E, attrId: 0055, encoding: 39, command: 0A, value: 5011DA3E | parseMap:[raw:180F15000C0E5500395011DA3E, dni:180F, endpoint:15, cluster:000C, size:0E, attrId:0055, encoding:39, command:0A, value:3EDA1150, clusterInt:12, attrInt:85, valueParsed:0.42591333]
dev:1572023-10-06 16:08:31.858infoWATT - description:read attr - raw: 180F15000C0E55003900000000, dni: 180F, endpoint: 15, cluster: 000C, size: 0E, attrId: 0055, encoding: 39, command: 0A, value: 00000000 | parseMap:[raw:180F15000C0E55003900000000, dni:180F, endpoint:15, cluster:000C, size:0E, attrId:0055, encoding:39, command:0A, value:00000000, clusterInt:12, attrInt:85, valueParsed:0.0]
dev:1572023-10-06 16:08:29.863infoWATT - description:read attr - raw: 180F15000C0E5500393058EB3E, dni: 180F, endpoint: 15, cluster: 000C, size: 0E, attrId: 0055, encoding: 39, command: 0A, value: 3058EB3E | parseMap:[raw:180F15000C0E5500393058EB3E, dni:180F, endpoint:15, cluster:000C, size:0E, attrId:0055, encoding:39, command:0A, value:3EEB5830, clusterInt:12, attrInt:85, valueParsed:0.4596572]
dev:1572023-10-06 16:08:28.867infoWATT - description:read attr - raw: 180F15000C0E55003900000000, dni: 180F, endpoint: 15, cluster: 000C, size: 0E, attrId: 0055, encoding: 39, command: 0A, value: 00000000 | parseMap:[raw:180F15000C0E55003900000000, dni:180F, endpoint:15, cluster:000C, size:0E, attrId:0055, encoding:39, command:0A, value:00000000, clusterInt:12, attrInt:85, valueParsed:0.0]

This may be more useful!

Remembered screenshots preferred by some.

@PaulB thank you for the logs!
I hope that in a week or two will have the chance to look at this.

Many thanks, let me know if you need anything else.

I just realised you added this ages ago!. I noticed my name in the comments. I'll give it a test, thanks!

is it possible to get devices enabled with this driver to show up for use with the basic button controller?

I see other devices in there, but not switches controlled by this.

Thanks