Hallo,
habe folgendes Script
<?
$ID = IPS_GetVariableProfile("Samsung_TV");
echo $ID[Associations][1][Name]."
";
print_r($ID);
?>
und möchte den Namen (Text) aus einem Variablenprofil entsprechend der Zuordnung auslesen. (Hier z.B. Ein)
Klappt auch soweit, jedoch werden Fehler ausgeworfen.
Wie bekomme ich die weg.
Hier die Fehler
Warning: Use of undefined constant Associations - assumed 'Associations' (this will throw an Error in a future version of PHP) in D:\IP-Symcon\scripts\18511.ips.php on line 8
Warning: Use of undefined constant Name - assumed 'Name' (this will throw an Error in a future version of PHP) in D:\IP-Symcon\scripts\18511.ips.php on line 8
EIN
Array
(
[ProfileName] => Samsung_TV
[ProfileType] => 1
[Icon] => LED_Yellow_32
[Prefix] =>
[Suffix] =>
[MinValue] => 0
[MaxValue] => 0
[StepSize] => 0
[Digits] => 0
[Associations] => Array
(
[0] => Array
(
[Value] => -2
[Name] => AUS
[Icon] => LED_Red_32
[Color] => 10066329
)
[1] => Array
(
[Value] => -1
[Name] => EIN
[Icon] =>
[Color] => 3381606
)
[2] => Array
(
[Value] => 0
[Name] => Power
[Icon] =>
[Color] => 255
)