Philips Hue Dimmer Switch V2

[dev:153](http://192.168.50.92/logs#pastdev153)2021-05-16 18:30:48.578 [debug](http://192.168.50.92/device/edit/153)Battery rawData: 28 Percent: 77

[dev:153](http://192.168.50.92/logs#pastdev153)2021-05-16 18:30:40.214 [debug](http://192.168.50.92/device/edit/153)refresh() returns [zdo bind 0x1D8F 0x01 0x01 0xFC00 {00178801092592D6} {}, delay 2000, he cr 0x1D8F 0x01 64512 0 24 30 30 {} {}, delay 2000, zdo bind 0x1D8F 0x01 0x01 0x0001 {00178801092592D6} {}, delay 2000, he cr 0x1D8F 0x01 1 32 32 7200 7200 {01} {}, delay 2000, he raw 0x1D8F 1 0x01 0x0001 {10 00 00 20 00}, delay 2000]

[dev:153](http://192.168.50.92/logs#pastdev153)2021-05-16 18:30:40.206 [debug](http://192.168.50.92/device/edit/153)configure() returns refresh()

[dev:153](http://192.168.50.92/logs#pastdev153)2021-05-16 18:30:24.349 [debug](http://192.168.50.92/device/edit/153)Battery rawData: 28 Percent: 77

[dev:153](http://192.168.50.92/logs#pastdev153)2021-05-16 18:30:16.010 [debug](http://192.168.50.92/device/edit/153)refresh() returns [zdo bind 0x2FB1 0x01 0x01 0xFC00 {00178801092592D6} {}, delay 2000, he cr 0x2FB1 0x01 64512 0 24 30 30 {} {}, delay 2000, zdo bind 0x2FB1 0x01 0x01 0x0001 {00178801092592D6} {}, delay 2000, he cr 0x2FB1 0x01 1 32 32 7200 7200 {01} {}, delay 2000, he raw 0x2FB1 1 0x01 0x0001 {10 00 00 20 00}, delay 2000]

[dev:153](http://192.168.50.92/logs#pastdev153)2021-05-16 18:30:16.004 [debug](http://192.168.50.92/device/edit/153)configure() returns refresh()

[dev:153](http://192.168.50.92/logs#pastdev153)2021-05-16 18:30:01.531 [debug](http://192.168.50.92/device/edit/153)Battery rawData: 28 Percent: 77

[dev:153](http://192.168.50.92/logs#pastdev153)2021-05-16 18:29:53.252 [debug](http://192.168.50.92/device/edit/153)refresh() returns [zdo bind 0x32AD 0x01 0x01 0xFC00 {00178801092592D6} {}, delay 2000, he cr 0x32AD 0x01 64512 0 24 30 30 {} {}, delay 2000, zdo bind 0x32AD 0x01 0x01 0x0001 {00178801092592D6} {}, delay 2000, he cr 0x32AD 0x01 1 32 32 7200 7200 {01} {}, delay 2000, he raw 0x32AD 1 0x01 0x0001 {10 00 00 20 00}, delay 2000]

[dev:153](http://192.168.50.92/logs#pastdev153)2021-05-16 18:29:53.247 [debug](http://192.168.50.92/device/edit/153)configure() returns refresh()

[dev:153](http://192.168.50.92/logs#pastdev153)2021-05-16 18:29:53.240 [error](http://192.168.50.92/device/edit/153)org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: user_driver_circlefield05082_Hue_Dimmer_Switch_v2_Ported_454.addChildDevice() is applicable for argument types: (java.lang.String, java.lang.String, org.codehaus.groovy.runtime.GStringImpl, null, java.util.LinkedHashMap) values: [hubitat, Virtual Button, 32AD:1, null, [completedSetup:true, ...]] (installed)

[dev:153](http://192.168.50.92/logs#pastdev153)2021-05-16 18:29:53.214 [debug](http://192.168.50.92/device/edit/153)..Creating child 1

[dev:153](http://192.168.50.92/logs#pastdev153)2021-05-16 18:29:53.194 [debug](http://192.168.50.92/device/edit/153)Creating 4 child buttons

[dev:153](http://192.168.50.92/logs#pastdev153)2021-05-16 18:29:53.193 [debug](http://192.168.50.92/device/edit/153)installed() called

I think there's a problem creating the child devices for each button. With this in the log it only says it's creating 1, with the other code before in the log it says on/off/down pushed, but also that the child devices are not found. This time I don't get the information back that a button was pushed. and it finds 4 devices in total (same screen basicly as posted above).

Looks like it doesn’t like the

[“pushed”, “held”].encodeAsJSON()

Need to play with it a bit...

Edit: Made a few changes - now generating 4 virtual buttons...

[dev:154](http://192.168.50.92/logs#pastdev154)2021-05-17 07:33:03.167 [debug](http://192.168.50.92/device/edit/154)setReleased()

[dev:154](http://192.168.50.92/logs#pastdev154)2021-05-17 07:33:02.101 [debug](http://192.168.50.92/device/edit/154)82AE:1 : Hue Dimmer Switch v2.1 Ported On button is pushed

[dev:154](http://192.168.50.92/logs#pastdev154)2021-05-17 07:33:02.089 [debug](http://192.168.50.92/device/edit/154)On button was pushed

[dev:154](http://192.168.50.92/logs#pastdev154)2021-05-17 07:33:02.087 [debug](http://192.168.50.92/device/edit/154)Button data : button=1 buttonState=02 buttonHoldTime=01

[dev:154](http://192.168.50.92/logs#pastdev154)2021-05-17 07:33:01.936 [debug](http://192.168.50.92/device/edit/154)Button data : button=1 buttonState=00 buttonHoldTime=00

[dev:154](http://192.168.50.92/logs#pastdev154)2021-05-17 07:32:56.284 [debug](http://192.168.50.92/device/edit/154)Battery rawData: 29 Percent: 88

[dev:154](http://192.168.50.92/logs#pastdev154)2021-05-17 07:32:47.920 [debug](http://192.168.50.92/device/edit/154)refresh() returns [zdo bind 0xEBD4 0x01 0x01 0xFC00 {00178801092592D6} {}, delay 2000, he cr 0xEBD4 0x01 64512 0 24 30 30 {} {}, delay 2000, zdo bind 0xEBD4 0x01 0x01 0x0001 {00178801092592D6} {}, delay 2000, he cr 0xEBD4 0x01 1 32 32 7200 7200 {01} {}, delay 2000, he raw 0xEBD4 1 0x01 0x0001 {10 00 00 20 00}, delay 2000]

[dev:154](http://192.168.50.92/logs#pastdev154)2021-05-17 07:32:47.914 [debug](http://192.168.50.92/device/edit/154)configure() returns refresh()

[dev:154](http://192.168.50.92/logs#pastdev154)2021-05-17 07:32:33.818 [debug](http://192.168.50.92/device/edit/154)Battery rawData: 29 Percent: 88

[dev:154](http://192.168.50.92/logs#pastdev154)2021-05-17 07:32:25.622 [debug](http://192.168.50.92/device/edit/154)refresh() returns [zdo bind 0x82AE 0x01 0x01 0xFC00 {00178801092592D6} {}, delay 2000, he cr 0x82AE 0x01 64512 0 24 30 30 {} {}, delay 2000, zdo bind 0x82AE 0x01 0x01 0x0001 {00178801092592D6} {}, delay 2000, he cr 0x82AE 0x01 1 32 32 7200 7200 {01} {}, delay 2000, he raw 0x82AE 1 0x01 0x0001 {10 00 00 20 00}, delay 2000]

[dev:154](http://192.168.50.92/logs#pastdev154)2021-05-17 07:32:25.617 [debug](http://192.168.50.92/device/edit/154)configure() returns refresh()

[dev:154](http://192.168.50.92/logs#pastdev154)2021-05-17 07:32:25.609 [error](http://192.168.50.92/device/edit/154)org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: java.util.ArrayList.encodeAsJson() is applicable for argument types: () values: [] Possible solutions: encodeAsBase64() (installed)

[dev:154](http://192.168.50.92/logs#pastdev154)2021-05-17 07:32:25.486 [debug](http://192.168.50.92/device/edit/154)..Creating child 4

[dev:154](http://192.168.50.92/logs#pastdev154)2021-05-17 07:32:25.407 [debug](http://192.168.50.92/device/edit/154)..Creating child 3

[dev:154](http://192.168.50.92/logs#pastdev154)2021-05-17 07:32:25.330 [debug](http://192.168.50.92/device/edit/154)..Creating child 2

[dev:154](http://192.168.50.92/logs#pastdev154)2021-05-17 07:32:25.214 [debug](http://192.168.50.92/device/edit/154)..Creating child 1

[dev:154](http://192.168.50.92/logs#pastdev154)2021-05-17 07:32:25.199 [debug](http://192.168.50.92/device/edit/154)Creating 4 child buttons

[dev:154](http://192.168.50.92/logs#pastdev154)2021-05-17 07:32:25.197 [debug](http://192.168.50.92/device/edit/154)installed() called

Thanks @thebearmay! Now, on the device page I have 4 component devices. The first button push is regocnized and stated correctly (as sometimes before), but the unit keeps blinking orange and no more button pushes are recognized. The other 3/4 devices are still found in the pairing process. And your virtual buttons are also in the Log Overview now (logs stating nothing, except beeing installed).

Missed a encodeAsJson... Fixed that, so hopefully....

dev:1592021-05-17 13:57:50.486 debugsetReleased()

dev:1592021-05-17 13:57:49.447 debugC873:1 : Hue Dimmer Switch v22 Ported On button is pushed

dev:1592021-05-17 13:57:49.444 debugOn button was pushed

dev:1592021-05-17 13:57:49.442 debugButton data : button=1 buttonState=02 buttonHoldTime=00

dev:1592021-05-17 13:57:49.372 debugButton data : button=1 buttonState=00 buttonHoldTime=00

dev:1592021-05-17 13:57:48.795 debugC873:2 : Hue Dimmer Switch v22 Ported Up button is pushed

dev:1592021-05-17 13:57:48.792 debugUp button was pushed

dev:1592021-05-17 13:57:48.790 debugButton data : button=2 buttonState=02 buttonHoldTime=00

dev:1592021-05-17 13:57:48.738 debugButton data : button=2 buttonState=00 buttonHoldTime=00

dev:1592021-05-17 13:57:48.166 debugC873:3 : Hue Dimmer Switch v22 Ported Down button is pushed

dev:1592021-05-17 13:57:48.159 debugDown button was pushed

dev:1592021-05-17 13:57:48.157 debugButton data : button=3 buttonState=02 buttonHoldTime=00

dev:1592021-05-17 13:57:48.147 debugButton data : button=3 buttonState=00 buttonHoldTime=00

dev:1592021-05-17 13:57:47.605 debugC873:4 : Hue Dimmer Switch v22 Ported Off button is pushed

dev:1592021-05-17 13:57:47.601 debugOff button was pushed

dev:1592021-05-17 13:57:47.600 debugButton data : button=4 buttonState=02 buttonHoldTime=01

dev:1592021-05-17 13:57:47.519 debugButton data : button=4 buttonState=00 buttonHoldTime=00

dev:1592021-05-17 13:57:46.817 debugsetReleased()

dev:1592021-05-17 13:57:46.791 debugC873:1 : Hue Dimmer Switch v22 Ported On button is pushed

dev:1592021-05-17 13:57:46.787 debugOn button was pushed

dev:1592021-05-17 13:57:46.786 debugButton data : button=1 buttonState=02 buttonHoldTime=00

dev:1592021-05-17 13:57:46.711 debugButton data : button=1 buttonState=00 buttonHoldTime=00

dev:1592021-05-17 13:57:45.823 debugsetReleased()

dev:1592021-05-17 13:57:45.797 debugC873:2 : Hue Dimmer Switch v22 Ported Up button is pushed

dev:1592021-05-17 13:57:45.792 debugUp button was pushed

dev:1592021-05-17 13:57:45.791 debugButton data : button=2 buttonState=02 buttonHoldTime=00

dev:1592021-05-17 13:57:45.744 debugButton data : button=2 buttonState=00 buttonHoldTime=00

dev:1592021-05-17 13:57:45.708 debugBattery rawData: 28 Percent: 77

dev:1592021-05-17 13:57:44.799 debugC873:3 : Hue Dimmer Switch v22 Ported Down button is pushed

dev:1592021-05-17 13:57:44.794 debugDown button was pushed

dev:1592021-05-17 13:57:44.792 debugButton data : button=3 buttonState=02 buttonHoldTime=00

dev:1592021-05-17 13:57:44.723 debugButton data : button=3 buttonState=00 buttonHoldTime=00

dev:1592021-05-17 13:57:44.669 debugsetReleased()

dev:1592021-05-17 13:57:43.614 debugC873:4 : Hue Dimmer Switch v22 Ported Off button is pushed

dev:1592021-05-17 13:57:43.610 debugOff button was pushed

dev:1592021-05-17 13:57:43.609 debugButton data : button=4 buttonState=02 buttonHoldTime=01

dev:1592021-05-17 13:57:43.508 debugButton data : button=4 buttonState=00 buttonHoldTime=00

dev:1592021-05-17 13:57:43.021 debugsetReleased()

dev:1592021-05-17 13:57:41.908 debugC873:1 : Hue Dimmer Switch v22 Ported On button is pushed

dev:1592021-05-17 13:57:41.895 debugOn button was pushed

dev:1592021-05-17 13:57:41.893 debugButton data : button=1 buttonState=02 buttonHoldTime=01

dev:1592021-05-17 13:57:41.799 debugButton data : button=1 buttonState=00 buttonHoldTime=00

dev:1592021-05-17 13:57:37.386 debugrefresh() returns [zdo bind 0x736E 0x01 0x01 0xFC00 {00178801092592D6} {}, delay 2000, he cr 0x736E 0x01 64512 0 24 30 30 {} {}, delay 2000, zdo bind 0x736E 0x01 0x01 0x0001 {00178801092592D6} {}, delay 2000, he cr 0x736E 0x01 1 32 32 7200 7200 {01} {}, delay 2000, he raw 0x736E 1 0x01 0x0001 {10 00 00 20 00}, delay 2000]

dev:1592021-05-17 13:57:37.381 debugconfigure() returns refresh()

dev:1592021-05-17 13:57:20.854 debugBattery rawData: 29 Percent: 88

dev:1592021-05-17 13:57:12.461 debugrefresh() returns [zdo bind 0xC873 0x01 0x01 0xFC00 {00178801092592D6} {}, delay 2000, he cr 0xC873 0x01 64512 0 24 30 30 {} {}, delay 2000, zdo bind 0xC873 0x01 0x01 0x0001 {00178801092592D6} {}, delay 2000, he cr 0xC873 0x01 1 32 32 7200 7200 {01} {}, delay 2000, he raw 0xC873 1 0x01 0x0001 {10 00 00 20 00}, delay 2000]

dev:1592021-05-17 13:57:12.369 debugconfigure() returns refresh()

dev:1592021-05-17 13:57:12.232 debug..Creating child 4

dev:1592021-05-17 13:57:12.147 debug..Creating child 3

dev:1592021-05-17 13:57:12.069 debug..Creating child 2

dev:1592021-05-17 13:57:11.982 debug..Creating child 1

dev:1592021-05-17 13:57:11.958 debugCreating 4 child buttons

dev:1592021-05-17 13:57:11.956 debuginstalled() called

Very close! At first I got a response on the device page for all buttons. I tried to use it in the button controllers app and realized that I do not get a response on the device page anymore.

Furthermore, first I tried to simply add this controller in addition to another (old one, which is working). And the app gave me an error, when clicking on the setup for each button: "java.lang.NullPointerException: Cannot invoke method tokenize() on null object on line 561 (selectActions)" I have no idea, if this is relevant though...

I appreciate your help. Thank you so much :slight_smile:

I suspect I may also have to port over the ST Child Button. What app is giving you the NPE error on 561 (might be a command or attribute I need to create in the child button)

It's the native button controller app from hubitat. Thus, I have no idea what's in line 561 of that code.

I find it just suspicious that the device page does not give me the button response anymore. As it would have lost connection to the thing again.

I'll have to play with the button controller a little to see if I can replicate using a virtual. In the mean time, I made a small change to the Dimmer code to use an interpretation of the ST Child Button instead of the Hubitat Virtual Button.

To use it you'll also need to add the child driver at:
https://raw.githubusercontent.com/thebearmay/hubitat/main/development/stChildButton.groovy

Edit:Hold off for a minute... Found a bug.

Okay, this is a new approach. With this code I don't get a button response on the device page.
Also the button controller keeps blinking orange after pairing with the hub is already done.
No error (or pushed button) in the Log, though.

I must be missing a response event (or two...)

I've added a release event to the Child, and added a couple of capabilities to both drivers. Hoping that's the issue...

Also made most of the logging optional.

Now I get the correct response in the device page. In the button control app, I still get "Cannot invoke method tokenize() on null object" error after selecting the new device in an already created button controller (what I mean with this: the old hue device as a configured item in this app). When I create a new button controller, chose the new device I do not get this error, but the device still does not work.

I was/am wondering if this is due to an old issue which excisted in ST already. As far as I remeber there was a problem with up/down/... The one button controller app used 1,2,3,4. I changed the button names in your code. On the device page the return is 1-4 now instead of up/down/... . I am not sure if the App needs another variable type or sth. though? Because the hubitat integrated "old" controller gives back 1-4 :slight_smile:

EDIT: When I use the push function on the device page it works! Not with the device itself. But also the "pushed" info, which changes with the push function does not change with the device itself. Only the "lastbuttonname" does.

Added code to both to use/process the result of sendButton at the child level; also allows for the push/hold/release commands in the dimmer driver to create sendButton requests.

Not sure if this will solve the tokenize issue or not, but it seems to close a logic loop for my thought process.

Did not solve the problem. But good for your thoughts! :smiley:

One more time....

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:10:08.559 [debug](http://192.168.50.92/device/edit/164)setReleased()

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:10:07.518 [debug](http://192.168.50.92/device/edit/164)D4FD:3 : Hue Dimmer Switch v23 Ported Down button is pushed

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:10:07.514 [debug](http://192.168.50.92/device/edit/164)Down button was pushed

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:10:07.510 [debug](http://192.168.50.92/device/edit/164)Button data : button=3 buttonState=02 buttonHoldTime=01

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:10:07.411 [debug](http://192.168.50.92/device/edit/164)Button data : button=3 buttonState=00 buttonHoldTime=00

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:09:26.263 [debug](http://192.168.50.92/device/edit/164)setReleased()

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:09:25.223 [debug](http://192.168.50.92/device/edit/164)D4FD:4 : Hue Dimmer Switch v23 Ported Off button is pushed

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:09:25.218 [debug](http://192.168.50.92/device/edit/164)Off button was pushed

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:09:25.216 [debug](http://192.168.50.92/device/edit/164)Button data : button=4 buttonState=02 buttonHoldTime=01

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:09:25.094 [debug](http://192.168.50.92/device/edit/164)Button data : button=4 buttonState=00 buttonHoldTime=00

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:09:07.914 [debug](http://192.168.50.92/device/edit/164)setReleased()

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:09:06.867 [debug](http://192.168.50.92/device/edit/164)D4FD:3 : Hue Dimmer Switch v23 Ported Down button is pushed

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:09:06.864 [debug](http://192.168.50.92/device/edit/164)Down button was pushed

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:09:06.862 [debug](http://192.168.50.92/device/edit/164)Button data : button=3 buttonState=02 buttonHoldTime=00

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:09:06.821 [debug](http://192.168.50.92/device/edit/164)setReleased()

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:09:06.812 [debug](http://192.168.50.92/device/edit/164)Button data : button=3 buttonState=00 buttonHoldTime=00

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:09:05.786 [debug](http://192.168.50.92/device/edit/164)D4FD:4 : Hue Dimmer Switch v23 Ported Off button is pushed

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:09:05.783 [debug](http://192.168.50.92/device/edit/164)Off button was pushed

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:09:05.781 [debug](http://192.168.50.92/device/edit/164)Button data : button=4 buttonState=02 buttonHoldTime=01

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:09:05.684 [debug](http://192.168.50.92/device/edit/164)setReleased()

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:09:05.647 [debug](http://192.168.50.92/device/edit/164)Button data : button=4 buttonState=00 buttonHoldTime=00

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:09:04.661 [debug](http://192.168.50.92/device/edit/164)D4FD:1 : Hue Dimmer Switch v23 Ported On button is pushed

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:09:04.657 [debug](http://192.168.50.92/device/edit/164)On button was pushed

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:09:04.655 [debug](http://192.168.50.92/device/edit/164)Button data : button=1 buttonState=02 buttonHoldTime=01

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:09:04.578 [debug](http://192.168.50.92/device/edit/164)Button data : button=1 buttonState=00 buttonHoldTime=00

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:08:55.588 [debug](http://192.168.50.92/device/edit/164)updated() called

[dev:164](http://192.168.50.92/logs#pastdev164)2021-05-18 20:06:58.631 [debug](http://192.168.50.92/device/edit/164)Battery rawData: 29 Percent: 88

Thanks for your effort! It seems alright in the log, but the Button Controller app does not work. The error there still excistis, log says:
[app:21](http://192.168.50.92/logs#pastapp21)2021-05-18 20:12:15.494 [error](http://192.168.50.92/installedapp/configure/21)java.lang.NullPointerException: Cannot invoke method tokenize() on null object on line 561 (selectActions)

Furthermore, on the device page the current state "pushed" does only show the correct button when I use the device page interface for pushed (which then works). Not with the device itself.

If you run out of ideas, no problem. I hoped to install the box of controllers. But if this causes trouble, I will have to wait for the new firmware :confused:

Reworked the driver a little - mayappears to work better, but will need to ask HE staff what line 561 is looking for.

Edit: Sounds like line 561 shouldn’t be erroring out unless the “rule” has gotten corrupted. What happens if you create a new controller?

Just updated the code with your newst work. What can I say? You are the man! Thank you so much for your time and effort :slight_smile: Lights turn on/off! One is lagging turning off a bit or just one of the two bulbs is going out, which I did not experience with the old controller, but I think this is not an issue with the device code and will have to create a new button controller to check it out.

Edit:
Alright, I caused the lagging/problem probably because in my try out sessions I put in the child devices into the controller as well, which caused an overload apperently.
It works now, but one thing I realized after kicking the child devices out and looking into the log:
dev:12021-05-20 12:24:43.783 infoEsstisch 1 was set to 50%

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:36.088 [debug](http://192.168.50.92/device/edit/164)D4FD:4 : Hue Dimmer Switch v23 Ported Off button is released

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:36.082 [debug](http://192.168.50.92/device/edit/164)setReleased()

[dev:2](http://192.168.50.92/logs#dev2)2021-05-20 12:24:35.444 [info](http://192.168.50.92/device/edit/2)Esstisch 2 was turned off

[dev:1](http://192.168.50.92/logs#dev1)2021-05-20 12:24:35.428 [info](http://192.168.50.92/device/edit/1)Esstisch 1 was turned off

[dev:2](http://192.168.50.92/logs#dev2)2021-05-20 12:24:35.183 [info](http://192.168.50.92/device/edit/2)Esstisch 2 was turned off

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:35.000 [debug](http://192.168.50.92/device/edit/164)D4FD:4 : Hue Dimmer Switch v23 Ported Off button is pushed

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:34.996 [debug](http://192.168.50.92/device/edit/164)Off button was pushed

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:34.991 [debug](http://192.168.50.92/device/edit/164)Button data : button=4 buttonState=02 buttonHoldTime=01

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:34.842 [debug](http://192.168.50.92/device/edit/164)Button data : button=4 buttonState=00 buttonHoldTime=00

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:34.134 [debug](http://192.168.50.92/device/edit/164)D4FD:1 : Hue Dimmer Switch v23 Ported On button is released

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:34.130 [debug](http://192.168.50.92/device/edit/164)setReleased()

[dev:1](http://192.168.50.92/logs#dev1)2021-05-20 12:24:33.660 [info](http://192.168.50.92/device/edit/1)Esstisch 1 was set to 30%

[dev:2](http://192.168.50.92/logs#dev2)2021-05-20 12:24:33.503 [info](http://192.168.50.92/device/edit/2)Esstisch 2 was turned on

[dev:1](http://192.168.50.92/logs#dev1)2021-05-20 12:24:33.488 [info](http://192.168.50.92/device/edit/1)Esstisch 1 was turned on

[dev:2](http://192.168.50.92/logs#dev2)2021-05-20 12:24:33.224 [info](http://192.168.50.92/device/edit/2)Esstisch 2 was turned on

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:33.057 [debug](http://192.168.50.92/device/edit/164)D4FD:1 : Hue Dimmer Switch v23 Ported On button is pushed

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:33.054 [debug](http://192.168.50.92/device/edit/164)On button was pushed

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:33.050 [debug](http://192.168.50.92/device/edit/164)Button data : button=1 buttonState=02 buttonHoldTime=01

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:32.957 [debug](http://192.168.50.92/device/edit/164)Button data : button=1 buttonState=00 buttonHoldTime=00

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:32.040 [debug](http://192.168.50.92/device/edit/164)D4FD:4 : Hue Dimmer Switch v23 Ported Off button is released

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:32.036 [debug](http://192.168.50.92/device/edit/164)setReleased()

[dev:2](http://192.168.50.92/logs#dev2)2021-05-20 12:24:31.425 [info](http://192.168.50.92/device/edit/2)Esstisch 2 was turned off

[dev:1](http://192.168.50.92/logs#dev1)2021-05-20 12:24:31.385 [info](http://192.168.50.92/device/edit/1)Esstisch 1 was turned off

[dev:2](http://192.168.50.92/logs#dev2)2021-05-20 12:24:31.120 [info](http://192.168.50.92/device/edit/2)Esstisch 2 was turned off

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:30.972 [debug](http://192.168.50.92/device/edit/164)D4FD:4 : Hue Dimmer Switch v23 Ported Off button is pushed

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:30.959 [debug](http://192.168.50.92/device/edit/164)Off button was pushed

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:30.955 [debug](http://192.168.50.92/device/edit/164)Button data : button=4 buttonState=02 buttonHoldTime=02

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:30.774 [debug](http://192.168.50.92/device/edit/164)Button data : button=4 buttonState=00 buttonHoldTime=00

[dev:1](http://192.168.50.92/logs#dev1)2021-05-20 12:24:23.643 [info](http://192.168.50.92/device/edit/1)Esstisch 1 was set to 50%

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:20.450 [debug](http://192.168.50.92/device/edit/164)D4FD:1 : Hue Dimmer Switch v23 Ported On button is released

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:20.447 [debug](http://192.168.50.92/device/edit/164)setReleased()

[dev:2](http://192.168.50.92/logs#dev2)2021-05-20 12:24:19.875 [info](http://192.168.50.92/device/edit/2)Esstisch 2 was turned on

[dev:1](http://192.168.50.92/logs#dev1)2021-05-20 12:24:19.863 [info](http://192.168.50.92/device/edit/1)Esstisch 1 was turned on

[dev:2](http://192.168.50.92/logs#dev2)2021-05-20 12:24:19.549 [info](http://192.168.50.92/device/edit/2)Esstisch 2 was turned on

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:19.393 [debug](http://192.168.50.92/device/edit/164)D4FD:1 : Hue Dimmer Switch v23 Ported On button is pushed

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:19.389 [debug](http://192.168.50.92/device/edit/164)On button was pushed

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:19.385 [debug](http://192.168.50.92/device/edit/164)Button data : button=1 buttonState=02 buttonHoldTime=01

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:19.280 [debug](http://192.168.50.92/device/edit/164)Button data : button=1 buttonState=00 buttonHoldTime=00

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:13.690 [debug](http://192.168.50.92/device/edit/164)D4FD:4 : Hue Dimmer Switch v23 Ported Off button is released

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:13.685 [debug](http://192.168.50.92/device/edit/164)setReleased()

[dev:1](http://192.168.50.92/logs#dev1)2021-05-20 12:24:13.483 [info](http://192.168.50.92/device/edit/1)Esstisch 1 was set to 4%

[dev:1](http://192.168.50.92/logs#dev1)2021-05-20 12:24:13.102 [info](http://192.168.50.92/device/edit/1)Esstisch 1 was turned off

[dev:2](http://192.168.50.92/logs#dev2)2021-05-20 12:24:13.074 [info](http://192.168.50.92/device/edit/2)Esstisch 2 was turned off

[dev:2](http://192.168.50.92/logs#dev2)2021-05-20 12:24:12.847 [info](http://192.168.50.92/device/edit/2)Esstisch 2 was turned off

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:12.626 [debug](http://192.168.50.92/device/edit/164)D4FD:4 : Hue Dimmer Switch v23 Ported Off button is pushed

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:12.622 [debug](http://192.168.50.92/device/edit/164)Off button was pushed

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:12.618 [debug](http://192.168.50.92/device/edit/164)Button data : button=4 buttonState=02 buttonHoldTime=01

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:12.495 [debug](http://192.168.50.92/device/edit/164)Button data : button=4 buttonState=00 buttonHoldTime=00

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:05.996 [debug](http://192.168.50.92/device/edit/164)D4FD:1 : Hue Dimmer Switch v23 Ported On button is released

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:05.992 [debug](http://192.168.50.92/device/edit/164)setReleased()

[dev:2](http://192.168.50.92/logs#dev2)2021-05-20 12:24:05.521 [info](http://192.168.50.92/device/edit/2)Esstisch 2 was turned on

[dev:1](http://192.168.50.92/logs#dev1)2021-05-20 12:24:05.327 [info](http://192.168.50.92/device/edit/1)Esstisch 1 was turned on

[dev:2](http://192.168.50.92/logs#dev2)2021-05-20 12:24:05.050 [info](http://192.168.50.92/device/edit/2)Esstisch 2 was turned on

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:04.907 [debug](http://192.168.50.92/device/edit/164)D4FD:1 : Hue Dimmer Switch v23 Ported On button is pushed

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:04.892 [debug](http://192.168.50.92/device/edit/164)On button was pushed

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:04.889 [debug](http://192.168.50.92/device/edit/164)Button data : button=1 buttonState=02 buttonHoldTime=01

[dev:164](http://192.168.50.92/logs#dev164)2021-05-20 12:24:04.811 [debug](http://192.168.50.92/device/edit/164)Button data : button=1 buttonState=00 buttonHoldTime=00

I have no idea where the "dimming to x% comes from" (I only have one controller, which is configured to off or /on) and also why the bulb sometimes gets 2 signals? I will look into it / create a new controller and check out if this is better :slight_smile:

1 Like

Glad to hear, finally wrapped my head around what the code was trying to do vs. just making the code compile and send messages. Can't look at the code right now, but from what I remember if you hold the Up or Down button it may be generating a Dimmer request (that I don't remember handling - so something to look at if it's an issue, just need to add the switchLevel capability to the child devices) through the setReleased method.

Howdy, apologies if this is easily solvable. I've got this switch and installed the driver and I can see in the device events that button presses are registering. However, I can't actually use any of the buttons in Button Controller. What do I need to do to make these buttons useable? Thanks for helping out a newb who's spent hours googling!!

In Devices, once I click on the device under current states, this is what is listed:

Current States

  • battery : 77
  • lastButtonName : On
  • lastButtonState : released
  • lastCheckin : 08-17 18:04:05

That's all! Shouldn't it also list the buttons that are available? Thanks again for the help!

Download the Hubitat app