string GetValueFormatted (int $VariableID)
VariableID | ID of the variable |
Value of the specified variable, formatted accordingly to profile
The command returns the content of the IP-Symcon variable with the ID VariableID after being formatted according to the variables profile. The formatted result is always returned as string.
echo GetValueFormatted(47788); //Profile = ~Switch
//Returns: On or Off
echo GetValueFormatted(46250); //Profile = ~Temperature
//Returns: 17,5°C