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