# Ikea Tradfri color temp problems

**URL:** https://discourse.nodered.org/t/ikea-tradfri-color-temp-problems/35273
**Category:** General
**Created:** [3 November 2020 10:26 UTC](https://discourse.nodered.org/t/ikea-tradfri-color-temp-problems/35273 "2020-11-03T10:26:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![dougle03](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dougle03/32/32979_2.png) [@dougle03](https://discourse.nodered.org/u/dougle03)
#### Post date: [3 November 2020 10:26 UTC](https://discourse.nodered.org/t/ikea-tradfri-color-temp-problems/35273/1 "2020-11-03T10:26:42Z")

</div>

Hi, Anyone know why IKEA bulbs when triggered from off won't take the colour temp info in the same action, but only when triggered again once already on.

Background:  
I have a bunch of IKEA bulbs (lamps) that do cold/warm white. I use NodeRed via the HomeAssistant integration, to switch them on/off. I've built a flow that should turn the light on cold during the day and warm at night. I'm using the `color_temp:` attribute to set the temp, but when going from `off` to `on` the colour temp element is ignored, and is the same temp as it was when turned off.

If I trigger the light on again once it's already on, it will then take the color temp information and adjust accordingly...

It's like the initial instruction is stripped of the color value, but once already on it'll then take the color value... Very odd...  
Any solutions?

My testing flow for reference:

```auto
[{"id":"171e0e02.1f6342","type":"api-call-service","z":"b79c527b.0a36e","name":"hall colour temp test Cold","server":"32f2c474.d2eeec","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.1st_floor_hall","data":"{\"color_temp\":250,\"transition\":1,\"brightness\":100}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":444,"y":576,"wires":[[]]},{"id":"67f4c5c6.d2ad4c","type":"api-call-service","z":"b79c527b.0a36e","name":"hall colour temp test Warm","server":"32f2c474.d2eeec","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.1st_floor_hall","data":"{\"color_temp\":454,\"transition\":1,\"brightness\":100}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":456,"y":624,"wires":[[]]},{"id":"1eafc048.dc518","type":"inject","z":"b79c527b.0a36e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":236,"y":576,"wires":[["171e0e02.1f6342"]]},{"id":"226434cc.dc356c","type":"inject","z":"b79c527b.0a36e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":236,"y":624,"wires":[["67f4c5c6.d2ad4c"]]},{"id":"a41d8f25.74545","type":"inject","z":"b79c527b.0a36e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":236,"y":688,"wires":[["ff237e9f.973fe"]]},{"id":"ff237e9f.973fe","type":"api-call-service","z":"b79c527b.0a36e","name":"hall colour temp test Off","server":"32f2c474.d2eeec","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.1st_floor_hall","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":446,"y":688,"wires":[[]]},{"id":"32f2c474.d2eeec","type":"server","name":"Home Assistant","legacy":false,"addon":false,"rejectUnauthorizedCerts":false,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]

```

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [2 January 2021 10:26 UTC](https://discourse.nodered.org/t/ikea-tradfri-color-temp-problems/35273/2 "2021-01-02T10:26:49Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
