# Turn on Hue light(s) on schedule based on presence

**URL:** https://discourse.nodered.org/t/turn-on-hue-light-s-on-schedule-based-on-presence/11701
**Category:** General
**Created:** [30 May 2019 13:55 UTC](https://discourse.nodered.org/t/turn-on-hue-light-s-on-schedule-based-on-presence/11701 "2019-05-30T13:55:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![techdesk](https://avatars.discourse-cdn.com/v4/letter/t/6de8d8/32.png) [@techdesk](https://discourse.nodered.org/u/techdesk)
#### Post date: [30 May 2019 13:55 UTC](https://discourse.nodered.org/t/turn-on-hue-light-s-on-schedule-based-on-presence/11701/1 "2019-05-30T13:55:24Z")

</div>

Have a Hue light connected via home assistant.  
I Can turn hue light on using light scheduler no problem.

Want to only turn the light on according to the schedule if the person is home.  
Have presence working already and visible to node-red.  
Have input\_boolean for each person indicating if they are home.

Suggestions?

---

<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: [30 May 2019 14:31 UTC](https://discourse.nodered.org/t/turn-on-hue-light-s-on-schedule-based-on-presence/11701/2 "2019-05-30T14:31:31Z")

</div>

Take a look at this example in the cookbook

[https://cookbook.nodered.org/basic/route-on-context](https://cookbook.nodered.org/basic/route-on-context)
