Documentation
HM_WriteValueFloat
boolean HM_WriteValueFloat (int $InstanceID, string $Parameter, float $Value)
Parameters
InstanceID | ID of the device to be switched |
Parameter | Parameter that should be set. The name of the parameter can be taken from the data point list or as "Ident" in the tab "Status Variables" in IP-Symcon. |
Value | floating point number that should be set |
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 __HM_WriteValue__ function.
Additional datapoints can be taken from the HomeMatic data point list.
If the error message Failure occurs, this is usually due to a bad wireless connection.
Example
// Dim device to 25%. Values allowed between 0.0 and 1.0
HM_WriteValueFloat(12345, "LEVEL", 0.25);
// Set the activation duration to 1 hour. Values allowed between 0 and 85825945.6 in seconds
HM_WriteValueFloat(12345, "ON_TIME", 3600);