Cronplus node input settings dont work

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.

[{"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":[]}]

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 ?

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".

@EcarDK have you tried using cronplus dynamic schedules?

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

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

[{"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"]]}]

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 ?

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

[{"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"]]}]

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.

1 Like

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
Udklip2

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

image

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.

1 Like

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.

[{"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

I cant get it to work @Colin

will you make an exsample ?

You already have two working examples :wink:

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.

[{"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"]]}]

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

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

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

[{"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":[[]]}]

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

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......