Require: IP-Symcon >= 4.0
int RegisterVariableInteger (string $Ident, string $Name, string $Profile, int $Position)
Ident of the status variable
Name of the status variable
Name of the profile to be used.
Position in the object tree and thus also in the visualization.
VariableID of the created status variable
This function creates a status variable of the type Integer with the Ident Ident and the name Name. It can also be specified which Profile is to be used and which Position the status variable should be on.
This function can also be called if the variable already exists. In this case only the profile is updated, given it is diverging.
The VariableID can be determined via GetIDForIdent, therefore it does not have to be saved anywhere.
$variableID = $this->RegisterVariableInteger("Status", "Status of Sonos", "Status.SONOS");