Documentation
IPS_TemplateExists
Require: IP-Symcon >= 8.0
boolean IPS_TemplateExists (string $TemplateID)
Parameters
TemplateID | ID of the template to be checked formatted as GUID |
Returns
If a template with the TemplateGUID exists, TRUE is returned, otherwise FALSE.
Description
The function checks whether the template with the ID TemplateID exists.
Example
if (IPS_TemplateExists('{868B087E-A38D-2155-EBE0-157AFBBF9E8C}' /* room temperature */)) {
echo 'Template already exists!';
}