# Donker

**URL:** <https://community.homey.app/t/donker/15026>\
**Category:** Questions & Help\
**Created:** [July 1, 2019, 2:46pm UTC](https://community.homey.app/t/donker/15026 "2019-07-01T14:46:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dirk\_Hermse](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirk_hermse/32/9234_2.png) [@Dirk\_Hermse](https://community.homey.app/u/Dirk_Hermse)\
**Post date:** [July 1, 2019, 2:46pm UTC](https://community.homey.app/t/donker/15026/1 "2019-07-01T14:46:52Z")

</div>

wil graag slimme lamp schakelen donker aan na 4 uur weer uit  
would like to turn smart lamp on when its dark. and after 4 hours turn off

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [July 1, 2019, 2:50pm UTC](https://community.homey.app/t/donker/15026/2 "2019-07-01T14:50:31Z")

</div>

As this is the English parts of the forums plz ask your question just in English. No need to ask in Dutch also.

---

<div class="post-metadata">

**Author:** ![Eternity](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eternity/32/102113_2.png) [@Eternity](https://community.homey.app/u/Eternity)\
**Post date:** [July 1, 2019, 3:01pm UTC](https://community.homey.app/t/donker/15026/3 "2019-07-01T15:01:07Z")

</div>

Trigger card can be something like “the sun has set”.

In THEN you add a card to switch on the light(s) and add a card to switch that light off, with a delay of 240 minutes.

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [July 1, 2019, 3:21pm UTC](https://community.homey.app/t/donker/15026/4 "2019-07-01T15:21:03Z")

</div>

You can also ad in the IF part a logic card. If lux is less then 40. That way the flow also considers how dark it is in your house. Ofcourse you need a sensor that has a lux sensor(most motion sensors). For me this flow works quite nice. WHEN motion is detected in my livingroom, IF lux is less than 40 IF lamp is off, THEN turn on lamp THEN turn off lamp with a 240 min delay.
