Hi!
Ich habe ein Problem beim setzen von Änderungen an Profilen über „IPS_SetVariableProfileAssociation“. Ich kann zwar wunderbar die Hintergrundfarbe ändern, aber die Farbe der Schrift (Vordergrund) bleibt immer grau. Ich möchte für die aktive Auswahl eine weiße Schrift.
Wechen Befehl brauche ich dafür?
Mein Bespielscript:
<?
if($IPS_SENDER == "WebFront")
{
switch($IPS_VALUE)
{
case 1: // AUS
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 1, "AUS", "", 0xF2F5A9);
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 2, "2°C", "", -1);
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 3, "3°C", "", -1);
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 4, "4°C", "", -1);
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 5, "5°C", "", -1);
SetValueFloat(12345 ,0);
break;
case 2: // Absenkung 2K
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 1, "AUS", "", -1);
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 2, "2°C", "", 0x5858FA);
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 3, "3°C", "", -1);
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 4, "4°C", "", -1);
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 5, "5°C", "", -1);
SetValueFloat(12345 ,2);
break;
case 3: // Absenkung 3K
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 1, "AUS", "", -1);
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 2, "2°C", "", -1);
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 3, "3°C", "", 0x2E2EFE);
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 4, "4°C", "", -1);
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 5, "5°C", "", -1);
SetValueFloat(12345 ,3);
break;
case 4: // Absenkung 4K
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 1, "AUS", "", -1);
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 2, "2°C", "", -1);
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 3, "3°C", "", -1);
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 4, "4°C", "", 0x0000FF);
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 5, "5°C", "", -1);
SetValueFloat(12345 ,4);
break;
case 5: // Absenkung 5K
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 1, "AUS", "", -1);
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 2, "2°C", "", -1);
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 3, "3°C", "", -1);
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 4, "4°C", "", -1);
IPS_SetVariableProfileAssociation("T-Absenkung_3ET-RS", 5, "5°C", "", 0x08088A);
SetValueFloat(12345 ,5);
break;
}
}
?>