Template

Template Device Relationship EN

Definition:
Templates are the foundational elements used to create devices on the platform. Every device is derived from a template, inheriting its content and settings. This structure ensures consistency and simplifies the management and updating of multiple devices.

Purpose:

  • Device Creation: Devices cannot be created without a template, as templates define the initial structure, content, and configuration of devices.
  • Centralized Updates: Changes made to a template can be synchronized across all devices derived from it, saving time and ensuring consistency.

Key Characteristics:

Content Inheritance and Synchronization:
Devices inherit most of their settings and content from the template they are based on, ensuring consistency across devices derived from the same template.

  • Automatic Updates: Changes made to the template are automatically synchronized with all associated devices, simplifying updates and maintenance.
  • Customization Flexibility: Specific attributes at the device level can override inherited content, allowing for unique configurations when necessary or disabling synchronization for individual attributes.

Example Use Case:

  • You want to add different types of coffee machines to the platform:
    1. Create a Template: Define one template for each specific type of machine, e.g.:
      • Espresso machine
      • French press
      • Portafilter machine
    2. Derive Devices: Derive as many devices as needed from each template, e.g.:
      • 20x Espresso machines
      • 100x French presses
      • 30x Portafilter machines

Further Reading:
To learn more about how to fill your template with content and what settings are available, please refer to the "Templates" section (articles).

Was this article helpful?
YesNo