[BUG] Philips Dimmer Button Controller V2 - Pressing button 4 results in Button 1 being registered

In version 2.2.8.136 there is a problem with the Philips Dimmer Button Controller V2. When pressing button 4, button 1 is registered.

In the logs, when I press buttons 1,2,3,4, the logs show 1,2,3,1

[dev:66](http://hubitat.sean-anderson.com/logs#dev66)2021-07-17 13:19:33.662 [info](http://hubitat.sean-anderson.com/device/edit/66)Downstairs Dimmer button 1 was pushed [physical]
[dev:66](http://hubitat.sean-anderson.com/logs#dev66)2021-07-17 13:19:33.658 [debug](http://hubitat.sean-anderson.com/device/edit/66)parse: [raw:catchall: 0104 0006 01 01 0040 00 AF53 01 00 0000 40 00 0000, profileId:0104, clusterId:0006, clusterInt:6, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:AF53, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:40, direction:00, data:[00, 00]]
[dev:66](http://hubitat.sean-anderson.com/logs#dev66)2021-07-17 13:19:33.054 [info](http://hubitat.sean-anderson.com/device/edit/66)Downstairs Dimmer button 3 was pushed [physical]
[dev:66](http://hubitat.sean-anderson.com/logs#dev66)2021-07-17 13:19:32.136 [debug](http://hubitat.sean-anderson.com/device/edit/66)parse: [raw:catchall: 0104 0008 01 01 0040 00 AF53 01 00 0000 02 00 011E0900, profileId:0104, clusterId:0008, clusterInt:8, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:AF53, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:00, data:[01, 1E, 09, 00]]
[dev:66](http://hubitat.sean-anderson.com/logs#dev66)2021-07-17 13:19:31.701 [info](http://hubitat.sean-anderson.com/device/edit/66)Downstairs Dimmer button 2 was pushed [physical]
[dev:66](http://hubitat.sean-anderson.com/logs#dev66)2021-07-17 13:19:30.781 [debug](http://hubitat.sean-anderson.com/device/edit/66)parse: [raw:catchall: 0104 0008 01 01 0040 00 AF53 01 00 0000 02 00 001E0900, profileId:0104, clusterId:0008, clusterInt:8, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:AF53, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:00, data:[00, 1E, 09, 00]]
[dev:66](http://hubitat.sean-anderson.com/logs#dev66)2021-07-17 13:19:29.475 [info](http://hubitat.sean-anderson.com/device/edit/66)Downstairs Dimmer button 1 was pushed [physical]
[dev:66](http://hubitat.sean-anderson.com/logs#dev66)2021-07-17 13:19:29.472 [debug](http://hubitat.sean-anderson.com/device/edit/66)parse: [raw:catchall: 0104 0006 01 01 0040 00 AF53 01 00 0000 01 00 , profileId:0104, clusterId:0006, clusterInt:6, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:AF53, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:01, direction:00, data:[]]

On the original device driver shows the following:

[dev:66](http://hubitat.sean-anderson.com/logs#dev66)2021-07-17 13:22:58.465 [info](http://hubitat.sean-anderson.com/device/edit/66)Downstairs Dimmer button 4 was pushed [physical]
[dev:66](http://hubitat.sean-anderson.com/logs#dev66)2021-07-17 13:22:58.461 [debug](http://hubitat.sean-anderson.com/device/edit/66)parse: [raw:catchall: 0104 0006 01 01 0040 00 AF53 01 00 0000 40 00 0000, profileId:0104, clusterId:0006, clusterInt:6, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:AF53, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:40, direction:00, data:[00, 00]]
[dev:66](http://hubitat.sean-anderson.com/logs#dev66)2021-07-17 13:22:57.670 [info](http://hubitat.sean-anderson.com/device/edit/66)Downstairs Dimmer button 3 was pushed [physical]
[dev:66](http://hubitat.sean-anderson.com/logs#dev66)2021-07-17 13:22:56.755 [debug](http://hubitat.sean-anderson.com/device/edit/66)parse: [raw:catchall: 0104 0008 01 01 0040 00 AF53 01 00 0000 02 00 011E0900, profileId:0104, clusterId:0008, clusterInt:8, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:AF53, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:00, data:[01, 1E, 09, 00]]
[dev:66](http://hubitat.sean-anderson.com/logs#dev66)2021-07-17 13:22:55.949 [info](http://hubitat.sean-anderson.com/device/edit/66)Downstairs Dimmer button 2 was pushed [physical]
[dev:66](http://hubitat.sean-anderson.com/logs#dev66)2021-07-17 13:22:55.035 [debug](http://hubitat.sean-anderson.com/device/edit/66)parse: [raw:catchall: 0104 0008 01 01 0040 00 AF53 01 00 0000 02 00 001E0900, profileId:0104, clusterId:0008, clusterInt:8, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:AF53, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:00, data:[00, 1E, 09, 00]]
[dev:66](http://hubitat.sean-anderson.com/logs#dev66)2021-07-17 13:22:53.882 [info](http://hubitat.sean-anderson.com/device/edit/66)Downstairs Dimmer button 1 was pushed [physical]
[dev:66](http://hubitat.sean-anderson.com/logs#dev66)2021-07-17 13:22:53.879 [debug](http://hubitat.sean-anderson.com/device/edit/66)parse: [raw:catchall: 0104 0006 01 01 0040 00 AF53 01 00 0000 01 00 , profileId:0104, clusterId:0006, clusterInt:6, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:AF53, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:01, direction:00, data:[]]

Interesting, for you at least it works.
I don't get the v2 to work. I used thebeamays code before. Removed all the switches, deleted the custom code and reconnected. (Just changing the device type did not do the trick). Now the device is found, but no button press/held is shown on the device page. Log says:

[dev:293](http://192.168.50.92/logs#pastdev293)2021-07-18 16:20:57.436 [info](http://192.168.50.92/device/edit/293)skipped:[raw:D840010001082100205B, dni:D840, endpoint:01, cluster:0001, size:08, attrId:0021, encoding:20, command:0A, value:5B, clusterInt:1, attrInt:33]

[dev:293](http://192.168.50.92/logs#pastdev293)2021-07-18 16:20:57.434 [debug](http://192.168.50.92/device/edit/293)parse: [raw:D840010001082100205B, dni:D840, endpoint:01, cluster:0001, size:08, attrId:0021, encoding:20, command:0A, value:5B, clusterInt:1, attrInt:33]

[dev:293](http://192.168.50.92/logs#pastdev293)2021-07-18 16:20:57.387 [info](http://192.168.50.92/device/edit/293)Switch Arbeitszimmer battery is 100%

[dev:293](http://192.168.50.92/logs#pastdev293)2021-07-18 16:20:57.385 [debug](http://192.168.50.92/device/edit/293)parse: [raw:D8400100010A2000201A, dni:D840, endpoint:01, cluster:0001, size:0A, attrId:0020, encoding:20, command:01, value:1A, clusterInt:1, attrInt:32]

[dev:293](http://192.168.50.92/logs#pastdev293)2021-07-18 16:20:56.302 [debug](http://192.168.50.92/device/edit/293)refresh

[dev:293](http://192.168.50.92/logs#pastdev293)2021-07-18 16:20:56.266 [warn](http://192.168.50.92/device/edit/293)configure...

[dev:293](http://192.168.50.92/logs#pastdev293)2021-07-18 16:20:25.353 [info](http://192.168.50.92/device/edit/293)Philips Dimmer Button Controller V2 battery is 100%

[dev:293](http://192.168.50.92/logs#pastdev293)2021-07-18 16:20:25.350 [debug](http://192.168.50.92/device/edit/293)parse: [raw:97790100010A2000201A, dni:9779, endpoint:01, cluster:0001, size:0A, attrId:0020, encoding:20, command:01, value:1A, clusterInt:1, attrInt:32]

[dev:293](http://192.168.50.92/logs#pastdev293)2021-07-18 16:20:22.466 [debug](http://192.168.50.92/device/edit/293)refresh

[dev:293](http://192.168.50.92/logs#pastdev293)2021-07-18 16:20:22.421 [warn](http://192.168.50.92/device/edit/293)configure...

[dev:293](http://192.168.50.92/logs#pastdev293)2021-07-18 16:20:22.402 [info](http://192.168.50.92/device/edit/293)installed...

Also with just one Switch it also discovers 3 things (as described in the topic with thebearmay code).

EDIT: Okay, when I wait till "all four devices" are discoverd, then it seems to work. Having issues with the Button Controller App now, but I will look into that.