# Use Hue Temp and Hue Light to control cover

**URL:** <https://discourse.nodered.org/t/use-hue-temp-and-hue-light-to-control-cover/46399>\
**Category:** General\
**Created:** [28 May 2021 10:52 UTC](https://discourse.nodered.org/t/use-hue-temp-and-hue-light-to-control-cover/46399 "2021-05-28T10:52:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TurboKanne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/turbokanne/32/42545_2.png) [@TurboKanne](https://discourse.nodered.org/u/TurboKanne)\
**Post date:** [28 May 2021 10:52 UTC](https://discourse.nodered.org/t/use-hue-temp-and-hue-light-to-control-cover/46399/1 "2021-05-28T10:52:12Z")

</div>

![Screenshot 2021-05-28 125134](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/d/ed2ae090d4c5b75c0421d610adff68179c1e2d49.jpeg)

Hi,

a few month ago I started to use Home Assistant with Node Red. I really like it although there are a lot of things that I do not understand or know yet.

For my flows so far (such as time based window cover movements, motion tracking based light scenes, etc ...) it works great. Now I want to go a step further and let the window cover close when the temperatur and light level exceed defined values.

I did not figure out how that works. The Hue Temperatur sensor acts like an injection in a certain interval, but that causes the cover to move again and again (because I first open it 100%, wait 30 seconds, then close it and stop after 15 seconds, so that the cover is roundabout closed at 80% and not fullyclosed).

I would love to get hints how to check if the temp and light is on a certain level and that the cover only closes once (so when it already closed, that it does not the repeat the flow)

best regards  
TurboKanne

---

<div class="post-metadata">

**Author:** ![TurboKanne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/turbokanne/32/42545_2.png) [@TurboKanne](https://discourse.nodered.org/u/TurboKanne)\
**Post date:** [28 May 2021 11:27 UTC](https://discourse.nodered.org/t/use-hue-temp-and-hue-light-to-control-cover/46399/4 "2021-05-28T11:27:54Z")

</div>

OK, I think I already got it.  
Instead of the Hue Temperatur Node i can use the state If nod to check the temperatur. I also created a helper counter. Increment this counter to 1 if the flow processes. Once it ran the counter is 1 and another State If-Nod blocks the process when the counter is higher than 1. At midnigh I let the counter reset to 0.

**Next question:** how can i now integrate a second state If to check if also the light level is above 20klux?

 ![Screenshot 2021-05-28 132517](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/5/d52ad129d9158950caf635593168909634f66c6d.jpeg)

---

<div class="post-metadata">

**Author:** ![TurboKanne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/turbokanne/32/42545_2.png) [@TurboKanne](https://discourse.nodered.org/u/TurboKanne)\
**Post date:** [28 May 2021 11:37 UTC](https://discourse.nodered.org/t/use-hue-temp-and-hue-light-to-control-cover/46399/5 "2021-05-28T11:37:52Z")

</div>

Forget it, ... simply set several check state items in a row does the job. Is there a way to completely delete my post?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [28 May 2021 11:57 UTC](https://discourse.nodered.org/t/use-hue-temp-and-hue-light-to-control-cover/46399/6 "2021-05-28T11:57:01Z")

</div>

Why delete it? You have solved a problem that someone else may stumble over in the future and your solution will be helpful to them.

---

<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:** [11 June 2021 11:58 UTC](https://discourse.nodered.org/t/use-hue-temp-and-hue-light-to-control-cover/46399/7 "2021-06-11T11:58:00Z")

</div>

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