Variablen Profilname ändern

Hallo zusammen,

ich habe mir ein neues privates Variablen Profil für meine Rolladenstellung erstellt. Dummerweise habe ich es zum Ausprobieren Rolladen_Test genannt. Da es nun aber genau meinen Zweck erfüllt wollte ich es in Rolladen_Stellung umbenennen. Im Dialogfenster finde ich aber keine Möglichkeiten einen Profilnamen im nachhinein zu ändern.

Hat jemand eine Idee oder einen Hinweis für mich.

Danke

Hi,
ich kenne auch keine andere Möglichkeit als Löschen und dann erneut anlegen.

Es gibt allerdings in der Online Doku. ein Beispielwie man sich den Code zum neu anlegen automatisch erzeugen kann:

<?

getVariableProfileCreationCode("Lampe");


// erster Funktionsparameter: Profilname, zweiter Parameter (optional): neuer Profilname
function getVariableProfileCreationCode ($profileName, $newProfileName = "")
{
  $profile = IPS_GetVariableProfile($profileName);
  if ($profile !== false)
  {
      $profileName = (strlen($newProfileName) > 0) ? $newProfileName : $profileName;
      echo 'IPS_CreateVariableProfile("'.$profileName.'", '.$profile['ProfileType'].');'."
";
      echo 'IPS_SetVariableProfileText("'.$profileName.'", "'.$profile['Prefix'].'", "'.$profile['Suffix'].'");'."
";
      echo 'IPS_SetVariableProfileValues("'.$profileName.'", '.$profile['MinValue'].', '.$profile['MaxValue'].', '.$profile['StepSize'].');'."
";
      echo 'IPS_SetVariableProfileDigits("'.$profileName.'", '.$profile['Digits'].');'."
";
      echo 'IPS_SetVariableProfileIcon("'.$profileName.'", "'.$profile['Icon'].'");'."
";
      foreach ($profile['Associations'] as $association)
      {
         echo 'IPS_SetVariableProfileAssociation("'.$profileName.'", '.$association['Value'].', "'.$association['Name'].'", "'.$association['Icon'].'");'."
";
      }
      echo "
";
  }
}
?>

Ausgabe:

IPS_CreateVariableProfile("Lampe", 0);
IPS_SetVariableProfileText("Lampe", "", "");
IPS_SetVariableProfileValues("Lampe", 0, 0, 0);
IPS_SetVariableProfileDigits("Lampe", 0);
IPS_SetVariableProfileIcon("Lampe", "");
IPS_SetVariableProfileAssociation("Lampe", 0, "Aus", "blue_bulb_off");
IPS_SetVariableProfileAssociation("Lampe", 1, "An", "blue_bulb_on");


Grüße, Benjamin

Hallo,

mir ist noch eine zugegebenermaßen recht „brutale“ Methode eingefallen.
1.) IPS-Dienst beenden
2.) Sicherungskopie von Settings.xml erstellen
3.) in Settings.xml mit einem Texteditor z.B. Notepad++ alle Vorkommen von ‚Rolladen_Test‘ durch ‚Rolladen_Stellung‘ ersetzen
4.) IPS-Dienst wieder starten

Gruß
Helmut

Altes Problem, das offensichtlich immer noch besteht:

Ich möchte ein bestehendes eigenes Profil im nachherein ändern. Geht aber wohl immer noch nicht direkt, wobei die Meldung der Console doch ein wenig Hoffnung weckt, das ihr dran arbeitet!?

Screenshot 2021-01-31 141512.jpg

Ansonsten bitte auf eure to-do Liste setzten!

LG
hardlog