# Automate Hue Lights Whilst On Vacation

**URL:** <https://discourse.nodered.org/t/automate-hue-lights-whilst-on-vacation/72728>\
**Category:** General\
**Tags:** docker\
**Created:** [26 December 2022 14:17 UTC](https://discourse.nodered.org/t/automate-hue-lights-whilst-on-vacation/72728 "2022-12-26T14:17:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dgulliver](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dgulliver/32/66720_2.png) [@dgulliver](https://discourse.nodered.org/u/dgulliver)\
**Post date:** [26 December 2022 14:17 UTC](https://discourse.nodered.org/t/automate-hue-lights-whilst-on-vacation/72728/1 "2022-12-26T14:17:34Z")

</div>

Hi,

I’m running node red in docker along with HA.

What I’m looking to do is turn a kitchen light on and off randomly between a certain time, this so it looks like someone is occasionally using the kitchen.

For example I would want the routine to run between sunset and 23:00 the light then should come on every 30 minutes (but not exactly 30mins) then turn off between 3 and 10 minutes.

Any ideas?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [26 December 2022 14:28 UTC](https://discourse.nodered.org/t/automate-hue-lights-whilst-on-vacation/72728/2 "2022-12-26T14:28:52Z")

</div>

🤓

> **[node-red-contrib-presence-faker](https://flows.nodered.org/node/node-red-contrib-presence-faker)**
>
> Let your home appear occupied by switching devices (e.g. lights) on and off at random (configurable) times.

---

<div class="post-metadata">

**Author:** ![dgulliver](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dgulliver/32/66720_2.png) [@dgulliver](https://discourse.nodered.org/u/dgulliver)\
**Post date:** [26 December 2022 14:46 UTC](https://discourse.nodered.org/t/automate-hue-lights-whilst-on-vacation/72728/3 "2022-12-26T14:46:41Z")

</div>

Ah nice, thanks @marcus-j-davies I’ll take a look.

---

<div class="post-metadata">

**Author:** ![juntiedt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/juntiedt/32/58357_2.png) [@juntiedt](https://discourse.nodered.org/u/juntiedt)\
**Post date:** [26 December 2022 14:52 UTC](https://discourse.nodered.org/t/automate-hue-lights-whilst-on-vacation/72728/4 "2022-12-26T14:52:15Z")

</div>

Does a great job. I am using this since more than a year. 👍

---

<div class="post-metadata">

**Author:** ![dgulliver](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dgulliver/32/66720_2.png) [@dgulliver](https://discourse.nodered.org/u/dgulliver)\
**Post date:** [29 December 2022 11:48 UTC](https://discourse.nodered.org/t/automate-hue-lights-whilst-on-vacation/72728/5 "2022-12-29T11:48:31Z")

</div>

@marcus-j-davies / @juntiedt

I set up presence faker, Let it run for few hours using this config:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/c/3cc54afd667f13adc654e754ca85557de5762f70.png)

And you can see the randomness of the lights coming on and off

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/9/79aaf22661e77617e746aa1592e2e5229683361b.png)

I am also using [vacation timer](https://flows.nodered.org/node/node-red-contrib-vacation-timer/in/c8156f6276976bfb518d1e60442e01e2) to turn on and off at a specific time with a little bit of randomness, for example, My teenage son who is almost in his room 24/7 and goes to bed around 9pm. So set up a routine that the lights will come on at sunset then go off between 9pm and 9:30pm

I have another couple of nodes using vacation timer for other lights to make it look like the rest of the household goes to bed again with a bit of randomness. I probably could of done this with presence faker but vacation timer works for me.

TIA,  
Darren

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [12 January 2023 11:49 UTC](https://discourse.nodered.org/t/automate-hue-lights-whilst-on-vacation/72728/6 "2023-01-12T11:49:09Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
