IP-Symcon - Wie kann ich... 2.0

<?
/* Weitere Informationen, zu den einzelnen Befehlen, findet ihr in der Doku:
https://www.symcon.de/service/dokumentation/befehlsreferenz/variablenverwaltung/variablenprofile/
*/


if (IPS_VariableProfileExists("Profilname_Bool_Variable") === false) {
   //@IPS_DeleteVariableProfile("Profilname_Bool_Variable");  // mit dieser Zeile könnte man ein vorhandenes Profil vorher löschen lassen
	IPS_CreateVariableProfile("Profilname_Bool_Variable", 0);
	IPS_SetVariableProfileAssociation("Profilname_Bool_Variable", 0, "Offen", "", -1);
	IPS_SetVariableProfileAssociation("Profilname_Bool_Variable", 1, "Geschlossen", "", 0x00FF00);
	IPS_SetVariableProfileIcon("Profilname_Bool_Variable", "Shutter");
}


if ((IPS_VariableProfileExists("Profilname_Integer_Variable") === false) {
   //@IPS_DeleteVariableProfile("Profilname_Integer_Variable");  // mit dieser Zeile könnte man ein vorhandenes Profil vorher löschen lassen
	IPS_CreateVariableProfile("Profilname_Integer_Variable", 1);
	IPS_SetVariableProfileValues("Profilname_Integer_Variable", 0, 100, 1);
	IPS_SetVariableProfileText("Profilname_Integer_Variable", "", "%");
	IPS_SetVariableProfileIcon("Profilname_Integer_Variable", "Intensity");
}


if (IPS_VariableProfileExists("Profilname_Float_Variable") === false) {
   //@IPS_DeleteVariableProfile("Profilname_Float_Variable");  // mit dieser Zeile könnte man ein vorhandenes Profil vorher löschen lassen
	IPS_CreateVariableProfile("Profilname_Float_Variable", 2);
	IPS_SetVariableProfileDigits("Profilname_Float_Variable", 1);
	IPS_SetVariableProfileValues("Profilname_Float_Variable", 5, 30, 0.5);
	IPS_SetVariableProfileText("Profilname_Float_Variable", "", "°C");
	IPS_SetVariableProfileIcon("Profilname_Float_Variable", "Temperature");
}
?>