# Cronplus node input settings dont work

**URL:** <https://discourse.nodered.org/t/cronplus-node-input-settings-dont-work/80371>\
**Category:** General\
**Created:** [7 August 2023 10:22 UTC](https://discourse.nodered.org/t/cronplus-node-input-settings-dont-work/80371 "2023-08-07T10:22:09Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![EcarDK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ecardk/32/76058_2.png) [@EcarDK](https://discourse.nodered.org/u/EcarDK)\
**Post date:** [7 August 2023 10:22 UTC](https://discourse.nodered.org/t/cronplus-node-input-settings-dont-work/80371/1 "2023-08-07T10:22:09Z")

</div>

Hallo all

Im trying to get "cronplus" node input to work.

I have try to make a test setup, where I have a "inject" node whit msg.topic = msg.status, and a "cronplus" node there change evey 30 sec, from schedule1 to schedule2.

But when I press my inject, I only get schedule1 out, and it like it reset.

I need to get the status on the "cronplus" node out. So I manual can activate it.

```auto
[{"id":"9c4822a62ac12da2","type":"cronplus","z":"e20b72d68fd169a4","name":"Solstyring","outputField":"payload","timeZone":"","storeName":"","commandResponseMsgOutput":"output1","defaultLocation":"55 9","defaultLocationType":"fixed","outputs":1,"options":[{"name":"schedule1","topic":"topic1","payloadType":"default","payload":"","expressionType":"cron","expression":"30 * * * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"},{"name":"schedule2","topic":"topic2","payloadType":"default","payload":"","expressionType":"cron","expression":"1 * * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":520,"y":240,"wires":[["5e2df64a20395fb1"]]},{"id":"60d4d3e417a5975e","type":"inject","z":"e20b72d68fd169a4","name":"status","props":[{"p":"topic","v":"status","vt":"msg"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":330,"y":240,"wires":[["9c4822a62ac12da2"]]},{"id":"5e2df64a20395fb1","type":"debug","z":"e20b72d68fd169a4","name":"debug 20","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":720,"y":240,"wires":[]}]

```

---

<div class="post-metadata">

**Author:** ![greengolfer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/greengolfer/32/28276_2.png) [@greengolfer](https://discourse.nodered.org/u/greengolfer)\
**Post date:** [7 August 2023 10:44 UTC](https://discourse.nodered.org/t/cronplus-node-input-settings-dont-work/80371/2 "2023-08-07T10:44:04Z")

</div>

Not sure what you are trying to achieve...  
The inject node is just putting "undefined" in msg.topic as msg.status is itself not defined.  
From what I can see, what you get is "normal". I understand this is not what you wish though.  
Do you want to be able to start either schedule1 or schedule2 on demand ?

---

<div class="post-metadata">

**Author:** ![EcarDK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ecardk/32/76058_2.png) [@EcarDK](https://discourse.nodered.org/u/EcarDK)\
**Post date:** [7 August 2023 10:52 UTC](https://discourse.nodered.org/t/cronplus-node-input-settings-dont-work/80371/3 "2023-08-07T10:52:35Z")

</div>

I have a sun control system for my lights that switches between light, night dimming, and off three times a day. During the day, it sometimes gets overridden by all the switches in the house. So, I've created a sun control switch that should reset it to where the sun dictates.

To avoid creating a separate control alongside a "time-range" node, I simply want to be able to input a signal into the "cronplus" node and have it output the signal it's set to, like "schedule1" or "schedule2".

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [7 August 2023 11:39 UTC](https://discourse.nodered.org/t/cronplus-node-input-settings-dont-work/80371/4 "2023-08-07T11:39:54Z")

</div>

@EcarDK have you tried using cronplus dynamic schedules?

---

<div class="post-metadata">

**Author:** ![EcarDK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ecardk/32/76058_2.png) [@EcarDK](https://discourse.nodered.org/u/EcarDK)\
**Post date:** [7 August 2023 11:48 UTC](https://discourse.nodered.org/t/cronplus-node-input-settings-dont-work/80371/5 "2023-08-07T11:48:32Z")

</div>

no. when I look it up, it seems to be too complicated for my coding 😃

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [7 August 2023 11:50 UTC](https://discourse.nodered.org/t/cronplus-node-input-settings-dont-work/80371/6 "2023-08-07T11:50:22Z")

</div>

Would this work for you?  
Note: It takes a while for the CronPlus node to react, so be patient.

 ![trigger_cronplus_v2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/3/a3cbcf02ee3b4ffd1e7014e973e330023872e932.png)

```auto
[{"id":"8dc8527a71bd5fc8","type":"tab","label":"Trigger_cronplus","disabled":false,"info":"","env":[]},{"id":"9c4822a62ac12da2","type":"cronplus","z":"8dc8527a71bd5fc8","name":"Solstyring","outputField":"payload","timeZone":"","storeName":"","commandResponseMsgOutput":"output1","defaultLocation":"55 9","defaultLocationType":"fixed","outputs":1,"options":[{"name":"schedule1","topic":"topic1","payloadType":"default","payload":"","expressionType":"cron","expression":"30 * * * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"},{"name":"schedule2","topic":"topic2","payloadType":"default","payload":"","expressionType":"cron","expression":"1 * * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":580,"y":80,"wires":[["5e2df64a20395fb1"]]},{"id":"5e2df64a20395fb1","type":"debug","z":"8dc8527a71bd5fc8","name":"debug 20","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":740,"y":80,"wires":[]},{"id":"5b06fd4418733ce5","type":"debug","z":"8dc8527a71bd5fc8","name":"debug 3336","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":590,"y":180,"wires":[]},{"id":"270b4f885b14ae52","type":"change","z":"8dc8527a71bd5fc8","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"status","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"schedule1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":380,"y":180,"wires":[["5b06fd4418733ce5","9c4822a62ac12da2"]]},{"id":"7aa54f9d6166b993","type":"inject","z":"8dc8527a71bd5fc8","name":"Get status of schedule1","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":180,"y":180,"wires":[["270b4f885b14ae52"]]},{"id":"084a9ad257c69146","type":"change","z":"8dc8527a71bd5fc8","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"trigger","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"schedule1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":380,"y":60,"wires":[["9c4822a62ac12da2"]]},{"id":"80c29871f4a962d9","type":"change","z":"8dc8527a71bd5fc8","name":"","rules":[{"t":"set","p":"topic","pt":"msg","to":"trigger","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"schedule2","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":380,"y":100,"wires":[["9c4822a62ac12da2"]]},{"id":"e5c7fb9312f21cc7","type":"inject","z":"8dc8527a71bd5fc8","name":"Trigger schedule1","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":170,"y":60,"wires":[["084a9ad257c69146"]]},{"id":"bdbd1d40f16374a0","type":"inject","z":"8dc8527a71bd5fc8","name":"Trigger schedule2","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":170,"y":100,"wires":[["80c29871f4a962d9"]]}]

```

---

<div class="post-metadata">

**Author:** ![EcarDK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ecardk/32/76058_2.png) [@EcarDK](https://discourse.nodered.org/u/EcarDK)\
**Post date:** [7 August 2023 11:58 UTC](https://discourse.nodered.org/t/cronplus-node-input-settings-dont-work/80371/7 "2023-08-07T11:58:27Z")

</div>

Thx dynamicdave

It work great for getting it to trigger a new schedule1.

But how to I get the current status out ?

So I get schedule1 out, if its on schedule1, and schedule2 if its on schedule2 ?

---

<div class="post-metadata">

**Author:** ![greengolfer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/greengolfer/32/28276_2.png) [@greengolfer](https://discourse.nodered.org/u/greengolfer)\
**Post date:** [7 August 2023 12:05 UTC](https://discourse.nodered.org/t/cronplus-node-input-settings-dont-work/80371/8 "2023-08-07T12:05:24Z")

</div>

I think that'll do. Here with only schedule1:

```auto
[{"id":"9c4822a62ac12da2","type":"cronplus","z":"125bd437f9cb47f6","name":"Solstyring","outputField":"payload","timeZone":"","commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule1","topic":"topic1","payloadType":"default","payload":"","expressionType":"cron","expression":"30 * * * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"},{"name":"schedule2","topic":"topic2","payloadType":"default","payload":"","expressionType":"cron","expression":"1 * * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":460,"y":200,"wires":[["5e2df64a20395fb1"]]},{"id":"60d4d3e417a5975e","type":"inject","z":"125bd437f9cb47f6","name":"Schedule1 - Status","props":[{"p":"topic","vt":"str"},{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"status","payload":"schedule1","payloadType":"str","x":250,"y":100,"wires":[["9c4822a62ac12da2"]]},{"id":"5e2df64a20395fb1","type":"debug","z":"125bd437f9cb47f6","name":"debug 20","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":660,"y":200,"wires":[]},{"id":"f5d70cd58750d8f4","type":"inject","z":"125bd437f9cb47f6","name":"Schedule1 - disable","props":[{"p":"topic","vt":"str"},{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"stop","payload":"schedule1","payloadType":"str","x":250,"y":160,"wires":[["9c4822a62ac12da2"]]},{"id":"c30aee91d81d8923","type":"inject","z":"125bd437f9cb47f6","name":"Schedule1 - enable","props":[{"p":"topic","vt":"str"},{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"start","payload":"schedule1","payloadType":"str","x":250,"y":220,"wires":[["9c4822a62ac12da2"]]}]

```

 ![Screenshot 2023-08-07 at 14.05.06](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/d/ad6d5161d555d5cac5ffc5ec315849b7b706b002.png)

The important part is to understand that you have to put the "action" in msg.topic (start, stop, status,...) and the targeted schedule in msg.payload.

---

<div class="post-metadata">

**Author:** ![EcarDK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ecardk/32/76058_2.png) [@EcarDK](https://discourse.nodered.org/u/EcarDK)\
**Post date:** [7 August 2023 12:10 UTC](https://discourse.nodered.org/t/cronplus-node-input-settings-dont-work/80371/9 "2023-08-07T12:10:36Z")

</div>

I just dont understand why I can get the current state out off cronplus node. like in the 2 pngs, you see it status is schedule1 or schedule2

![Udklip1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/0/90ee6ef0ef4faddac2f642e85669d0b73f2ab79c.png)  
 ![Udklip2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/9/195c7db633f1c336989b0da40904f391e63de130.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [7 August 2023 12:19 UTC](https://discourse.nodered.org/t/cronplus-node-input-settings-dont-work/80371/10 "2023-08-07T12:19:25Z")

</div>

> [@EcarDK](#):
>
> But how to I get the current status out ?

In the Change node you need to set the topic to the string `status`, not msg.status as you have.  
Like this.

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

---

<div class="post-metadata">

**Author:** ![greengolfer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/greengolfer/32/28276_2.png) [@greengolfer](https://discourse.nodered.org/u/greengolfer)\
**Post date:** [7 August 2023 12:25 UTC](https://discourse.nodered.org/t/cronplus-node-input-settings-dont-work/80371/11 "2023-08-07T12:25:12Z")

</div>

No, you don't see the status. You see the name and time of the next cron job.  
Look at the example I just gave.

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [7 August 2023 12:41 UTC](https://discourse.nodered.org/t/cronplus-node-input-settings-dont-work/80371/12 "2023-08-07T12:41:57Z")

</div>

I've extended @greengolfer's example to include start/stop for schedule2 and get status for schedule 2.  
Hope it might make things a bit clearer.

 ![trigger_cronplus_v3](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/a/fa36f4eb036ded19a6a01aeeb8c2c7cb8609e3b7.png)

```auto
[{"id":"8dc8527a71bd5fc8","type":"tab","label":"Trigger_cronplus","disabled":false,"info":"","env":[]},{"id":"36206ac00785439f","type":"cronplus","z":"8dc8527a71bd5fc8","name":"Solstyring","outputField":"payload","timeZone":"","storeName":"","commandResponseMsgOutput":"output1","defaultLocation":"","defaultLocationType":"default","outputs":1,"options":[{"name":"schedule1","topic":"topic1","payloadType":"default","payload":"","expressionType":"cron","expression":"30 * * * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"},{"name":"schedule2","topic":"topic2","payloadType":"default","payload":"","expressionType":"cron","expression":"1 * * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":400,"y":180,"wires":[["36168f10ba71c96c"]]},{"id":"1f71b1e01a175ace","type":"inject","z":"8dc8527a71bd5fc8","name":"Schedule1 - Status","props":[{"p":"topic","vt":"str"},{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"status","payload":"schedule1","payloadType":"str","x":190,"y":80,"wires":[["36206ac00785439f"]]},{"id":"36168f10ba71c96c","type":"debug","z":"8dc8527a71bd5fc8","name":"debug 20","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":600,"y":180,"wires":[]},{"id":"ee0835d4e26cac17","type":"inject","z":"8dc8527a71bd5fc8","name":"Schedule1 - disable","props":[{"p":"topic","vt":"str"},{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"stop","payload":"schedule1","payloadType":"str","x":190,"y":200,"wires":[["36206ac00785439f"]]},{"id":"4b2e61de09012f3e","type":"inject","z":"8dc8527a71bd5fc8","name":"Schedule1 - enable","props":[{"p":"topic","vt":"str"},{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"start","payload":"schedule1","payloadType":"str","x":190,"y":240,"wires":[["36206ac00785439f"]]},{"id":"66fa1968237bd87d","type":"inject","z":"8dc8527a71bd5fc8","name":"Schedule2 - Status","props":[{"p":"topic","vt":"str"},{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"status","payload":"schedule2","payloadType":"str","x":190,"y":120,"wires":[["36206ac00785439f"]]},{"id":"d9da4969f62cbd1a","type":"inject","z":"8dc8527a71bd5fc8","name":"Schedule2 - disable","props":[{"p":"topic","vt":"str"},{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"stop","payload":"schedule2","payloadType":"str","x":190,"y":300,"wires":[["36206ac00785439f"]]},{"id":"d21d380eb2b8a062","type":"inject","z":"8dc8527a71bd5fc8","name":"Schedule2 - enable","props":[{"p":"topic","vt":"str"},{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"start","payload":"schedule2","payloadType":"str","x":190,"y":340,"wires":[["36206ac00785439f"]]}]

```

If you adjust the setting in 'debug\_20' to this - you will see the status without having to go down the hierarchy.  
 ![debug_20](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/8/f89195ae1a4726228c921e28da9f26aca64b3bf9.png)

---

<div class="post-metadata">

**Author:** ![EcarDK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ecardk/32/76058_2.png) [@EcarDK](https://discourse.nodered.org/u/EcarDK)\
**Post date:** [7 August 2023 12:56 UTC](https://discourse.nodered.org/t/cronplus-node-input-settings-dont-work/80371/13 "2023-08-07T12:56:00Z")

</div>

I cant get it to work @Colin

will you make an exsample ?

---

<div class="post-metadata">

**Author:** ![greengolfer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/greengolfer/32/28276_2.png) [@greengolfer](https://discourse.nodered.org/u/greengolfer)\
**Post date:** [7 August 2023 12:57 UTC](https://discourse.nodered.org/t/cronplus-node-input-settings-dont-work/80371/14 "2023-08-07T12:57:14Z")

</div>

You already have two working examples 😉

---

<div class="post-metadata">

**Author:** ![EcarDK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ecardk/32/76058_2.png) [@EcarDK](https://discourse.nodered.org/u/EcarDK)\
**Post date:** [7 August 2023 13:02 UTC](https://discourse.nodered.org/t/cronplus-node-input-settings-dont-work/80371/15 "2023-08-07T13:02:17Z")

</div>

mabye I dont get it?

I dont see that you exsamble do what I need.

How do I get the "incect" node make my "cronplus" node send out the current status of it self.

 ![Udklip3](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/b/0be24da0c2157a658f3556865e28c4eeb985b1a4.png)

```auto
[{"id":"f2f618f570f6e3c9","type":"link out","z":"656285f6815688c2","name":"4 Bottom Wall Switch Køkken - 2","mode":"link","links":["f39c5419cf92b1ba"],"x":1125,"y":280,"wires":[]},{"id":"ab4ff35043ebdf8d","type":"change","z":"656285f6815688c2","name":"0 - Default","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\t \"scene_recall\": 0\t}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":950,"y":240,"wires":[["b280ce5de4fd0b55"]]},{"id":"2d08b419cdc5714b","type":"change","z":"656285f6815688c2","name":"OFF","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\t \"state\":\"OFF\",\t \"transition\": 2\t}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":930,"y":200,"wires":[["19d3fe45135137f1"]]},{"id":"0af4c18d5ccd61c1","type":"change","z":"656285f6815688c2","name":"1 - Nattelys","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\t \"scene_recall\": 1\t}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":950,"y":280,"wires":[["f2f618f570f6e3c9"]]},{"id":"98a12fecd19b3662","type":"cronplus","z":"656285f6815688c2","name":"Solstyring","outputField":"payload","timeZone":"","storeName":"","commandResponseMsgOutput":"output1","defaultLocation":"55 9","defaultLocationType":"fixed","outputs":1,"options":[{"name":"Sunrise","topic":"schedule1","payloadType":"str","payload":"1","expressionType":"solar","expression":"20 45 21 * * *","location":"","offset":"0","solarType":"selected","solarEvents":"sunrise"},{"name":"Sunset","topic":"schedule2","payloadType":"str","payload":"2","expressionType":"solar","expression":"0 45 21 * * *","location":"55.05302635383441 9.321497082710266","offset":"-30","solarType":"selected","solarEvents":"eveningGoldenHourStart"},{"name":"23:00","topic":"schedule3","payloadType":"str","payload":"3","expressionType":"cron","expression":"0 0 23 * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":380,"y":240,"wires":[["30db685c88ccb815"]]},{"id":"30db685c88ccb815","type":"switch","z":"656285f6815688c2","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"2","vt":"str"},{"t":"eq","v":"3","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":740,"y":240,"wires":[["2d08b419cdc5714b"],["ab4ff35043ebdf8d"],["0af4c18d5ccd61c1"]],"outputLabels":["Sunrise","Sunset","23:00"]},{"id":"19d3fe45135137f1","type":"link out","z":"656285f6815688c2","name":"Smart Button Spisestue","mode":"link","links":["1bd90be91eaea1f2","2e42a947ced81a50","b81f1e48804294d5","f39c5419cf92b1ba","f7e8db3281bb4f89"],"x":1125,"y":200,"wires":[]},{"id":"b280ce5de4fd0b55","type":"link out","z":"656285f6815688c2","name":"4 Bottom Wall Switch Køkken - 2","mode":"link","links":["1bd90be91eaea1f2","b81f1e48804294d5"],"x":1125,"y":240,"wires":[]},{"id":"247ef6f689ca7d81","type":"inject","z":"656285f6815688c2","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":240,"wires":[["98a12fecd19b3662"]]}]

```

---

<div class="post-metadata">

**Author:** ![EcarDK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ecardk/32/76058_2.png) [@EcarDK](https://discourse.nodered.org/u/EcarDK)\
**Post date:** [7 August 2023 13:03 UTC](https://discourse.nodered.org/t/cronplus-node-input-settings-dont-work/80371/16 "2023-08-07T13:03:25Z")

</div>

I just need it to repeat the last signal it send out.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [7 August 2023 13:05 UTC](https://discourse.nodered.org/t/cronplus-node-input-settings-dont-work/80371/17 "2023-08-07T13:05:34Z")

</div>

Store the last signal sent out, then you can recall it at will.

---

<div class="post-metadata">

**Author:** ![EcarDK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ecardk/32/76058_2.png) [@EcarDK](https://discourse.nodered.org/u/EcarDK)\
**Post date:** [7 August 2023 14:47 UTC](https://discourse.nodered.org/t/cronplus-node-input-settings-dont-work/80371/18 "2023-08-07T14:47:59Z")

</div>

Thx all for you help.

I did not the the solutions I was looking for, and I have to make a work a round.

I endded up using variabels.

the only downside is when the system restart, it dont auto go to the right time.

here are the code

```auto
[{"id":"247f709b1f41d862","type":"comment","z":"c4afb74715a93d10","name":"Solstyring","info":"","x":120,"y":80,"wires":[]},{"id":"f5b032aa34e3b7ed","type":"link out","z":"c4afb74715a93d10","name":"4 Bottom Wall Switch Køkken - 2","mode":"link","links":["f39c5419cf92b1ba"],"x":1345,"y":180,"wires":[]},{"id":"ddf41dd164b2bd82","type":"function","z":"c4afb74715a93d10","name":"set varable || Have ON","func":"// define variable\nvar value = \"on\"\n\n// set global variable\nglobal.set(\"Have\", value)\nglobal.set(\"Kuglelampe_Stor\", value)\nglobal.set(\"Kuglelampe_Lille\", value)\nglobal.set(\"Smartplug_Pavillon\", value)\nglobal.set(\"Gardenpole_L\", value)\nglobal.set(\"Gardenpole_R\", value)\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1120,"y":180,"wires":[["f5b032aa34e3b7ed"]]},{"id":"d66064cb9384ba5e","type":"change","z":"c4afb74715a93d10","name":"0 - Default","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\t \"scene_recall\": 0\t}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":890,"y":140,"wires":[["ddf41dd164b2bd82","02eb5008ce263a48"]]},{"id":"b3cfe6b00ca6de26","type":"change","z":"c4afb74715a93d10","name":"OFF","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\t \"state\":\"OFF\",\t \"transition\": 2\t}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":870,"y":100,"wires":[["3b5fa1b63403908e"]]},{"id":"a8843dd6a7a755de","type":"change","z":"c4afb74715a93d10","name":"1 - Nattelys","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\t \"scene_recall\": 1\t}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":890,"y":180,"wires":[["ddf41dd164b2bd82"]]},{"id":"6a1c0407c2352fe0","type":"cronplus","z":"c4afb74715a93d10","name":"Solstyring","outputField":"payload","timeZone":"","storeName":"file","commandResponseMsgOutput":"output1","defaultLocation":"55 9","defaultLocationType":"fixed","outputs":1,"options":[{"name":"Sunrise","topic":"schedule1","payloadType":"str","payload":"1","expressionType":"solar","expression":"20 45 21 * * *","location":"","offset":"0","solarType":"selected","solarEvents":"sunrise"},{"name":"Sunset","topic":"schedule2","payloadType":"str","payload":"2","expressionType":"solar","expression":"0 45 21 * * *","location":"55.05302635383441 9.321497082710266","offset":"-30","solarType":"selected","solarEvents":"eveningGoldenHourStart"},{"name":"23:00","topic":"schedule3","payloadType":"str","payload":"3","expressionType":"cron","expression":"0 0 23 * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":120,"y":140,"wires":[["3af514259e1d40cb"]]},{"id":"3af514259e1d40cb","type":"switch","z":"c4afb74715a93d10","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"2","vt":"str"},{"t":"eq","v":"3","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":450,"y":140,"wires":[["b5b441a5a7dfc342"],["0a870dff38215297"],["6ae322ad785994ed"]],"outputLabels":["Sunrise","Sunset","23:00"]},{"id":"c352a026f184337a","type":"link out","z":"c4afb74715a93d10","name":"Smart Button Spisestue","mode":"link","links":["1bd90be91eaea1f2","2e42a947ced81a50","b81f1e48804294d5","f39c5419cf92b1ba","f7e8db3281bb4f89"],"x":1345,"y":100,"wires":[]},{"id":"3b5fa1b63403908e","type":"function","z":"c4afb74715a93d10","name":"set varable || Alle OFF","func":"// define variable\nvar value = \"off\"\n\n// set global variable\nglobal.set(\"Stue\", value)\nglobal.set(\"Vitus_Værelse\", value)\nglobal.set(\"Spisestue\", value)\nglobal.set(\"Have\", value)\nglobal.set(\"Annikas_Værelse\", value)\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1120,"y":100,"wires":[["c352a026f184337a"]]},{"id":"02eb5008ce263a48","type":"function","z":"c4afb74715a93d10","name":"set varable || Stue / Spisestue ON","func":"// define variable\nvar value = \"on\"\n\n// set global variable\nglobal.set(\"Spisestue\", value)\nglobal.set(\"Stue\", value)\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1160,"y":140,"wires":[["e83639a48a9859c9"]]},{"id":"e83639a48a9859c9","type":"link out","z":"c4afb74715a93d10","name":"4 Bottom Wall Switch Køkken - 2","mode":"link","links":["1bd90be91eaea1f2","b81f1e48804294d5"],"x":1345,"y":140,"wires":[]},{"id":"2aa617c418aa0425","type":"function","z":"c4afb74715a93d10","name":"get varable || solstyring","func":"// get value from global variable and chack if it exists\nvar value = global.get(\"solstyring\")\n\n// set msg.payload to global variable\nmsg.payload = value\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":240,"y":220,"wires":[["3af514259e1d40cb","52b75292ab9b94a5"]]},{"id":"b5b441a5a7dfc342","type":"function","z":"c4afb74715a93d10","name":"set varable || solstyring 1","func":"// define variable\nvar value = \"1\"\n\n// set global variable\nglobal.set(\"solstyring\", value)\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":670,"y":100,"wires":[["b3cfe6b00ca6de26"]]},{"id":"0a870dff38215297","type":"function","z":"c4afb74715a93d10","name":"set varable || solstyring 2","func":"// define variable\nvar value = \"2\"\n\n// set global variable\nglobal.set(\"solstyring\", value)\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":670,"y":140,"wires":[["d66064cb9384ba5e"]]},{"id":"6ae322ad785994ed","type":"function","z":"c4afb74715a93d10","name":"set varable || solstyring 3","func":"// define variable\nvar value = \"3\"\n\n// set global variable\nglobal.set(\"solstyring\", value)\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":670,"y":180,"wires":[["a8843dd6a7a755de"]]},{"id":"833ada60b312a193","type":"link in","z":"c4afb74715a93d10","name":"Solstyring","links":["9f8ec04d7ab16114","085339630fd0615c"],"x":75,"y":220,"wires":[["2aa617c418aa0425"]]},{"id":"52b75292ab9b94a5","type":"change","z":"c4afb74715a93d10","name":"Solstyring","rules":[{"t":"set","p":"payload","pt":"msg","to":"Solstyring","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":220,"wires":[["3188913b69833903"]]},{"id":"3188913b69833903","type":"cast-to-client","z":"c4afb74715a93d10","name":"Google Nest Køkken | Solstyring","url":"","contentType":"","message":"","language":"da","ip":"192.168.1.56","port":"","volume":"50","x":690,"y":220,"wires":[[]]}]

```

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

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [7 August 2023 14:57 UTC](https://discourse.nodered.org/t/cronplus-node-input-settings-dont-work/80371/19 "2023-08-07T14:57:28Z")

</div>

> [@EcarDK](#):
>
> I cant get it to work @Colin
> 
> will you make an exsample ?

Sorry, I was wrong, the status command does not to what you want.  
Why do you need to do this?

---

<div class="post-metadata">

**Author:** ![EcarDK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ecardk/32/76058_2.png) [@EcarDK](https://discourse.nodered.org/u/EcarDK)\
**Post date:** [7 August 2023 15:02 UTC](https://discourse.nodered.org/t/cronplus-node-input-settings-dont-work/80371/20 "2023-08-07T15:02:42Z")

</div>

![IMG_6422](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/c/0ccbc206f90f8b808e41e08deabb0334a9724a7c.jpeg)

When I press on the "Sun" I like it to set all the light back to the time setting. So at day it set it to off, and so on......

[Next page](https://discourse.nodered.org/t/cronplus-node-input-settings-dont-work/80371.md?page=2)
