Hello I need help (Alarm list)

Hello I need help So I would like to create a function so that the list gets a second, third, fourth and so on after a new input value. at the moment I am simply replacing the existing entry. Can someone help me? It's about the berreich alarm list and if someone still has an idea for quitting I would also be very happy. Thank you

[{"id":"19341b48.6dae65","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"f15297b.720b168","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"ee47c5e8.e17bd","type":"tab","label":"Example of ui-list","disabled":false,"info":""},{"id":"949f78f1.1ce9b","type":"tab","label":"COVID Dashboard","disabled":false,"info":""},{"id":"b5f7fd2e.997f8","type":"ui_base","theme":{"name":"theme-light","lightTheme":{"default":"#0094CE","baseColor":"#2f3131","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":true,"reset":false},"darkTheme":{"default":"#097479","baseColor":"#097479","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":false},"customTheme":{"name":"Untitled Theme 1","default":"#4B7930","baseColor":"#4B7930","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"},"themeState":{"base-color":{"default":"#0094CE","value":"#2f3131","edited":true},"page-titlebar-backgroundColor":{"value":"#2f3131","edited":false},"page-backgroundColor":{"value":"#fafafa","edited":false},"page-sidebar-backgroundColor":{"value":"#333333","edited":false},"group-textColor":{"value":"#545858","edited":false},"group-borderColor":{"value":"#ffffff","edited":false},"group-backgroundColor":{"value":"#ffffff","edited":false},"widget-textColor":{"value":"#111111","edited":false},"widget-backgroundColor":{"value":"#2f3131","edited":false},"widget-borderColor":{"value":"#ffffff","edited":false},"base-font":{"value":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"}},"angularTheme":{"primary":"indigo","accents":"blue","warn":"red","background":"grey"}},"site":{"name":"Node-RED Dashboard","hideToolbar":"false","allowSwipe":"false","lockMenu":"false","allowTempTheme":"true","dateFormat":"DD.MM.YYYY","sizes":{"sx":48,"sy":48,"gx":6,"gy":6,"cx":6,"cy":6,"px":0,"py":0}}},{"id":"bff85389.1d6d6","type":"ui_tab","name":"Storen","icon":"Prototyp","order":3,"disabled":false,"hidden":false},{"id":"2dfccfd3.fcaa9","type":"ui_group","name":"Wetterdaten","tab":"6efcf7a2.b080e8","order":3,"disp":true,"width":"6","collapse":false},{"id":"f795c0db.2245f","type":"ui_group","name":"Aufzeichnung","tab":"6a575f92.3b894","order":2,"disp":true,"width":"6","collapse":false},{"id":"2650cf46.b6f79","type":"ui_group","name":"Storen","tab":"bff85389.1d6d6","order":1,"disp":true,"width":"6","collapse":false},{"id":"782035a0.031fac","type":"knxEasy-config","host":"192.168.1.118","port":"3671"},{"id":"a70cb498.bcdbb8","type":"ui_group","name":"Szenen","tab":"d39966c7.4f9ff8","order":1,"disp":true,"width":"6","collapse":false},{"id":"d39966c7.4f9ff8","type":"ui_tab","name":"Szenen","icon":"dashboard","order":2,"disabled":false,"hidden":false},{"id":"6a575f92.3b894","type":"ui_tab","name":"Aufzeichnung","icon":"dashboard","order":4,"disabled":false,"hidden":false},{"id":"3790e5e0.3f7d6a","type":"ui_tab","name":"Sperre","icon":"dashboard","order":5,"disabled":false,"hidden":false},{"id":"6efcf7a2.b080e8","type":"ui_tab","name":"Wetterdaten","icon":"dashboard","order":6,"disabled":false,"hidden":false},{"id":"f37a9e03.5e072","type":"ui_group","name":"Group 1","tab":"3790e5e0.3f7d6a","order":1,"disp":true,"width":6},{"id":"4136e1c7.dead9","type":"ui_tab","name":"Wettervorhersage","icon":"dashboard","order":1,"disabled":false,"hidden":false},{"id":"47a6f8cb.db30d8","type":"ui_group","name":"Wettervorhersage","tab":"4136e1c7.dead9","order":1,"disp":true,"width":"10","collapse":false},{"id":"80eb9d72.5ab94","type":"ui_group","name":"Actieve Alarmen","tab":"","order":2,"disp":true,"width":"6","collapse":false},{"id":"81dd3718.b97888","type":"ui_group","name":"Active Alarms","tab":"","order":1,"disp":true,"width":"12","collapse":true},{"id":"1c127556.33317b","type":"ui_group","name":"Overview","tab":"6152efc3.75cfe","order":2,"disp":false,"width":"12","collapse":false},{"id":"6152efc3.75cfe","type":"ui_tab","name":"Patio Plant Monitor","icon":"dashboard","order":1},{"id":"276198de.4f3a88","type":"ui_tab","name":"Alarmliste","icon":"dashboard","order":10,"disabled":false,"hidden":false},{"id":"c13fc264.6a807","type":"ui_group","name":"Group 1","tab":"276198de.4f3a88","order":1,"disp":true,"width":"10","collapse":false},{"id":"b5af8896.add1a8","type":"ui_group","name":"Group 2","tab":"bff85389.1d6d6","order":2,"disp":true,"width":6},{"id":"7e4c65d6.0419cc","type":"ui_group","name":"Default","tab":"","order":1,"disp":true,"width":"12","collapse":false},{"id":"5c91fe90.935be","type":"ui_group","name":"COVID Stats","tab":"","order":2,"disp":true,"width":"12","collapse":false},{"id":"b2b3bb03.b2093","type":"ui_group","name":"Search","tab":"","order":1,"disp":true,"width":"8","collapse":false},{"id":"ef22f34f.ac05d8","type":"ui_group","name":"Country Reports","tab":"","order":3,"disp":true,"width":"8","collapse":false},{"id":"4427621b.554264","type":"ui_group","name":"Crew","tab":"","order":1,"disp":true,"width":"6","collapse":false},{"id":"3c5da821.6d5638","type":"ui_group","name":"Two dimension Array","tab":"","order":2,"disp":true,"width":"6","collapse":false},{"id":"2b345d73.f4d042","type":"ui_group","name":"Circulating Pump Control","tab":"","order":4,"disp":true,"width":"5"},{"id":"389dd264.7716de","type":"mqtt-broker","z":"19341b48.6dae65","broker":"localhost","port":"1883","clientid":"Node-Red","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"588415aa.7a48cc","type":"ui_group","name":"Group 2","tab":"","order":2,"disp":true,"width":6},{"id":"2b87f21b.63d43e","type":"ui_group","name":"Group 2","tab":"276198de.4f3a88","order":2,"disp":true,"width":6},{"id":"ca638f5c.08049","type":"knxEasy-in","z":"19341b48.6dae65","server":"782035a0.031fac","topic":"0/5/0","dpt":"9.001","initialread":false,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"name":"Aussentemperatur","x":270,"y":500,"wires":[["cfac1dc3.b1626","f9f489d8.c48568"]]},{"id":"48602427.a2b8fc","type":"knxEasy-in","z":"19341b48.6dae65","server":"782035a0.031fac","topic":"0/6/0","dpt":"9.005","initialread":false,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"name":"Windgeschwindigkeit","x":280,"y":560,"wires":[["adbe226e.6d036","9af5d78c.0f21b8","7abd9fc6.256ac"]]},{"id":"6f148dda.bfbad4","type":"knxEasy-in","z":"19341b48.6dae65","server":"782035a0.031fac","topic":"0/7/0","dpt":"9.004","initialread":false,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"name":"Helligkeit","x":240,"y":620,"wires":[["79bb814a.62d81","9417b365.c98b2"]]},{"id":"c4ab454f.8b5448","type":"knxEasy-out","z":"19341b48.6dae65","server":"782035a0.031fac","topic":"0/1/0","dpt":"1.001","name":"Sperrung","outputtype":"write","x":980,"y":1360,"wires":[]},{"id":"b7ef2f34.27dfd","type":"knxEasy-out","z":"19341b48.6dae65","server":"782035a0.031fac","topic":"0/0/1","dpt":"1.009","name":"Storen 1","outputtype":"write","x":1000,"y":1020,"wires":[]},{"id":"f17f535.44e27b","type":"knxEasy-out","z":"19341b48.6dae65","server":"782035a0.031fac","topic":"0/0/3","dpt":"1.009","name":"Storen 3","outputtype":"write","x":1000,"y":1140,"wires":[]},{"id":"5273e202.63e98c","type":"knxEasy-out","z":"19341b48.6dae65","server":"782035a0.031fac","topic":"0/0/2","dpt":"1.009","name":"Storen 2","outputtype":"write","x":1000,"y":1080,"wires":[]},{"id":"79374b2d.4cd744","type":"knxEasy-out","z":"19341b48.6dae65","server":"782035a0.031fac","topic":"0/0/4","dpt":"1.009","name":"Storen 4","outputtype":"write","x":1000,"y":1200,"wires":[]},{"id":"49dd0811.599d68","type":"knxEasy-out","z":"19341b48.6dae65","server":"782035a0.031fac","topic":"0/4/0","dpt":"1.008","name":"Zentral Auf / AB","outputtype":"write","x":1000,"y":1480,"wires":[]},{"id":"cfac1dc3.b1626","type":"ui_chart","z":"19341b48.6dae65","name":"Temperatur","group":"f795c0db.2245f","order":0,"width":0,"height":0,"label":"Temperatur","chartType":"line","legend":"true","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":true,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"x":1030,"y":580,"wires":[[]]},{"id":"adbe226e.6d036","type":"ui_chart","z":"19341b48.6dae65","name":"Wind","group":"f795c0db.2245f","order":0,"width":0,"height":0,"label":"Windgeschwindigkeit","chartType":"line","legend":"true","xformat":"auto","interpolate":"linear","nodata":"","dot":true,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"x":1010,"y":620,"wires":[[]]},{"id":"79bb814a.62d81","type":"ui_chart","z":"19341b48.6dae65","name":"Lux","group":"f795c0db.2245f","order":0,"width":0,"height":0,"label":"Helligkeit","chartType":"line","legend":"true","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":true,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"x":1010,"y":660,"wires":[[]]},{"id":"f9f489d8.c48568","type":"ui_gauge","z":"19341b48.6dae65","name":"Temperatur","group":"2dfccfd3.fcaa9","order":1,"width":0,"height":0,"gtype":"donut","title":"Temperatur","label":"°C","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1030,"y":440,"wires":[]},{"id":"9af5d78c.0f21b8","type":"ui_gauge","z":"19341b48.6dae65","name":"Wind","group":"2dfccfd3.fcaa9","order":2,"width":0,"height":0,"gtype":"donut","title":"Wind","label":"m/s","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1010,"y":480,"wires":[]},{"id":"9417b365.c98b2","type":"ui_gauge","z":"19341b48.6dae65","name":"Helligkeit","group":"2dfccfd3.fcaa9","order":3,"width":0,"height":0,"gtype":"donut","title":"Helligkeit","label":"Lux","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1020,"y":520,"wires":[]},{"id":"af95c01e.5d2a8","type":"ui_button","z":"19341b48.6dae65","name":"Auf / AB","group":"a70cb498.bcdbb8","order":0,"width":0,"height":0,"passthru":false,"label":"Alle Auf / Ab","tooltip":"","color":"","bgcolor":"","icon":"","payload":"true","payloadType":"bool","topic":"topic","topicType":"msg","x":220,"y":1480,"wires":[["49dd0811.599d68"]]},{"id":"2c69c82a.0a4db8","type":"ui_button","z":"19341b48.6dae65","name":"Storen 1","group":"2650cf46.b6f79","order":0,"width":0,"height":0,"passthru":false,"label":"Storen 1","tooltip":"","color":"","bgcolor":"","icon":"","payload":"true","payloadType":"bool","topic":"topic","topicType":"msg","x":240,"y":1020,"wires":[["b7ef2f34.27dfd"]]},{"id":"a9a45860.803388","type":"ui_button","z":"19341b48.6dae65","name":"Storen 2","group":"2650cf46.b6f79","order":0,"width":0,"height":0,"passthru":false,"label":"Storen 2","tooltip":"","color":"","bgcolor":"","icon":"","payload":"true","payloadType":"bool","topic":"topic","topicType":"msg","x":240,"y":1080,"wires":[["5273e202.63e98c"]]},{"id":"3a627837.663828","type":"ui_button","z":"19341b48.6dae65","name":"Storen 3","group":"2650cf46.b6f79","order":0,"width":0,"height":0,"passthru":false,"label":"Storen 3","tooltip":"","color":"","bgcolor":"","icon":"","payload":"true","payloadType":"bool","topic":"topic","topicType":"msg","x":240,"y":1140,"wires":[["f17f535.44e27b"]]},{"id":"308233d.d9230cc","type":"ui_button","z":"19341b48.6dae65","name":"Storen 4","group":"2650cf46.b6f79","order":0,"width":0,"height":0,"passthru":false,"label":"Storen 4","tooltip":"","color":"","bgcolor":"","icon":"","payload":"true","payloadType":"bool","topic":"topic","topicType":"msg","x":240,"y":1200,"wires":[["79374b2d.4cd744"]]},{"id":"5afe9f46.12b1","type":"ui_switch","z":"19341b48.6dae65","name":"Sperrung Schalter","label":"Sperrung Schalter","tooltip":"","group":"f37a9e03.5e072","order":1,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"topic","topicType":"msg","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":false,"x":250,"y":1360,"wires":[["c4ab454f.8b5448"]]},{"id":"472b630.9fcee9c","type":"openweathermap in","z":"19341b48.6dae65","name":"Wetterdaten","wtype":"current","lon":"9.5314","lat":"46.8119","city":"","country":"","language":"de","x":270,"y":160,"wires":[["93a7ae30.b37f5","464bc12d.5724a","52205f89.a13dd","a7471913.572cd8","c5f61798.ae1618","430a3051.4997"]]},{"id":"93a7ae30.b37f5","type":"function","z":"19341b48.6dae65","name":"Feuchtigkeit","func":"var newMag ={payload: msg.payload.humidity }\nreturn newMag;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":710,"y":120,"wires":[["70ce5208.a4860c"]]},{"id":"464bc12d.5724a","type":"function","z":"19341b48.6dae65","name":"Temperatur","func":"var newMag ={payload: msg.payload.tempc }\nreturn newMag;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":710,"y":80,"wires":[["1ab39cca.0a8473"]]},{"id":"52205f89.a13dd","type":"function","z":"19341b48.6dae65","name":"Detail","func":"var newMag ={payload: msg.payload.detail }\nreturn newMag;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":690,"y":160,"wires":[["899d53cd.73a61"]]},{"id":"a7471913.572cd8","type":"function","z":"19341b48.6dae65","name":"Wind","func":"var newMag ={payload: msg.payload.windspeed }\nreturn newMag;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":690,"y":200,"wires":[["ef844c91.9a875"]]},{"id":"c5f61798.ae1618","type":"function","z":"19341b48.6dae65","name":"Temp Max","func":"var newMag ={payload: msg.payload.temp_maxc }\nreturn newMag;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":710,"y":240,"wires":[["8f9d683f.dfe378"]]},{"id":"430a3051.4997","type":"function","z":"19341b48.6dae65","name":"Temp Max","func":"var newMag ={payload: msg.payload.temp_minc }\nreturn newMag;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":710,"y":280,"wires":[["1fa108be.edbe87"]]},{"id":"1ab39cca.0a8473","type":"ui_gauge","z":"19341b48.6dae65","name":"Ist Temperatur","group":"47a6f8cb.db30d8","order":2,"width":0,"height":0,"gtype":"donut","title":"Temperatur","label":"°C","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1040,"y":80,"wires":[]},{"id":"70ce5208.a4860c","type":"ui_gauge","z":"19341b48.6dae65","name":"Feuchtigkeit","group":"47a6f8cb.db30d8","order":3,"width":0,"height":0,"gtype":"donut","title":"Feuchtigkeit","label":"F","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1030,"y":120,"wires":[]},{"id":"ef844c91.9a875","type":"ui_gauge","z":"19341b48.6dae65","name":"Wind","group":"47a6f8cb.db30d8","order":4,"width":0,"height":0,"gtype":"donut","title":"Windgeschwindigkeit","label":"m/s","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1010,"y":200,"wires":[]},{"id":"8f9d683f.dfe378","type":"ui_gauge","z":"19341b48.6dae65","name":"Temperatur Max","group":"47a6f8cb.db30d8","order":5,"width":0,"height":0,"gtype":"donut","title":"Temperatur Maximal","label":"°C","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1040,"y":240,"wires":[]},{"id":"1fa108be.edbe87","type":"ui_gauge","z":"19341b48.6dae65","name":"Temperatur Min","group":"47a6f8cb.db30d8","order":6,"width":0,"height":0,"gtype":"donut","title":"Temperatur Minimal","label":"°C","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1040,"y":280,"wires":[]},{"id":"899d53cd.73a61","type":"ui_text","z":"19341b48.6dae65","group":"47a6f8cb.db30d8","order":1,"width":0,"height":0,"name":"","label":"Wetter","format":"{{msg.payload}}","layout":"row-spread","x":1010,"y":160,"wires":[]},{"id":"a2f02d61.6298","type":"e-mail","z":"19341b48.6dae65","server":"smtp-mail.outlook.com","port":"587","secure":false,"tls":true,"name":"fabianreichlin.fr92@gmail.com","dname":"Warnung","x":1000,"y":1640,"wires":[]},{"id":"feae9579.080868","type":"delay","z":"19341b48.6dae65","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"4","rateUnits":"hour","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":760,"y":1640,"wires":[["a2f02d61.6298"]]},{"id":"e878b7a9.001278","type":"function","z":"19341b48.6dae65","name":"Email Versenden","func":"\nif (msg.payload >= 15)\n{\nmsg.topic=\"Windgeschwindigkeit erhöt\";\nmsg.payload=\"Windgeschwindigkeiten\" + String (msg.payload);\nreturn msg;\n}\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":390,"y":1640,"wires":[["feae9579.080868"]]},{"id":"efe40413.d512d8","type":"knxEasy-in","z":"19341b48.6dae65","server":"782035a0.031fac","topic":"0/0/6","dpt":"5.001","initialread":false,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"name":"Status Storen 2","x":220,"y":1820,"wires":[["9ec7a0.233c086"]]},{"id":"596ff77c.a6ff38","type":"knxEasy-in","z":"19341b48.6dae65","server":"782035a0.031fac","topic":"0/0/5","dpt":"5.001","initialread":false,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"name":"Status Storen 1","x":220,"y":1760,"wires":[["27521e23.de3172"]]},{"id":"49339432.66c63c","type":"knxEasy-in","z":"19341b48.6dae65","server":"782035a0.031fac","topic":"0/0/7","dpt":"5.001","initialread":false,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"name":"Status Storen 3","x":220,"y":1880,"wires":[["e5eaf3f3.b7f2"]]},{"id":"c86dadc6.0c13e","type":"knxEasy-in","z":"19341b48.6dae65","server":"782035a0.031fac","topic":"0/0/8","dpt":"5.001","initialread":false,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"name":"Status Storen 4","x":220,"y":1940,"wires":[["da03207f.14ca"]]},{"id":"27521e23.de3172","type":"ui_chart","z":"19341b48.6dae65","name":"Storen 1","group":"2650cf46.b6f79","order":6,"width":0,"height":0,"label":"Storen 1 ","chartType":"bar","legend":"true","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"0","ymax":"100","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"x":980,"y":1760,"wires":[[]]},{"id":"9ec7a0.233c086","type":"ui_chart","z":"19341b48.6dae65","name":"Storen 2","group":"2650cf46.b6f79","order":6,"width":0,"height":0,"label":"Storen 2","chartType":"bar","legend":"true","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"0","ymax":"100","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"x":980,"y":1820,"wires":[[]]},{"id":"e5eaf3f3.b7f2","type":"ui_chart","z":"19341b48.6dae65","name":"Storen 3","group":"2650cf46.b6f79","order":6,"width":0,"height":0,"label":"Storen 3","chartType":"bar","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"0","ymax":"100","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"x":980,"y":1880,"wires":[[]]},{"id":"da03207f.14ca","type":"ui_chart","z":"19341b48.6dae65","name":"Storen 4","group":"2650cf46.b6f79","order":6,"width":0,"height":0,"label":"Storen 4","chartType":"bar","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"0","ymax":"100","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"x":980,"y":1940,"wires":[[]]},{"id":"162ab33d.091bed","type":"ui_button","z":"19341b48.6dae65","name":"Storen 1 Stopp","group":"2650cf46.b6f79","order":0,"width":0,"height":0,"passthru":false,"label":"Storen 1 Stop","tooltip":"","color":"","bgcolor":"","icon":"","payload":"true","payloadType":"bool","topic":"topic","topicType":"msg","x":260,"y":780,"wires":[["f5aebe06.81a2a"]]},{"id":"c795fced.030bc","type":"ui_button","z":"19341b48.6dae65","name":"Storen 2 Stopp","group":"2650cf46.b6f79","order":0,"width":0,"height":0,"passthru":false,"label":"Storen 2 Stop","tooltip":"","color":"","bgcolor":"","icon":"","payload":"true","payloadType":"bool","topic":"topic","topicType":"msg","x":260,"y":840,"wires":[["337c84b1.3622dc"]]},{"id":"8df064b9.109698","type":"ui_button","z":"19341b48.6dae65","name":"Storen 3 Stopp","group":"2650cf46.b6f79","order":0,"width":0,"height":0,"passthru":false,"label":"Storen 3 Stopp","tooltip":"","color":"","bgcolor":"","icon":"","payload":"true","payloadType":"bool","topic":"topic","topicType":"msg","x":260,"y":900,"wires":[["9b1d5abc.02e978"]]},{"id":"acb3f3cd.ffe92","type":"ui_button","z":"19341b48.6dae65","name":"Storen 4 Stopp","group":"2650cf46.b6f79","order":0,"width":0,"height":0,"passthru":false,"label":"Storen 4 Stopp","tooltip":"","color":"","bgcolor":"","icon":"","payload":"true","payloadType":"bool","topic":"topic","topicType":"msg","x":260,"y":960,"wires":[["dfa72aef.ad9ab8"]]},{"id":"f5aebe06.81a2a","type":"knxEasy-out","z":"19341b48.6dae65","server":"782035a0.031fac","topic":"0/0/9","dpt":"1.009","name":"Storen 1","outputtype":"write","x":1000,"y":780,"wires":[]},{"id":"337c84b1.3622dc","type":"knxEasy-out","z":"19341b48.6dae65","server":"782035a0.031fac","topic":"0/0/10","dpt":"1.009","name":"Storen 2","outputtype":"write","x":1000,"y":840,"wires":[]},{"id":"9b1d5abc.02e978","type":"knxEasy-out","z":"19341b48.6dae65","server":"782035a0.031fac","topic":"0/0/11","dpt":"1.009","name":"Storen 3","outputtype":"write","x":1000,"y":900,"wires":[]},{"id":"dfa72aef.ad9ab8","type":"knxEasy-out","z":"19341b48.6dae65","server":"782035a0.031fac","topic":"0/0/12","dpt":"1.009","name":"Storen 4","outputtype":"write","x":1000,"y":960,"wires":[]},{"id":"82abf3e9.c8f0e","type":"comment","z":"19341b48.6dae65","name":"Wetterstation","info":"","x":250,"y":460,"wires":[]},{"id":"26193f7c.54ee","type":"comment","z":"19341b48.6dae65","name":"Wetterdaten","info":"","x":270,"y":20,"wires":[]},{"id":"ceff76b3.25c648","type":"comment","z":"19341b48.6dae65","name":"Schalter","info":"","x":240,"y":740,"wires":[]},{"id":"8cac784a.aa32b8","type":"comment","z":"19341b48.6dae65","name":"Schalter Sperrung","info":"","x":250,"y":1320,"wires":[]},{"id":"e8f06af6.fcf4e8","type":"comment","z":"19341b48.6dae65","name":"Zentral Auf / Ab","info":"","x":240,"y":1440,"wires":[]},{"id":"8e868693.7da248","type":"comment","z":"19341b48.6dae65","name":"Status Storen Auslesen","info":"","x":240,"y":1720,"wires":[]},{"id":"d3f6c592.de6d08","type":"comment","z":"19341b48.6dae65","name":"Link zur Alarmmeldung","info":"","x":740,"y":380,"wires":[]},{"id":"aefe36d4.878a58","type":"comment","z":"19341b48.6dae65","name":"Funktionen","info":"","x":700,"y":20,"wires":[]},{"id":"503b20cf.8670c","type":"comment","z":"19341b48.6dae65","name":"Ausgabe Wetterdaten Auf Dashboard","info":"","x":1110,"y":20,"wires":[]},{"id":"28bca3ec.fe422c","type":"comment","z":"19341b48.6dae65","name":"Ausgabe Wetterdaten Auf Dashboard","info":"","x":1110,"y":380,"wires":[]},{"id":"71690f1f.aa601","type":"comment","z":"19341b48.6dae65","name":"Verbindung auf KNX Installation","info":"","x":1070,"y":740,"wires":[]},{"id":"fe67dbc1.892798","type":"comment","z":"19341b48.6dae65","name":"Funktion","info":"","x":400,"y":1600,"wires":[]},{"id":"17b2657d.547b9b","type":"comment","z":"19341b48.6dae65","name":"Blockierung für 4 h","info":"","x":750,"y":1600,"wires":[]},{"id":"7befcd54.432f14","type":"comment","z":"19341b48.6dae65","name":"E-Mail senden","info":"","x":1010,"y":1600,"wires":[]},{"id":"3785fe9c.d2a402","type":"comment","z":"19341b48.6dae65","name":"Ausgabe Wetterdaten auf Dashboard","info":"","x":1070,"y":1720,"wires":[]},{"id":"7abd9fc6.256ac","type":"link out","z":"19341b48.6dae65","name":"","links":["6cb27c4b.b8c2e4","c52811b7.43eb7"],"x":665,"y":420,"wires":[]},{"id":"6cb27c4b.b8c2e4","type":"link in","z":"19341b48.6dae65","name":"","links":["7abd9fc6.256ac"],"x":155,"y":1640,"wires":[["e878b7a9.001278"]]},{"id":"c52811b7.43eb7","type":"link in","z":"19341b48.6dae65","name":"","links":["7abd9fc6.256ac"],"x":215,"y":2180,"wires":[["6b57ea5.3cb3814"]]},{"id":"6b57ea5.3cb3814","type":"function","z":"19341b48.6dae65","name":"Funktion","func":"\nvar t = new Date();\nt = (('00' + t.getHours()).slice(-2) + ':' + ('00' + t.getMinutes()).slice(-2) + ':' + ('00' + t.getSeconds()).slice(-2) + ' / ' + ('00' + (t.getMonth() + 1)).slice(-2) + '.' + ('00' + t.getDate()).slice(-2) + '.' + t.getFullYear());\n\nif (msg.payload >= 7)\n{\nvar Zahl = 0;\nfor (var i = 0; msg.payload >= 7 ; i++){\n    \nvar arrey =[[i++,t,\"Windalarm\",String (msg.payload),\"Buton\"]];\nmsg.payload = arrey;\nreturn msg;\n\n}\n}","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":480,"y":2120,"wires":[["5fd194f0.878b3c","b1084809.676358"]]},{"id":"5fd194f0.878b3c","type":"debug","z":"19341b48.6dae65","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1230,"y":2120,"wires":[]},{"id":"b1084809.676358","type":"ui_template","z":"19341b48.6dae65","group":"c13fc264.6a807","name":"Alarm Liste","order":1,"width":"0","height":"0","format":"<table id=\"Alarmlieste\" border=\"1\">\n <tr>\n <th>Nummer</th> \n <th>Zeitstempel</th> \n <th>Alarm</th>\n <th>Grund</th>\n <th>Quitierung</th>\n </tr>\n <tbody>\n <tr ng-repeat=\"row in msg.payload\">\n <td ng-repeat=\"item in row\" >{{item}}</td>\n </tr>\n </tbody>\n</table>\n\n","storeOutMessages":false,"fwdInMessages":true,"resendOnRefresh":false,"templateScope":"local","x":830,"y":2120,"wires":[[]]},{"id":"d3de0de4.c58a3","type":"ui_button","z":"19341b48.6dae65","name":"","group":"c13fc264.6a807","order":7,"width":0,"height":0,"passthru":false,"label":"button","tooltip":"","color":"","bgcolor":"","icon":"","payload":"8","payloadType":"num","topic":"topic","topicType":"msg","x":190,"y":2120,"wires":[["6b57ea5.3cb3814","5fd194f0.878b3c"]]},{"id":"8d6b7d49.9b817","type":"comment","z":"19341b48.6dae65","name":"Email Senden","info":"","x":210,"y":1600,"wires":[]},{"id":"cd086ff9.ad532","type":"comment","z":"19341b48.6dae65","name":"Alarm Liste","info":"","x":180,"y":2080,"wires":[]},{"id":"cdbc1a44.e0a6b8","type":"comment","z":"19341b48.6dae65","name":"Funktion","info":"","x":480,"y":2080,"wires":[]},{"id":"6eaa1d5e.d02794","type":"comment","z":"19341b48.6dae65","name":"Ausgabe auf Dashboard","info":"","x":870,"y":2080,"wires":[]}]
  1. your flow can not be imported - in order to make code more readable and importable it is important to surround your code with three backticks
    ```
    like this
    ```

You can edit and correct your post by clicking the pencil icon.

See this post for more details - How to share code or flow json

  1. How is this thread different from the one you opened yesterday? Help for Alarm list
1 Like

Hello Fabian,

I think the link I posted in your other post will help for this problem as well. Check out arrays/objects and how to add, read and delete entries.

Cheers
Ranki

Hallo
Thanks for the hint.
In the first post I asked for ideas and in the second I tried it myself and I never came across the second question. I just don't know whether this variant is effective. I can also close the first question.

Thanks I saw the example and it helped me a little at the beginning. But not with the index. I try it.
Thank you very much

Hello Fabian,

I guess you want to have the values stored, so you need to save them in a flow or global variable.

Then you would like to add sth. (and I guess you will want to delete sth. as well). From my point of view it does make sense to have separate entries, which can be addressed.

There are several possibilities; I try to explain two of them, which might be not the most effective one, but maybe the most understandable for you.

  1. You can define an array, which contains an entry for every kind of alerts you are using:
// Initialize the array with all needed alarms
var alarms = [0,1,2,3];

In the following you will save the status for every alarm (true or false) like:

// set some values of the alarms 
alarms["0"] = true;
alarms["1"] = false;
  1. You can define an object, which contains an element for every kind of alerts you are using:
// Initialize the object with all needed alarms
var alarms = {"Temp1":false, "Temp2":false, "Humid1":false, "Humid2":false};

In the following you will save the status for every alarm (true or false) like:

// set some values of the alarms 
alarms["Temp1"] = true;
alarms["Temp2"] = false;
alarms["Humid1"] = false;
alarms["Humid2"] = true;

If you want to get now only the active alarms you can go through the array/ object and return those who are true.

You will have to save the array/ object in a flow or global variable.

Does this way fit your needs?

Cheers
Ranki

I'm not sure i need a case application. If the condition is met, alarm 1 comes when alarm 1 and 2 comes then alarm 1 and alarm 2 comes into the Arrey etc. I always have to spend a multi-line Arrey because of the fom-bar. I try to tinker something together. Now I have two examples and approaches. thank you for the answer

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