# Option to activate the scene only after sunset or sunrise?

**URL:** <https://forum.ewelink.cc/t/option-to-activate-the-scene-only-after-sunset-or-sunrise/16654>\
**Category:** Ideas & Suggestion\
**Created:** [April 17, 2023, 9:28am UTC](https://forum.ewelink.cc/t/option-to-activate-the-scene-only-after-sunset-or-sunrise/16654 "2023-04-17T09:28:35Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![jam3](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/jam3/32/7918_2.png) [@jam3](https://forum.ewelink.cc/u/jam3)\
**Post date:** [April 17, 2023, 9:28am UTC](https://forum.ewelink.cc/t/option-to-activate-the-scene-only-after-sunset-or-sunrise/16654/1 "2023-04-17T09:28:36Z")

</div>

Instead of setting a “from-to” time range, sometimes a range from “sunset” to XXh would be preferable. For example, for controlling night lighting. This now requires manual adjustment as the days get longer or shorter.

---

<div class="post-metadata">

**Author:** ![joennuh](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/joennuh/32/454_2.png) [@joennuh](https://forum.ewelink.cc/u/joennuh)\
**Post date:** [April 17, 2023, 11:49am UTC](https://forum.ewelink.cc/t/option-to-activate-the-scene-only-after-sunset-or-sunrise/16654/2 "2023-04-17T11:49:28Z")

</div>

This would indeed be a great feature.

---

<div class="post-metadata">

**Author:** ![PeterGoGo](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/petergogo/32/460_2.png) [@PeterGoGo](https://forum.ewelink.cc/u/PeterGoGo)\
**Post date:** [April 18, 2023, 11:00am UTC](https://forum.ewelink.cc/t/option-to-activate-the-scene-only-after-sunset-or-sunrise/16654/3 "2023-04-18T11:00:26Z")

</div>

Hi jam, you’re asking to extend the before/after time span of sunrise/sunset, right? It sounds cool and it also has been mentioned before. We add it to the discussion list and our team will evaluate this feature later. Thanks for the idea!

---

<div class="post-metadata">

**Author:** ![jam3](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/jam3/32/7918_2.png) [@jam3](https://forum.ewelink.cc/u/jam3)\
**Post date:** [April 18, 2023, 12:51pm UTC](https://forum.ewelink.cc/t/option-to-activate-the-scene-only-after-sunset-or-sunrise/16654/4 "2023-04-18T12:51:20Z")

</div>

I know it sounds cool 🙂 Thanks. For example, I would be great to set nightlights or motion detector to be active between sunset and 1AM. Or any combination of the type “between sunset/sunrise and XXh”.

---

<div class="post-metadata">

**Author:** ![kalle-ol](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/kalle-ol/32/8294_2.png) [@kalle-ol](https://forum.ewelink.cc/u/kalle-ol)\
**Post date:** [April 18, 2023, 5:41pm UTC](https://forum.ewelink.cc/t/option-to-activate-the-scene-only-after-sunset-or-sunrise/16654/8 "2023-04-18T17:41:48Z")

</div>

That can be achived with three easy scenes.

**Start Scene**  
IF

Sunset

THEN

Motion Detector scene  
Enable

**Stop Scene**  
IF

Time of Day  
Everyday 1 AM

THEN

Motion Detector scene  
Disable

**Motion Detector scene**

IF

Motion detected

THEN

Lights  
ON

---

<div class="post-metadata">

**Author:** ![jam3](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/jam3/32/7918_2.png) [@jam3](https://forum.ewelink.cc/u/jam3)\
**Post date:** [April 18, 2023, 5:46pm UTC](https://forum.ewelink.cc/t/option-to-activate-the-scene-only-after-sunset-or-sunrise/16654/9 "2023-04-18T17:46:09Z")

</div>

In three simple steps, you say?

---

<div class="post-metadata">

**Author:** ![kalle-ol](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/kalle-ol/32/8294_2.png) [@kalle-ol](https://forum.ewelink.cc/u/kalle-ol)\
**Post date:** [April 18, 2023, 6:28pm UTC](https://forum.ewelink.cc/t/option-to-activate-the-scene-only-after-sunset-or-sunrise/16654/10 "2023-04-18T18:28:24Z")

</div>

I reckon, the Motion Detection Scene already exist. So you only need to type in two scenes.

---

<div class="post-metadata">

**Author:** ![jam3](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/jam3/32/7918_2.png) [@jam3](https://forum.ewelink.cc/u/jam3)\
**Post date:** [April 19, 2023, 2:14am UTC](https://forum.ewelink.cc/t/option-to-activate-the-scene-only-after-sunset-or-sunrise/16654/11 "2023-04-19T02:14:09Z")

</div>

With iHost it’s not possible. There’s no sunset/sunrise setting.

---

<div class="post-metadata">

**Author:** ![steve2](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@steve2](https://forum.ewelink.cc/u/steve2)\
**Post date:** [April 20, 2023, 3:42pm UTC](https://forum.ewelink.cc/t/option-to-activate-the-scene-only-after-sunset-or-sunrise/16654/12 "2023-04-20T15:42:06Z")

</div>

Hold on !!!  
I’m still waiting for my iHost to arrive.  
Are you telling me that there’s no sunset/sunrise options in scenes ?  
That makes it worthless for me then.

---

<div class="post-metadata">

**Author:** ![jam3](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/jam3/32/7918_2.png) [@jam3](https://forum.ewelink.cc/u/jam3)\
**Post date:** [April 21, 2023, 4:21am UTC](https://forum.ewelink.cc/t/option-to-activate-the-scene-only-after-sunset-or-sunrise/16654/13 "2023-04-21T04:21:34Z")

</div>

Yes, I’m telling you that there’s no sunset/sunrise options in iHost scenes. But don’t panic, please. If your sunset/sunrise scenes are for devices other than ZigBee, you can use cloud-based scenes. In short, all WLAN capable devices are synchronised between eWeLink cloud (app, web) and iHost. All ZigBee devices are controlled locally only. Therefore, scenes for any interaction must be local since ZigBee is not synced or cloud-mapped in any way. BTW, there’s also no go for Alexa/Siri/Google with ZigBee on iHost for now. If you look at iHost road map, you’ll certainly see Matter support scheduled for Q4.  
Bear in mind that iHost is meant for local control in the first place. It is for enthusiasts and is in constant development. All iHost users are somehow involved in this project. Just be adventurous 🕶

---

<div class="post-metadata">

**Author:** ![joennuh](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/joennuh/32/454_2.png) [@joennuh](https://forum.ewelink.cc/u/joennuh)\
**Post date:** [April 21, 2023, 10:53am UTC](https://forum.ewelink.cc/t/option-to-activate-the-scene-only-after-sunset-or-sunrise/16654/14 "2023-04-21T10:53:40Z")

</div>

You could use Node-RED for that in combination with any node that has sunset/sunrise options.

---

<div class="post-metadata">

**Author:** ![PeterGoGo](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/petergogo/32/460_2.png) [@PeterGoGo](https://forum.ewelink.cc/u/PeterGoGo)\
**Post date:** [April 24, 2023, 6:12am UTC](https://forum.ewelink.cc/t/option-to-activate-the-scene-only-after-sunset-or-sunrise/16654/15 "2023-04-24T06:12:00Z")

</div>

@jam3 @joennuh @kalle-ol Hey guys, our team is considering exdending the range of sunset/sunrise. We’d love to know your requirements! How long do you guys need? Maybe one hour, or two hours? Please drop your suggestions here.

---

<div class="post-metadata">

**Author:** ![jam3](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/jam3/32/7918_2.png) [@jam3](https://forum.ewelink.cc/u/jam3)\
**Post date:** [April 24, 2023, 8:58am UTC](https://forum.ewelink.cc/t/option-to-activate-the-scene-only-after-sunset-or-sunrise/16654/17 "2023-04-24T08:58:29Z")

</div>

Extending? In iHost there’s no sunset/sunrise setting at all. What I had on mind is any option that allows to start or/and end any time-depended scene, i.e. you have lights that you want to be on from sunset to 1 am or till dawn. Since the length of the day changes naturally, the hour-to-hour setting needs to be adjusted periodically.  
As for now and only within eWeLink app, there’s this option that can trigger some action once at sunrise or sunset. It complicates creating scenes because you need to set a scene that triggers another scene to (dis)activate.

---

<div class="post-metadata">

**Author:** ![matthewnmoore](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@matthewnmoore](https://forum.ewelink.cc/u/matthewnmoore)\
**Post date:** [April 24, 2023, 11:49am UTC](https://forum.ewelink.cc/t/option-to-activate-the-scene-only-after-sunset-or-sunrise/16654/18 "2023-04-24T11:49:21Z")

</div>

That would be a great feature

---

<div class="post-metadata">

**Author:** ![joennuh](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/joennuh/32/454_2.png) [@joennuh](https://forum.ewelink.cc/u/joennuh)\
**Post date:** [April 27, 2023, 8:33pm UTC](https://forum.ewelink.cc/t/option-to-activate-the-scene-only-after-sunset-or-sunrise/16654/19 "2023-04-27T20:33:55Z")

</div>

The “Valid period” setting for scenes indeed has no sunset/sunrise options at all. Not to confuse with sunset/sunrise as trigger. So just copy the options for sunset/sunrise as trigger to the “Valid period” setting for scenes.

And as for the offset question: I believe -6 to +6 hours for both sunrise and sunset with intervals of 30 minutes will be suitable to me.

---

<div class="post-metadata">

**Author:** ![PeterGoGo](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/petergogo/32/460_2.png) [@PeterGoGo](https://forum.ewelink.cc/u/PeterGoGo)\
**Post date:** [April 28, 2023, 3:24am UTC](https://forum.ewelink.cc/t/option-to-activate-the-scene-only-after-sunset-or-sunrise/16654/20 "2023-04-28T03:24:50Z")

</div>

Hi there, actually, we have added the option of sunrise/sunset to effective period to our roadmap. It will be implemented in future updates.

---

<div class="post-metadata">

**Author:** ![jam3](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/jam3/32/7918_2.png) [@jam3](https://forum.ewelink.cc/u/jam3)\
**Post date:** [April 28, 2023, 5:29am UTC](https://forum.ewelink.cc/t/option-to-activate-the-scene-only-after-sunset-or-sunrise/16654/21 "2023-04-28T05:29:32Z")

</div>

Thank you, guys.

---

<div class="post-metadata">

**Author:** ![matthewnmoore](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@matthewnmoore](https://forum.ewelink.cc/u/matthewnmoore)\
**Post date:** [April 28, 2023, 6:54am UTC](https://forum.ewelink.cc/t/option-to-activate-the-scene-only-after-sunset-or-sunrise/16654/22 "2023-04-28T06:54:52Z")

</div>

Great news 👍

---

<div class="post-metadata">

**Author:** ![jam3](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/jam3/32/7918_2.png) [@jam3](https://forum.ewelink.cc/u/jam3)\
**Post date:** [October 29, 2023, 6:26am UTC](https://forum.ewelink.cc/t/option-to-activate-the-scene-only-after-sunset-or-sunrise/16654/23 "2023-10-29T06:26:27Z")

</div>

Any progress with the option?
