What can we improve?

Dokumentation

Translation is in progress...

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

HM_WriteValueBoolean

boolean HM_WriteValueBoolean (integer $InstanceID, string $Parameter, boolean $Value)

Parameters

InstanceID ID of the device to be switched
Parameter
Value Description
STATE Status of an adapter plug
Value
Value Description
STATE TRUE for on, FALSE for off

Returns

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

Description

Sets the Parameter of the device with ID InstanceID to value Value.

The Parameter value you can derive based on the name of the state variable. In the parameter list some examples are given. Based on the type of variable you can also see the needed Invalid Link: HM_WriteValue function.

Example

HM_WriteValueBoolean(12345, "STATE", true); //Turn on device
Deutsche Webseite verfügbar
Go to cart
Any questions?