What can we improve?

Dokumentation

Translation is in progress...

Not all topics are available at the moment and content links may be broken.

HM_RequestStatus

boolean HM_RequestStatus (integer $InstanceID, string $Parameter)

Parameters

InstanceID ID of the device to be switched
Parameter
Value Description
STATE Status of an actuator
LEVEL Dim value

Returns

If the command succeeds, it returns TRUE, otherwise FALSE.

Description

Queries the Parameter of the device with ID InstanceID.

The Parameter value you can derive based on the name of the state variable. In the parameter list some examples are given.

This fuction loads the radio traffic significantly. It should be used solely to update critical devices to IP Symcon start. A requery of the runtime is not required because the HomeMatic forward all status changes directly to IP Symcon.

For battery powered units, only the stored state of the CCU/ LAN adapter will be required. Line-powered equipment can be queried directly by wireless.

Example

$ids = IPS_GetInstanceListByModuleID("{EE4A81C6-5C90-4DB7-AD2F-F6BBD521412E}");
echo "Geräte: ".sizeof($ids)."\n";
foreach($ids as $id)
{
    $svs=IPS_GetStatusVariableIdents($id);
    if(sizeof($svs) > 0) {
        if(@HM_RequestStatus($id, $svs[0]) === false) {
            echo "Fehler: ".IPS_GetLocation($id)."\n";
        }
    }
}
Deutsche Webseite verfügbar
Go to cart
Any questions?