Hi thanks for your answer. I can't get it to work. Can you take a look?
[{"id":"62302add.4be644","type":"ui_text","z":"3e53ca35.c83ac6","group":"8e556f63.5ad14","order":1,"width":"0","height":"0","name":"","label":"T1:","format":"{{msg.payload}}","layout":"row-center","className":"","x":450,"y":120,"wires":[]},{"id":"bd9fb294.d2bb9","type":"timeswitch","z":"3e53ca35.c83ac6","name":"T1","mytopic":"","lat":"","lon":"","starttime":"360","endtime":"840","timezone":"Europe/Berlin","duskoff":"0","dawnoff":"0","sun":true,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"jan":true,"feb":true,"mar":true,"apr":true,"may":true,"jun":true,"jul":true,"aug":true,"sep":true,"oct":true,"nov":true,"dec":true,"x":90,"y":60,"wires":[["60f14d17.b85aa4"]]},{"id":"b24710ae.12744","type":"s7 in","z":"3e53ca35.c83ac6","endpoint":"17b58fa0.732d4","mode":"single","variable":"dword","diff":false,"name":"","x":90,"y":120,"wires":[["6ac3db71.811b34"]]},{"id":"60f14d17.b85aa4","type":"change","z":"3e53ca35.c83ac6","name":"","rules":[{"t":"set","p":"state","pt":"flow","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":420,"y":60,"wires":[[]]},{"id":"6ac3db71.811b34","type":"switch","z":"3e53ca35.c83ac6","name":"","property":"state","propertyType":"flow","rules":[{"t":"eq","v":"1","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":270,"y":120,"wires":[["62302add.4be644"]]},{"id":"8e556f63.5ad14","type":"ui_group","z":"","name":"Schichten","tab":"171d8214.95a08e","order":3,"disp":false,"width":"6","collapse":false,"className":""},{"id":"17b58fa0.732d4","type":"s7 endpoint","z":"","transport":"iso-on-tcp","address":"192.168.178.10","port":"102","rack":"0","slot":"2","localtsaphi":"01","localtsaplo":"00","remotetsaphi":"01","remotetsaplo":"00","connmode":"rack-slot","adapter":"","busaddr":"2","cycletime":"300","timeout":"2000","name":"","vartable":[{"addr":"DB2,X0.0","name":"test"},{"addr":"DB2,DI6","name":"dword"}]},{"id":"171d8214.95a08e","type":"ui_tab","z":"","name":"MSK Produktzähler","icon":"dashboard","disabled":false,"hidden":false}]