Previous Topic

Next Topic

Book Contents

Book Index

Creating a Template

To construct an HTML template for adding and editing commands/conditions of your custom type, execute the following steps:

  1. Create a new HTML document named <your_command/condition_type>.html.
  2. In the document, insert a <div> element of class ha_template and an ID of your choice.
  3. In the div element, define all fields that are needed for configuring commands/conditions of your type.

The following example shows a template with just one text field:

<div class="ha_template" id="template_DemoCommand">

  <label>Property:</label>

  <input class="property_field" title="Set the property" />

</div>