Help with device driver

Good afternoon

I recently purchased this light. It was a gamble and I thought worst-case scenario, I can use it as a dumb light. But, it claimed to be Zigbee compatible so I thought why not!

I’ve installed it today and it has been found by Hubitat.

I’ve managed to set it up as an RGBW bulb and control the colour of the ring round the top, or as a CT bulb and control the temperature. But, frustratingly, I can’t set it up as one device to control either.

More importantly, is there a way of setting it up as two separate bulbs?

I would like to be able to switch on the ring at the top separately from the main light and vice versa.

I tried setting it up as a multi-endpoint, but that only seems to work for a switch and there’s no way of changing the type for the child devices (that I can see).

Or if it came to it, how complicated would it be to create a simple driver? I’ve no experience in Groovy, but I do do a bit of PHP, Javascript etc.

Thanks

Chris

If you set it up as an “Advanced Zigbee RGBW Bulb” , then in a dashboard you create a tile and it will have a color wheel in which you can set your color (including CT)

Note: Remember to hit save then configure when changing drivers.

Or you can set it in rules or from the device page. Your device page should look like this.

I would try giving AI a whirl to see if it can build you a driver. Like you said, it would need to have parent device, and two child devices, one child for the CT, and one child for the RGB ring light.

Give AI all the info you can and let it build a driver, explain how it needs a parent and two child devices, and have it include debug logging. Feed any errors in the logs back to the AI session that first built it. I have got AI to write me drivers this way, but it may take many iterations with AI.

Thanks. This has worked so that I can control colour temperature and colour separately.

Thanks. I might have a go at that, although AI isn’t my forte. I’ll see if there are some tutorials.