# Philips Hue Raspberry pi controle

**URL:** <https://discourse.nodered.org/t/philips-hue-raspberry-pi-controle/7155>\
**Category:** General\
**Created:** [23 January 2019 02:45 UTC](https://discourse.nodered.org/t/philips-hue-raspberry-pi-controle/7155 "2019-01-23T02:45:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgdh](https://avatars.discourse-cdn.com/v4/letter/j/22d042/32.png) [@jgdh](https://discourse.nodered.org/u/jgdh)\
**Post date:** [23 January 2019 02:45 UTC](https://discourse.nodered.org/t/philips-hue-raspberry-pi-controle/7155/1 "2019-01-23T02:45:30Z")

</div>

Hi, im pretty new to Node-red, and i need some help.  
is it possible to do so when my hue lamp is on it is true and false when it is off in debug.  
i have hue magic instaled.  
can anyone help me here.

jesper.

---

<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:** [23 January 2019 07:03 UTC](https://discourse.nodered.org/t/philips-hue-raspberry-pi-controle/7155/2 "2019-01-23T07:03:20Z")

</div>

If you have installed the node and attached a debug node what do you see in the debug?

Is your question that you want to see true/false?  
Or is that what you see and you want to know if that is correct?

---

<div class="post-metadata">

**Author:** ![jgdh](https://avatars.discourse-cdn.com/v4/letter/j/22d042/32.png) [@jgdh](https://discourse.nodered.org/u/jgdh)\
**Post date:** [23 January 2019 15:40 UTC](https://discourse.nodered.org/t/philips-hue-raspberry-pi-controle/7155/3 "2019-01-23T15:40:42Z")

</div>

hi.  
the debug look like this.  
{"on":false,"brightness":0,"updated":"2019-01-23T16:35:20+01:00"}

and I wonder if i can do so that the its 1 or 0, or true or false,

I hope you understand what I mean 🙂

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [23 January 2019 16:12 UTC](https://discourse.nodered.org/t/philips-hue-raspberry-pi-controle/7155/4 "2019-01-23T16:12:15Z")

</div>

> [@jgdh](#):
>
> I wonder if i can do so that the its 1 or 0, or true or false,
> 
> I hope you understand what I mean

Not exactly. What do you want to be 1 or 0 or true or false?  
What node is that debug coming from? Possibly node-red-contrib-something, that you may have installed.

---

<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:** [23 January 2019 16:28 UTC](https://discourse.nodered.org/t/philips-hue-raspberry-pi-controle/7155/5 "2019-01-23T16:28:10Z")

</div>

So with a change node, you should be able to define rules so that when msg.payload.on = false you can change msg.payload to msg.payload=false  
and  
msg.payload.on=true msg.payload=true

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [24 January 2019 13:00 UTC](https://discourse.nodered.org/t/philips-hue-raspberry-pi-controle/7155/6 "2019-01-24T13:00:44Z")

</div>

I am not sure what the question is, but if you want to turn it on you need to send some parameters as documented in the info window.

What I use in a function node (albeit with dynamic values):

`return {payload:{"on":true,"brightness":100, "transitionTime":3, hex: "FFA500"}}`
