{"name":"Rollo Controller","type":"virtual_device","properties":{"deviceIcon":279,"currentIcon":"278","log":"","logTemp":"","mainLoop":"","ui.Label1.value":"AD: 22:31 Uhr bzw. 20 min vorher \n SA: 05:08 Uhr - SU: 21:42 Uhr","ui.Label2.value":"S: 118° W: 210° ","ui.Label3.value":"308°","ui.Label4.value":"O: 0 S: 0 W: 0","visible":"true","rows":[{"type":"label","elements":[{"id":1,"lua":false,"waitForResponse":false,"caption":"","name":"Label1","favourite":false,"main":false}]},{"type":"button","elements":[{"id":2,"lua":true,"waitForResponse":false,"caption":"Alle Auf","name":"Button11","empty":false,"msg":"local maxID = 1000\n\nfor id = 1, maxID do\nlocal deviceType = fibaro:getType(id) \n if deviceType == 'com.fibaro.FGRM222' then\n fibaro:call(id, \"open\") \n local name = fibaro:getName(id) \n local room = fibaro:getRoomNameByDeviceID(id) \n fibaro:debug(\"Hochgefahren \" ..name.. \" im Raum \" ..room)\n end\nend","buttonIcon":277,"favourite":false,"main":true},{"id":3,"lua":true,"waitForResponse":false,"caption":"Alle ZU","name":"Button12","empty":false,"msg":"local maxID = 1000\n\nfor id = 1, maxID do\nlocal deviceType = fibaro:getType(id) \n if deviceType == 'com.fibaro.FGRM222' then\n fibaro:call(id, \"close\") \n local name = fibaro:getName(id) \n local room = fibaro:getRoomNameByDeviceID(id) \n fibaro:debug(\"Runtergefahren \" ..name.. \" im Raum \" ..room)\n end\nend","buttonIcon":278,"favourite":false,"main":false}]},{"type":"button","elements":[{"id":4,"lua":true,"waitForResponse":false,"caption":"EG A","name":"Button21","empty":false,"msg":"local Rollos = {151, 153, 147, 110, 149, 161, 163, 155}\n\nfor i = 1,#Rollos do\n \tfibaro:call(Rollos[i], \"open\")\n\t--fibaro:debug(\"Aktuelle Dev ID: \"..Rollos[i])\nend","buttonIcon":277,"favourite":false,"main":false},{"id":5,"lua":true,"waitForResponse":false,"caption":"OG A","name":"Button22","empty":false,"msg":"local Rollos = {173, 169, 171, 165, 167, 175}\n\nfor i = 1,#Rollos do\n \tfibaro:call(Rollos[i], \"open\")\n\t--fibaro:debug(\"Aktuelle Dev ID: \"..Rollos[i])\nend","buttonIcon":277,"favourite":false,"main":false},{"id":6,"lua":true,"waitForResponse":false,"caption":"EG Z","name":"Button23","empty":false,"msg":"local Rollos = {151, 153, 147, 110, 149, 161, 163, 155}\n\nfor i = 1,#Rollos do\n \tfibaro:call(Rollos[i], \"close\")\n\t--fibaro:debug(\"Aktuelle Dev ID: \"..Rollos[i])\nend","buttonIcon":278,"favourite":false,"main":false},{"id":7,"lua":true,"waitForResponse":false,"caption":"OG Z","name":"Button24","empty":false,"msg":"local Rollos = {173, 169, 171, 165, 167, 175}\n\nfor i = 1,#Rollos do\n \tfibaro:call(Rollos[i], \"close\")\n\t--fibaro:debug(\"Aktuelle Dev ID: \"..Rollos[i])\nend","buttonIcon":278,"favourite":false,"main":false}]},{"type":"button","elements":[{"id":8,"lua":true,"waitForResponse":false,"caption":"SunO","name":"Button31","empty":false,"msg":"local Rollos = {153, 155, 173, 171}\n\nfor i = 1,#Rollos do\n \tfibaro:call(Rollos[i],\"setValue\", \"20\")\n\t--fibaro:debug(\"Aktuelle Dev ID: \"..Rollos[i])\nend\n","buttonIcon":278,"favourite":false,"main":false},{"id":9,"lua":true,"waitForResponse":false,"caption":"SunS","name":"Button32","empty":false,"msg":"local Rollos = {110, 147, 169, 167, 151}; --ohne Küchen-Terassentür; 167 Feli Garten\n\nfor i = 1,#Rollos do\n \tfibaro:call(Rollos[i],\"setValue\", \"20\")\n\t--fibaro:debug(\"Aktuelle Dev ID: \"..Rollos[i])\nend\n","buttonIcon":278,"favourite":false,"main":false},{"id":10,"lua":true,"waitForResponse":false,"caption":"SunW","name":"Button33","empty":false,"msg":"local Rollos = {149, 163, 175, 165}\n\nfor i = 1,#Rollos do\n \tfibaro:call(Rollos[i],\"setValue\", \"20\")\n\t--fibaro:debug(\"Aktuelle Dev ID: \"..Rollos[i])\nend\n","buttonIcon":278,"favourite":false,"main":false}]},{"type":"button","elements":[{"id":11,"lua":true,"waitForResponse":false,"caption":"OstA","name":"Button41","empty":false,"msg":"local Rollos = {153, 155, 173, 171}; \n\nfor i = 1,#Rollos do\n \tfibaro:call(Rollos[i], \"open\")\n\t--fibaro:debug(\"Aktuelle Dev ID: \"..Rollos[i])\nend","buttonIcon":277,"favourite":false,"main":false},{"id":12,"lua":true,"waitForResponse":false,"caption":"SüdA","name":"Button42","empty":false,"msg":"local Rollos = {110, 147, 169, 167, 151}\n\nfor i = 1,#Rollos do\n \tfibaro:call(Rollos[i], \"open\")\n\t--fibaro:debug(\"Aktuelle Dev ID: \"..Rollos[i])\nend","buttonIcon":277,"favourite":false,"main":false},{"id":13,"lua":true,"waitForResponse":false,"caption":"WestA","name":"Button43","empty":false,"msg":"local Rollos = {149, 163, 175, 165}\n\nfor i = 1,#Rollos do\n \tfibaro:call(Rollos[i], \"open\")\n\t--fibaro:debug(\"Aktuelle Dev ID: \"..Rollos[i])\nend","buttonIcon":277,"favourite":false,"main":false}]},{"type":"button","elements":[{"id":14,"lua":true,"waitForResponse":false,"caption":"Auto Zu On","name":"Button51","empty":false,"msg":"-- Setzt GVs vom Script \"SonnenRolloSteuerung\" auf 0\n-- Wenn 0 fahren Rollos Runter\n\nfibaro:setGlobal(\"SonneOstRunter\", \"0\")\nfibaro:setGlobal(\"SonneSuedRunter\", \"0\")\nfibaro:setGlobal(\"SonneWestRunter\", \"0\")\n\nfibaro:sleep (100)\nfibaro:call(316, \"setProperty\", \"ui.Label4.value\", \"O: \"..fibaro:getGlobalValue(\"SonneOstRunter\")..\" S: \"..fibaro:getGlobalValue(\"SonneSuedRunter\")..\" W: \"..fibaro:getGlobalValue(\"SonneWestRunter\"))\n","buttonIcon":0,"favourite":false,"main":false},{"id":15,"lua":true,"waitForResponse":false,"caption":"Auto Zu Off","name":"Button52","empty":false,"msg":"-- Setzt GVs vom Script \"SonnenRolloSteuerung\" auf 1\n-- Wenn 1 fahren Rollos nicht Runter\n\nfibaro:setGlobal(\"SonneOstRunter\", \"1\")\nfibaro:setGlobal(\"SonneSuedRunter\", \"1\")\nfibaro:setGlobal(\"SonneWestRunter\", \"1\")\nfibaro:sleep (100)\nfibaro:call(316, \"setProperty\", \"ui.Label4.value\", \"O: \"..fibaro:getGlobalValue(\"SonneOstRunter\")..\" S: \"..fibaro:getGlobalValue(\"SonneSuedRunter\")..\" W: \"..fibaro:getGlobalValue(\"SonneWestRunter\"))\n","buttonIcon":0,"favourite":false,"main":false}]},{"type":"label","elements":[{"id":16,"lua":false,"waitForResponse":false,"caption":"Sonnenstand","name":"Label3","favourite":false,"main":false}]},{"type":"label","elements":[{"id":17,"lua":false,"waitForResponse":false,"caption":"Sonnenschutz","name":"Label2","favourite":false,"main":false}]},{"type":"label","elements":[{"id":18,"lua":false,"waitForResponse":false,"caption":"StatusZU","name":"Label4","favourite":false,"main":false}]}]},"actions":{"pressButton":1,"setSlider":2,"setProperty":2}}