Virtual dimmer created in Groups not working

I tried to create a group out of four Osram Lightify bulbs using the Groups app.

If I create the group as a switch, it turns on and off as expected. Setting the dimmer level doesn’t do anything, not surprising I guess since I set it up as a switch and not a dimmer.

But if I try to group the bulbs as a dimmer, I’m seeing some strange behavior. As far as I can tell, the group of bulbs turn off ok, but every time I try to turn on the group, somehow there is an extra command to set the level to 0 that’s getting sent and that’s messing things up?

Here are some logs. There’s no other app running any commands/events at the same time. I have the most recent hub firmware running. I’m using the generic Zigbee CT bulb driver with the Lightify bulbs. Thanks for any suggestions.

[dev:16](http://192.168.0.57/logs#dev16)2018-04-23 22:49:27.072:errorCannot invoke method toInteger() on null object on line null

[dev:45](http://192.168.0.57/logs#dev45)2018-04-23 22:49:26.975:infoDimmer S_Level 0

[dev:20](http://192.168.0.57/logs#dev20)2018-04-23 22:49:26.968:infoLiving Room Recessed Light 3 was turned on

[dev:45](http://192.168.0.57/logs#dev45)2018-04-23 22:49:26.920:infoDimmer S_On

[dev:16](http://192.168.0.57/logs#dev16)2018-04-23 22:49:26.915:infoLiving Room Recessed Light 1 is on

[dev:16](http://192.168.0.57/logs#dev16)2018-04-23 22:49:26.854:infoLiving Room Recessed Light 1 was turned on

[dev:19](http://192.168.0.57/logs#dev19)2018-04-23 22:49:25.754:errorCannot invoke method toInteger() on null object on line null

[dev:17](http://192.168.0.57/logs#dev17)2018-04-23 22:49:25.721:errorCannot invoke method toInteger() on null object on line null

[dev:20](http://192.168.0.57/logs#dev20)2018-04-23 22:49:25.571:errorCannot invoke method toInteger() on null object on line null

[dev:19](http://192.168.0.57/logs#dev19)2018-04-23 22:49:25.412:infoLiving Room Recessed Light 4 was turned on

[dev:17](http://192.168.0.57/logs#dev17)2018-04-23 22:49:25.374:infoLiving Room Recessed Light 2 was turned on

[dev:45](http://192.168.0.57/logs#dev45)2018-04-23 22:49:24.982:infoDimmer On

[dev:45](http://192.168.0.57/logs#dev45)2018-04-23 22:49:24.978:infoDimmer S_On

[dev:34](http://192.168.0.57/logs#dev34)2018-04-23 22:49:17.198:infoBedroom Motion Sensor is active

[dev:17](http://192.168.0.57/logs#dev17)2018-04-23 22:49:08.204:infoLiving Room Recessed Light 2 was turned off

[dev:16](http://192.168.0.57/logs#dev16)2018-04-23 22:49:08.185:infoLiving Room Recessed Light 1 was turned off

[dev:19](http://192.168.0.57/logs#dev19)2018-04-23 22:49:06.779:infoLiving Room Recessed Light 4 was turned off

[dev:20](http://192.168.0.57/logs#dev20)2018-04-23 22:49:06.738:infoLiving Room Recessed Light 3 was turned off

[dev:45](http://192.168.0.57/logs#dev45)2018-04-23 22:49:06.335:infoDimmer Off

[dev:45](http://192.168.0.57/logs#dev45)2018-04-23 22:49:06.331:infoDimmer S_Off

Hmm, it doesn’t seem to be the grouped dimmer, but the lightify bulbs themselves. i see a similar error message after deleting the group dimmer if I select each individual bulb in the button controller app to dim to level 100 when I push a button too.

[dev:16](http://192.168.0.57/logs#dev16)2018-04-23 23:27:16.097:errorCannot invoke method toInteger() on null object on line null

[dev:17](http://192.168.0.57/logs#dev17)2018-04-23 23:27:16.052:errorCannot invoke method toInteger() on null object on line null

[dev:20](http://192.168.0.57/logs#dev20)2018-04-23 23:27:16.024:errorCannot invoke method toInteger() on null object on line null

[dev:16](http://192.168.0.57/logs#dev16)2018-04-23 23:27:15.766:infoLiving Room Recessed Light 1 was turned on

[dev:17](http://192.168.0.57/logs#dev17)2018-04-23 23:27:15.744:infoLiving Room Recessed Light 2 was turned on

[dev:20](http://192.168.0.57/logs#dev20)2018-04-23 23:27:15.706:infoLiving Room Recessed Light 3 is on

[dev:19](http://192.168.0.57/logs#dev19)2018-04-23 23:27:14.682:errorCannot invoke method toInteger() on null object on line null

[dev:20](http://192.168.0.57/logs#dev20)2018-04-23 23:27:14.618:errorCannot invoke method toInteger() on null object on line null

[dev:16](http://192.168.0.57/logs#dev16)2018-04-23 23:27:14.538:errorCannot invoke method toInteger() on null object on line null

[dev:19](http://192.168.0.57/logs#dev19)2018-04-23 23:27:14.321:infoLiving Room Recessed Light 4 was turned on

[dev:20](http://192.168.0.57/logs#dev20)2018-04-23 23:27:14.198:infoLiving Room Recessed Light 3 was turned on

[dev:18](http://192.168.0.57/logs#dev18)2018-04-23 23:27:13.551:debugParse returned [name:pushed, value:1, descriptionText:Living Room Recessed Lights Switch button 1 was pushed, isStateChange:true]

Have you looked at these devices in Device detail page? Try setting a level there, and see what it does.

When I paired the bulbs to my hub (couple weeks ago), I did test dimming manually and didn’t have any problem.

I will test again though to see if anything has changed. Thanks.

So I do get the same error message when manually setting the level for each bulb from the individual device pages. But each bulb responds to the set level commands exactly how it should. Not sure if it’s always been that way, since I had no reason to check the log before whenever I manually set the level, I guess.

2018-04-25 20:27:05.665:errorCannot invoke method toInteger() on null object on line null

2018-04-25 20:26:34.644:errorCannot invoke method toInteger() on null object on line null

What driver are you using for these bulbs?

Generic zigbee ct bulb (dev).

Please go into the driver details for each one, then hit the configure command, it doesn’t look like they initialized properly

I believe I tried that at one point, based on something I read that you posted in another thread.

But I’ll try that again. Is there any output from the log I can expect if the configure command is received by the bulbs? Maybe in the zigbee log?

Tried to configure each of the four bulbs. Same deal with that error message in the logs.

2018-04-25 22:52:49.146:errorCannot invoke method toInteger() on null object on line null

2018-04-25 22:52:49.072:errorCannot invoke method toInteger() on null object on line null

2018-04-25 22:52:48.931:infoLiving Room Recessed Light 4 is on

2018-04-25 22:52:48.199:warnconfigure...

2018-04-25 22:52:35.389:errorCannot invoke method toInteger() on null object on line null

2018-04-25 22:52:35.323:errorCannot invoke method toInteger() on null object on line null

2018-04-25 22:52:35.179:infoLiving Room Recessed Light 3 is on

2018-04-25 22:52:34.431:warnconfigure...

2018-04-25 22:52:12.220:errorCannot invoke method toInteger() on null object on line null

2018-04-25 22:52:12.155:errorCannot invoke method toInteger() on null object on line null

2018-04-25 22:52:12.014:infoLiving Room Recessed Light 2 is on

2018-04-25 22:52:11.261:warnconfigure...

2018-04-25 22:51:32.617:errorCannot invoke method toInteger() on null object on line null

2018-04-25 22:51:32.550:errorCannot invoke method toInteger() on null object on line null

2018-04-25 22:51:32.399:infoLiving Room Recessed Light 1 is on

2018-04-25 22:51:31.575:warnconfigure...

If you enable debug logging, then run configure, you should see a call to refresh, and based on the logs that appears to be running What actual bulb is this?, if you do a set level from the driver does the error go away?
Also can you post a screen shot of the driver details?, that will help me track this down.

I’m not able to reproduce this issue.
I created a dimmer group, then added the one CT bulb I have that uses the mentioned driver.
I was able to control that bulb via the group dimmer virtual device without any errors.

OK, thanks for the follow-up. I will post the additional requested info when I get home from work later today.

1 Like

So these are Osram Lightify color temperature bulbs, in an MR16 shape.

If I try to dim each bulb individually from the device settings page, the set level command functions correctly, even though I was getting that same error.

When I tried to control the bulbs as a dimmer group or set level for the individual bulbs with a button, the behavior of the lights was bizarre as I mentioned above. The bulbs can be turned on and off just fine by a button press, or as a group switch if I configure them as switches in the button controller app or group app, respectively.

Here’s the output when I configured one of the bulbs with debug logging enabled. I got the same results with each of the bulbs.

2018-04-26 14:39:02.392:debugParse: catchall: 0104 0006 01 01 0040 00 F891 00 00 0000 07 01 00

2018-04-26 14:39:01.390:errorCannot invoke method toInteger() on null object on line null

2018-04-26 14:39:01.378:debugParse: read attr - raw: F8910103000C0700214D01, dni: F891, endpoint: 01, cluster: 0300, size: 0C, attrId: 0007, encoding: 21, value: 014D

2018-04-26 14:39:01.321:errorCannot invoke method toInteger() on null object on line null

2018-04-26 14:39:01.263:debugParse: read attr - raw: F8910100080A000020FE, dni: F891, endpoint: 01, cluster: 0008, size: 0A, attrId: 0000, encoding: 20, value: FE

2018-04-26 14:39:01.135:infoLiving Room Recessed Light 1 is off

2018-04-26 14:39:01.134:debugevt- rawValue:0, value: off, descT: Living Room Recessed Light 1 is off

2018-04-26 14:39:01.125:debugParse: read attr - raw: F8910100060A00001000, dni: F891, endpoint: 01, cluster: 0006, size: 0A, attrId: 0000, encoding: 10, value: 00

2018-04-26 14:39:01.010:debugParse: catchall: 0104 0300 01 01 0040 00 F891 00 00 0000 07 01 8D000000

2018-04-26 14:39:00.916:debugParse: catchall: 0104 0008 01 01 0040 00 F891 00 00 0000 07 01 00

2018-04-26 14:39:00.823:debugParse: catchall: 0104 0006 01 01 0040 00 F891 00 00 0000 07 01 00

2018-04-26 14:39:00.360:debugrefresh

2018-04-26 14:39:00.358:debugConfiguring Reporting

2018-04-26 14:39:00.330:warnconfigure...

Also is this what you mean by driver details? If not, please let me know. Thanks. When I first paired the bulbs, the hub found them, but only as a "device" so I changed the driver to this one. I could try it as generic zigbee dimmer to see if that does anything.

FWIW, if I change the driver to a generic zigbee dimmer, I can configure and the error message goes away. If I go back to the generic zigbee CT (dev) driver, the error returns.

2018-04-28 12:28:13.368:errorCannot invoke method toInteger() on null object on line null

2018-04-28 12:28:13.169:infoLiving Room Recessed Light 1 is 100%

2018-04-28 12:28:13.064:infoLiving Room Recessed Light 1 is off

2018-04-28 12:28:12.202:warnconfigure...

2018-04-28 12:27:37.311:infoLiving Room Recessed Light 1 was set to 100%

2018-04-28 12:27:37.246:infoLiving Room Recessed Light 1 is off

2018-04-28 12:27:36.304:warnconfigure...

I also tried resetting the bulbs to see what that would do. I didn’t remove them from the hub, just reset them by flipping the power on/off at the designated combination. This is what came back.

2018-04-28 12:41:43.143:warnconfigure...

2018-04-28 12:41:29.227:errorFor input string: "014D210007607D210004616B210003FE20000100" on line null

2018-04-28 12:41:23.472:errorFor input string: "014D210007607D210004616B210003FE20000100" on line null

2018-04-28 12:41:18.337:errorFor input string: "014D210007607D210004616B210003FE20000100" on line null