# Phillips hue and other light

**URL:** <https://discourse.nodered.org/t/phillips-hue-and-other-light/24044>\
**Category:** General\
**Created:** [1 April 2020 17:42 UTC](https://discourse.nodered.org/t/phillips-hue-and-other-light/24044 "2020-04-01T17:42:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oddmn](https://avatars.discourse-cdn.com/v4/letter/o/54ee81/32.png) [@oddmn](https://discourse.nodered.org/u/oddmn)\
**Post date:** [1 April 2020 17:42 UTC](https://discourse.nodered.org/t/phillips-hue-and-other-light/24044/1 "2020-04-01T17:42:07Z")

</div>

Hi. i have an outdoor hue motion sensor and 2 outdoor light stripes.  
I have set this up and it is working fine, but i also have some other light outside that i want this sensor to turn on. The other light is fibaro and i can turn it on/off with true/false. I have tried a lot with function node and switch node. I only get the light to turn on, not off.

putting up the flow and the debug from motion sensor and hue light.  
debug: Light on lights turns on, also the fibaro light.  
4/1/2020, 7:34:54 PM[node: b02d6e63.ee34c](http://192.168.1.206:1880/#)msg.payload : Object

object

on: true

allOn: true

anyOn: true

brightness: 98

brightnessLevel: 249

rgb: array[3]

hex: "ffca7b"

color: "tan"

colorTemp: 366

updated: "2020-04-01T17:34:51+00:00"

4/1/2020, 7:34:55 PM[node: b02d6e63.ee34c](http://192.168.1.206:1880/#)264 : msg.payload : number

54

debug Lights of. only hue lights turns off.

4/1/2020, 7:37:57 PM[node: b02d6e63.ee34c](http://192.168.1.206:1880/#)msg.payload : Object

object

on: false

allOn: false

anyOn: false

brightness: 98

brightnessLevel: 249

rgb: array[3]

hex: "ffca7b"

color: "tan"

colorTemp: 366

updated: "2020-04-01T17:37:54+00:00"

Flow

```auto
[{"id":"c5bd.70285","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"cb77.204668","type":"hue-motion","z":"c569.70285","name":"Hue outdoor motion sensor 1","bridge":"b3a5133d.4f604","sensorid":"7","skipevents":false,"x":140,"y":160,"wires":[["b4b8.3a578"]]},{"id":"b4ba11e8.3a578","type":"hue-group","z":"c5bd.70285","name":"utelys","bridge":"b3a.4f604","groupid":"3","colornamer":true,"skipevents":false,"x":330,"y":100,"wires":[["b063.ee34c","e6047112.dbfab"]]},{"id":"344a2297.d4808e","type":"switch","z":"c569.70285","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":630,"y":320,"wires":[[],[]]},{"id":"5b2e9bb8.62a2c4","type":"fibaroActor","z":"c5bdfe69.70285","name":"Utelys (Ute)","deviceID":"264","server":"9b6ee9de.5e5998","events":true,"outputs":2,"x":710,"y":80,"wires":[["b02d6e63.ee34c"],[]]},{"id":"e6047112.dbfab","type":"change","z":"c5bdfe69.70285","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":480,"y":60,"wires":[["5b2e9bb8.62a2c4"]]},{"id":"b02d6e63.ee34c","type":"debug","z":"c5bdfe69.70285","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":910,"y":160,"wires":[]},{"id":"b3a5133d.4f604","type":"hue-bridge","z":"","name":"Slynge","bridge":"213.168.1.147","key":"w3oxup6SPnp","interval":"3000","disableupdates":false},{"id":"9b6ee9de.5e5998","type":"fibaro-server","z":"","name":"hc2","ipaddress":"213.168.1.111"}]

```

---

<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:** [31 May 2020 17:42 UTC](https://discourse.nodered.org/t/phillips-hue-and-other-light/24044/2 "2020-05-31T17:42:14Z")

</div>

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