Template Creation
A template is the blueprint for your Greengrass devices. It defines:
Attributes: The telemetry fields your device will send (temperature, humidity, voltage, etc.)
Commands: Actions you can trigger from the cloud (restart, set_interval, calibrate)
Settings / Twin: Desired property values you can push to the device
Rules: Conditions that trigger notifications or actions when telemetry meets criteria
How to Create a Template:
1. Navigate to Devices → Greengrass Device → Templates (bottom tab).
2. Click Create Template.
3. Fill in the required fields:
| Field |
Description |
Example |
| Template Name |
Descriptive name for this device type |
Smart Factory Sensor |
| Template Code |
Short unique identifier (no spaces) |
factory_sensor_v1 |
| Description |
Optional notes about this template |
Monitors temperature and vibration |
4. Add Attributes — Click Add Attribute for each telemetry field:
| Attribute Name |
Data Type |
Unit |
| Temperature |
Decimal |
°C |
| Humidity |
Decimal |
% |
| Vibration |
Decimal |
mm/s |
| Status |
String |
— |
| IsRunning |
Boolean |
— |
5. Add Commands (optional) — Define remote actions:
| Command Name |
Parameter |
Purpose |
| set_interval |
seconds (Integer) |
Change telemetry reporting frequency |
| restart |
— (none) |
Restart the component |
| calibrate |
offset (Decimal) |
Apply sensor calibration offset |
6. Click Save.