Open discussion - Issues with expanding Philips Hue integration (Hue Connect)

Replying to myself but I’ve had an hour to look at this and I’ve now solved my problem with Hue Phoenix bulbs. I can now add, control and otherwise use the following Hue Bulbs

Hue (Extended Color Lights) - Regular Hue bulbs with Color
Hue Lux (Dimmable Lights Models LWB006 and LWB004) - White lights with color temperature
Hue Bloom (Extended Color Lights) - Color changing light strips
Hue Phoenix (Downlighter Models HML006 and HML004) - Color temperature controllable downlighter.

In brief I did the following

  1. Delete the Hue Connect App

  2. In the IDE create a new SmartApp based on the Hue Connect App
    In the getDeviceType function add the following near the end of the if / else clause before the final else statement:

     else if (hueType?.equalsIgnoreCase("Color temperature light"))
      	return "Hue Phoenix"
    
  3. Manually create device handlers for the Hue Bridge, Hue Bulb and any other Hue bulbs you might have, I added one for Hue Bloom (the lightstrip) by coping the Hue Bulb template

  4. Manually created a Hue Phoenix Template by modifying the Hue Lux template to support the colour temperature methods

  5. Enable OAuth support for your modified Hue Connect App

  6. Publish it

  7. Run the app from ‘My Apps’

Will update if any further problems.

@ST Support you might consider testing this with the ‘official’ Hue Connect App - I’ve a total of 1 hour with Groovy/ST Code so Im not sure if this is 100% correct but it works for me and potentially for many of your customers :slight_smile: