# Schedule node actions

**URL:** https://discourse.nodered.org/t/schedule-node-actions/26657
**Category:** General
**Created:** [14 May 2020 13:35 UTC](https://discourse.nodered.org/t/schedule-node-actions/26657 "2020-05-14T13:35:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Marty1982](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marty1982/32/20162_2.png) [@Marty1982](https://discourse.nodered.org/u/Marty1982)
#### Post date: [14 May 2020 13:35 UTC](https://discourse.nodered.org/t/schedule-node-actions/26657/1 "2020-05-14T13:35:59Z")

</div>

Hi all!

I want to toggle on or off a whole bunch of nodes depending it is sunset or sunrise.

Here is my node chain.

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

1. The first node switch the plex state, idle/pause/playing
2. There is a condition to choose from that previous state
3. If it is playing, then turn off the lights,otherwise turn on

I want all this to activate the whole nodes because i dont want to turn the lights during daylight.

Where should i put the maybe (eztimer) node??  
Suggestions?.

Regards!

---

<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: [13 July 2020 13:36 UTC](https://discourse.nodered.org/t/schedule-node-actions/26657/2 "2020-07-13T13:36:06Z")

</div>

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