# Beginner Question - Openhab - Phillips Hue

**URL:** <https://discourse.nodered.org/t/beginner-question-openhab-phillips-hue/7476>\
**Category:** General\
**Created:** [1 February 2019 12:08 UTC](https://discourse.nodered.org/t/beginner-question-openhab-phillips-hue/7476 "2019-02-01T12:08:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![linsenpago](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@linsenpago](https://discourse.nodered.org/u/linsenpago)\
**Post date:** [1 February 2019 12:08 UTC](https://discourse.nodered.org/t/beginner-question-openhab-phillips-hue/7476/1 "2019-02-01T12:08:00Z")

</div>

Hello there!

I am just beginning to explore the functionalities in Node-Red.

I was able to setup the connection to my openhab installation and also to connect to my Phillips Hue Hub and i am able to select scenes and turn on and off the lights via openhab thru node-red.

Now i would like to read the temperature sensor from one of my motion sensors from phillips and write the temperature to one item in openhab.

What do i have to do to write only the temperature to openhab (as a number) because in the payload of the temperature is more than only the temperature.. also fahrenheit, battery level and so on is submitted there.

`{"payload":{"celsius":21.49,"fahrenheit":70.68,"updated":"2019-02-01T13:05:55+01:00"},"info":{"id":"24","uniqueId":"00:17:88:01:02:10:13:d8-02-0402","name":"Hue temperature sensor 1","type":"ZLLTemperature","softwareVersion":"6.1.0.18912","battery":81,"model":{"id":"SML001","manufacturer":"Philips","name":"Hue Motion Sensor","type":"ZLLPresence"}},"_msgid":"e34cc6da.11d628"}`

Thank you allot in advance for your help!

greetings  
Alex

---

<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:** [1 February 2019 12:28 UTC](https://discourse.nodered.org/t/beginner-question-openhab-phillips-hue/7476/2 "2019-02-01T12:28:29Z")

</div>

Wire a debug node up to the flow.

You can then use the tooltips as described on this page, [https://nodered.org/docs/user-guide/messages](https://nodered.org/docs/user-guide/messages) to identify the path to any specific item. When you know the path  
(eg msg.payload.celsius) you can use a `change` node to move that to `msg.payload` which will write over what is there with just the value you want
