# Nodered philips hue motion sensor

**URL:** <https://discourse.nodered.org/t/nodered-philips-hue-motion-sensor/9459>\
**Category:** General\
**Created:** [26 March 2019 15:35 UTC](https://discourse.nodered.org/t/nodered-philips-hue-motion-sensor/9459 "2019-03-26T15:35:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![timdeloddere](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@timdeloddere](https://discourse.nodered.org/u/timdeloddere)\
**Post date:** [26 March 2019 15:35 UTC](https://discourse.nodered.org/t/nodered-philips-hue-motion-sensor/9459/1 "2019-03-26T15:35:13Z")

</div>

Hi,  
I have a Philips Hue bridge with some Hue Motions Sensors  
If I connect a debug node, the message I see is  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/2/2644fe4cb571704d2911078438c811cd441e926d.png)

How do I get only the temperature (Celcius) value, out of this message ?

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/8/8fd55cc1ed97e3d99bf6b973406263423d5d87b8.png)

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [26 March 2019 15:39 UTC](https://discourse.nodered.org/t/nodered-philips-hue-motion-sensor/9459/2 "2019-03-26T15:39:20Z")

</div>

This page in the documentation should help you [https://nodered.org/docs/user-guide/messages](https://nodered.org/docs/user-guide/messages)

---

<div class="post-metadata">

**Author:** ![timdeloddere](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@timdeloddere](https://discourse.nodered.org/u/timdeloddere)\
**Post date:** [26 March 2019 16:03 UTC](https://discourse.nodered.org/t/nodered-philips-hue-motion-sensor/9459/3 "2019-03-26T16:03:00Z")

</div>

Thanks for the fast response.  
can you point me in the good direction ?

If I use the icon on that value , It gives me payload.celsius

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [26 March 2019 16:18 UTC](https://discourse.nodered.org/t/nodered-philips-hue-motion-sensor/9459/4 "2019-03-26T16:18:08Z")

</div>

so as the the debug node is simply msg, the path to the data item within the javascript object is `msg.payload.celcius`

Understanding Javascript objects is fundamental in Node-RED it is well worth tasing time to read through one of the online tutorials such as [https://www.w3schools.com/js/js\_objects.asp](https://www.w3schools.com/js/js_objects.asp)

The cookbook in the docs on the website also includes an example of how to move data around...

---

<div class="post-metadata">

**Author:** ![timdeloddere](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@timdeloddere](https://discourse.nodered.org/u/timdeloddere)\
**Post date:** [27 March 2019 12:55 UTC](https://discourse.nodered.org/t/nodered-philips-hue-motion-sensor/9459/5 "2019-03-27T12:55:00Z")

</div>

That's really well explaned on w3schools site,  
I'll play around with it, and try to get the right value for my domotics program on Nodered.

thanks

---

<div class="post-metadata">

**Author:** ![queelyte](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/queelyte/32/30160_2.png) [@queelyte](https://discourse.nodered.org/u/queelyte)\
**Post date:** [18 July 2020 22:44 UTC](https://discourse.nodered.org/t/nodered-philips-hue-motion-sensor/9459/6 "2020-07-18T22:44:21Z")

</div>

Can someone give me a snapshot of a simple flow using the hue sensor to turn on a LIFX light. I’m using home assistant. I can seem to figure it out.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/8/988a1e66e9b157cef857e946f8d76915961c6ad2.jpeg)

---

<div class="post-metadata">

**Author:** ![queelyte](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/queelyte/32/30160_2.png) [@queelyte](https://discourse.nodered.org/u/queelyte)\
**Post date:** [18 July 2020 22:46 UTC](https://discourse.nodered.org/t/nodered-philips-hue-motion-sensor/9459/7 "2020-07-18T22:46:52Z")

</div>

Also I want to add that i reset one of my sensors and now one of my sensors is showing a name that is not in the Philips Hue app or on Home assistant. I really don’t know which sensor is which or if both names belong to one sensor in node red.
