--- /dev/null
+!Alle Schaltaktoren müssen im Gewerk "Weihnachtsbeleuchtung" sein
+!Diese werden dann ein-/aus-geschaltet geschaltet
+
+!einschalten
+var myAssembly = dom.GetObject("Weihnachtsbeleuchtung");
+string itemID;
+foreach(itemID, myAssembly.EnumUsedIDs()) {
+ var item = dom.GetObject(itemID);
+ if (item.IsTypeOf(OT_CHANNEL)) {
+ var device = dom.GetObject(item.Device());
+ if (device.HssType() == "HM-LC-Sw1-Pl") { item.State(1); }
+ if (device.HssType() == "HM-LC-Sw1-FM") { item.State(1); }
+ if (device.HssType() == "HM-LC-Sw2-FM") { item.State(1); }
+ if (device.HssType() == "HM-LC-Sw1-PB-FM") { item.State(1); }
+ if (device.HssType() == "HM-LC-Sw2-PB-FM") { item.State(1); }
+ if (device.HssType() == "HM-LC-Dim1L-Pl") { item.State(1.00); }
+ if (device.HssType() == "HM-LC-Dim1L-CV") {item.State(1.00); }
+ }
+}
+
+!ausschalten
+var myAssembly = dom.GetObject("Weihnachtsbeleuchtung");
+string itemID;
+foreach(itemID, myAssembly.EnumUsedIDs()) {
+ var item = dom.GetObject(itemID);
+ if (item.IsTypeOf(OT_CHANNEL)) {
+ var device = dom.GetObject(item.Device());
+ if (device.HssType() == "HM-LC-Sw1-Pl") { item.State(1); }
+ if (device.HssType() == "HM-LC-Sw1-FM") { item.State(1); }
+ if (device.HssType() == "HM-LC-Sw2-FM") { item.State(1); }
+ if (device.HssType() == "HM-LC-Sw1-PB-FM") { item.State(1); }
+ if (device.HssType() == "HM-LC-Sw2-PB-FM") { item.State(1); }
+ if (device.HssType() == "HM-LC-Dim1L-Pl") { item.State(1.00); }
+ if (device.HssType() == "HM-LC-Dim1L-CV") {item.State(1.00); }
+ }
+}
+