Fehler nach Update 5.0

Hallo Gemeinde,

ich versuche heute mal so viele rote und gelbe Meldungen weg zu bekommen, wie ich kann.
bei vielen habe ich die Fehler auch gefunden, aber hier bin ich ratlos.
Das Script habe ich seit vielen Jahren und es zeigt mir den Status meiner Homematic Ufos an.

Das Script ist nicht von mir, und so ist es für mich sehr schwer, den Fehler zu finden.

Habt ihr eine Idee, was ich ändern muss ?


<?
if ($IPS_SENDER == "WebFront") return;

include IPS_GetKernelDir()."scripts\\xmlrpc.inc";

$client = new xmlrpc_client("192.168.123.10:2001"); // Adresse anpassen

//Ab hier nichts mehr ändern
$object = IPS_GetObject($IPS_SELF);
$parentID = $object['ParentID'];

//Installer
if ($IPS_SENDER == "Execute")
{
  IPS_SetHidden($IPS_SELF, true);
  IPS_SetName($IPS_SELF, "Auswertung");
  $parentObject = IPS_GetObject($parentID);
  if ($parentObject['ObjectType'] !== 1)
  {
      $instanceID = IPS_CreateInstance("{485D0419-BE97-4548-AA9C-C083EB82E61E}");
      IPS_SetParent($instanceID, $parentID);
      $parentID = $instanceID;
      IPS_SetParent($IPS_SELF, $parentID);
      IPS_SetName($instanceID, "Homematic Interfaces");
  }
  IPS_SetScriptTimer($IPS_SELF, 900);
}

$abfrage = new xmlrpcmsg("listBidcosInterfaces");
$send = $client->send($abfrage);
$result = php_xmlrpc_decode($send->value());

for($i=0; $i <count($result); $i++)
{
    $adresse = CreateVariableByName($parentID, $result[$i]['DESCRIPTION'].": Adresse", 3);
    IPS_SetIcon($adresse, "Information");
    IPS_SetVariableCustomProfile($adresse, "~String");
    SetValue($adresse, $result[$i]['ADDRESS']);

    $connect = CreateVariableByName($parentID, $result[$i]['DESCRIPTION'].": Status", 0);
    if(!IPS_VariableProfileExists("Status"))
    {
        IPS_CreateVariableProfile("Status", 0);
        IPS_SetVariableProfileAssociation("Status", 1, "Online", "");
        IPS_SetVariableProfileAssociation("Status", 0, "Offline", "");
    }
    $action = IPS_GetVariable($connect);
    if($action['VariableCustomAction'] == 0)
    {
        IPS_SetVariableCustomAction($connect, $IPS_SELF);
        IPS_SetIcon($connect, "Information");
        IPS_SetVariableCustomProfile($connect, "Status");
    }
    SetValue($connect, $result[$i]['CONNECTED']);

   $default = CreateVariableByName($parentID, $result[$i]['DESCRIPTION'].": Default", 0);
    if(!IPS_VariableProfileExists("Default"))
    {
        IPS_CreateVariableProfile("Default", 0);
        IPS_SetVariableProfileAssociation("Default", 1, "Aktiv", "");
        IPS_SetVariableProfileAssociation("Default", 0, "Inaktiv", "");
    }
    $action = IPS_GetVariable($default);
    if($action['VariableCustomAction'] == 0)
    {
        IPS_SetVariableCustomAction($default, $IPS_SELF);
        IPS_SetIcon($default, "Information");
        IPS_SetVariableCustomProfile($default, "Default");
    }
    SetValue($default, $result[$i]['DEFAULT']);

}

function CreateVariableByName($id, $name, $type)
{
  global $IPS_SELF;
  $vid = @IPS_GetVariableIDByName($name, $id);
  if($vid === false)
  {
        $vid = IPS_CreateVariable($type);
      IPS_SetParent($vid, $id);
      IPS_SetName($vid, $name);
      IPS_SetInfo($vid, "this variable was created by script #$IPS_SELF");
  }
  return $vid;
}
?>

Fehlermeldung:

Abort Processing during Fatal-Error: Methods with the same name as their class will not be constructors in a future version of PHP; xmlrpc_client has a deprecated constructor
   Error in Script C:\Haussteuerung Installationspfad\IP-Symcon\scripts\xmlrpc.inc on Line 804

Vielen Dank und liebe Grüße
Sascha

Unglaublich wie wenige doch die Suche benutzen :smiley:
IPS 5.0: hmxml.inc und xmlrpc.inc nicht mehr kompatibel zu PHP 7
Michael