Hallo,
erst einmal danke für die Antworten. Leider kann ich erst jetzt reagieren, weil ich gestern Probleme mit IPS hatte.
Mit der Gesamtvariablen möchte ich alle Einzelvariablen jeweils auf einmal ein- und ausschalten können. Bisher habe ich ein Skript, um das umzusetzen, das durch eine Variablenänderung der Gesamtvariablen ausgelöst wird:
If (GetValue(22442 /*[Beschattung\Automatikschaltung\Automatik alle]*/))
{
setValue(10663 /*[Beschattung\Automatikschaltung\Automatik KiZ]*/, true);
setValue(41732 /*[Beschattung\Automatikschaltung\Automatik Sz]*/, true);
setValue(56324 /*[Beschattung\Automatikschaltung\Automatik Az]*/, true);
setValue(10154 /*[Beschattung\Automatikschaltung\Automatik K L]*/, true);
setValue(59513 /*[Beschattung\Automatikschaltung\Automatik Kü]*/, true);
setValue(37277 /*[Beschattung\Automatikschaltung\Automatik WZ K]*/, true);
setValue(19118 /*[Beschattung\Automatikschaltung\Automatik WZ L]*/, true);
setValue(23104 /*[Beschattung\Automatikschaltung\Automatik WZ P]*/, true);
}
else
{
setValue(10663 /*[Beschattung\Automatikschaltung\Automatik KiZ]*/, false);
setValue(41732 /*[Beschattung\Automatikschaltung\Automatik Sz]*/, false);
setValue(56324 /*[Beschattung\Automatikschaltung\Automatik Az]*/, false);
setValue(10154 /*[Beschattung\Automatikschaltung\Automatik K L]*/, false);
setValue(59513 /*[Beschattung\Automatikschaltung\Automatik Kü]*/, false);
setValue(37277 /*[Beschattung\Automatikschaltung\Automatik WZ K]*/, false);
setValue(19118 /*[Beschattung\Automatikschaltung\Automatik WZ L]*/, false);
setValue(23104 /*[Beschattung\Automatikschaltung\Automatik WZ P]*/, false);
}
Um die Gesamtvariable auf true zu setzen, wenn auch nur eine Einzelvariable auf true ist, habe ich ergänzend folgendes Skript, das durch die Änderung einer Einzelvariablen ausgelöst wird:
If ((GetValue(10663 /*[Beschattung\Automatikschaltung\Automatik KiZ]*/)) or (GetValue(41732 /*[Beschattung\Automatikschaltung\Automatik Sz]*/)) or (GetValue(56324 /*[Beschattung\Automatikschaltung\Automatik Az]*/)) or (GetValue(10154 /*[Beschattung\Automatikschaltung\Automatik K L]*/)) or (GetValue(59513 /*[Beschattung\Automatikschaltung\Automatik Kü]*/)) or (GetValue(37277 /*[Beschattung\Automatikschaltung\Automatik WZ K]*/)) or (GetValue(19118 /*[Beschattung\Automatikschaltung\Automatik WZ L]*/)) or (GetValue(23104 /*[Beschattung\Automatikschaltung\Automatik WZ P]*/)) && ((!GetValue(10663 /*[Beschattung\Automatikschaltung\Automatik KiZ]*/)) or (!GetValue(41732 /*[Beschattung\Automatikschaltung\Automatik Sz]*/)) or (!GetValue(56324 /*[Beschattung\Automatikschaltung\Automatik Az]*/)) or (!GetValue(10154 /*[Beschattung\Automatikschaltung\Automatik K L]*/)) or (!GetValue(59513 /*[Beschattung\Automatikschaltung\Automatik Kü]*/)) or (!GetValue(37277 /*[Beschattung\Automatikschaltung\Automatik WZ K]*/, false)) or (!GetValue(19118 /*[Beschattung\Automatikschaltung\Automatik WZ L]*/)) or (!GetValue(23104 /*[Beschattung\Automatikschaltung\Automatik WZ P]*/))))
{
SetValue(22442 /*[Beschattung\Automatikschaltung\Automatik alle]*/, true);
}
else
{
SetValue(22442 /*[Beschattung\Automatikschaltung\Automatik alle]*/, false);
}
Allerdings führt das Schalten einer einzelnen Einzelvariablen z.B. auf true und damit das Auslösen des zweiten Skripts ja dazu, dass die Gesamtvariable auf true gesetzt und (auch) damit das erste Skript ausgelöst wird, womit wiederum alle Einzelvariablen auf true gesetzt werden. In diesem Fall soll aber gerade das erste Skript nicht ausgelöst werden. Und hier bin ich bisher mit allen Versuchen ($IPS_Sender…, etc.) gescheitert.
Habt Ihr dazu eine Idee?
Viele Grüße…