Nodered philips hue motion sensor

#1

Hi,
I have a Philips Hue bridge with some Hue Motions Sensors
If I connect a debug node, the message I see is
image

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

image

0 Likes

#2

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

0 Likes

#3

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

0 Likes

#4

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

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

1 Like

#5

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

0 Likes