Requires: IP-Symcon >= 2.7
string IPS_GetConfigurationForm (integer $InstanceID)
InstanceID | ID of the instance |
If the command is executed successfully, it returns the configuration form of the instance as JSON coded string. |
Returns the configuration form of the instance with the ID InstanceID as JSON coded string.
// Read the configuration form of instance 12345 and output it $configpage = json_decode(IPS_GetConfigurationForm(12345)); var_dump ($configpage->elements); // Examplary output array(2) { [0]=> object(stdClass)#2 (2) { ["type"]=> string(5) "Label" ["label"]=> string(28) "Minimum needed daily changes" } [1]=> object(stdClass)#3 (3) { ["type"]=> string(13) "NumberSpinner" ["name"]=> string(19) "RequiredSwitchCount" ["caption"]=> string(5) "Count" } }