# Set Philips hue to color mode with homey script

**URL:** https://community.homey.app/t/set-philips-hue-to-color-mode-with-homey-script/57429
**Category:** Developers
**Created:** [December 29, 2021, 8:51pm UTC](https://community.homey.app/t/set-philips-hue-to-color-mode-with-homey-script/57429 "2021-12-29T20:51:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Christo1](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/christo1/32/17051_2.png) [@Christo1](https://community.homey.app/u/Christo1)
#### Post date: [December 29, 2021, 8:51pm UTC](https://community.homey.app/t/set-philips-hue-to-color-mode-with-homey-script/57429/1 "2021-12-29T20:51:15Z")

</div>

Hello,

I am trying to set my Philips Hue bulb to color mode.

I check the status of my device with…  
log(device.capabilitiesObj.light\_mode);

When I am not in color mode, I get the following (which is fine):  
{  
value: ‘temperature’,  
lastUpdated: ‘2021-12-29T20:43:29.670Z’,  
type: ‘enum’,  
getable: true,  
setable: true,  
title: ‘Light mode’,  
desc: ‘Switch between color or temperature mode’,  
units: null,  
values: [  
{ id: ‘color’, title: ‘Color’ },  
{ id: ‘temperature’, title: ‘Temperature’ }  
],  
id: ‘light\_mode’,  
options: {}  
}

But, when my device is in color mode, I get …  
{  
value: null,  
lastUpdated: ‘2021-12-29T20:43:25.647Z’,  
type: ‘enum’,  
getable: true,  
setable: true,  
title: ‘Light mode’,  
desc: ‘Switch between color or temperature mode’,  
units: null,  
values: [  
{ id: ‘color’, title: ‘Color’ },  
{ id: ‘temperature’, title: ‘Temperature’ }  
],  
id: ‘light\_mode’,  
options: {}  
}

The attribute value should be set to ‘color’ as described in the enum, but it is not the case.

If I try to set the mode to ‘color’ with script, it doesn’t work.  
device.setCapabilityValue(‘light\_mode’, ‘color’);

Any idea ?

Thank you in advance.

Chris
