ZW_ConfigurationGetValue - An Parameter via PHP kommen

Hallo zusammen,

gibt es eine Möglichkeit via PHP an bestimmte Parameter/Konfiguration eines Z-Wave Gerätes zu kommen? Ich dachte die Funktion ZW_ConfigurationGetValue hätte dies früher erledigt. Allerdings bekommt ich da nun immer nur 1 / true zurück.

Wie kann ich an einen Parameterwert kommen?

Vielen Dank und viele Grüße,
Niles

Hallo Niles,

etwas zum spielen …

var_dump(json_decode(ZW_GetInformation(12345) ));

Gruß
lueralba

Hallo Lueralba,

vielen lieben Dank! Damit kann ich was anfangen.


function ZW_GetConfigurationValue( $objId, $par )
{
    ZW_ConfigurationGetValue( $objId, $par );

    $objData = json_decode( utf8_encode( ZW_GetInformation($objId) ), true );
    $objConfiguration = json_decode( $objData["ConfigurationValues"], true );

    if( $objConfiguration[$par]["Value"] )
        return $objConfiguration[$par]["Value"];
}

Schöne Grüße
Niles