A commented example: HVAC temperature control with AWS IoT Events - AWS IoT Events

End of support notice: On May 20, 2026, AWS will end support for AWS IoT Events. After May 20, 2026, you will no longer be able to access the AWS IoT Events console or AWS IoT Events resources. For more information, see AWS IoT Events end of support.

A commented example: HVAC temperature control with AWS IoT Events

Some of the following example JSON files have comments inline, which makes them invalid JSON. Complete versions of these examples, without comments, are available at Example: Using HVAC temperature control with AWS IoT Events.

This example implements a thermostat control model that gives you the ability to do the following.

  • Define just one detector model that can be used to monitor and control multiple areas. A detector instance is created for each area.

  • Ingest temperature data from multiple sensors in each control area.

  • Change the temperature set point for an area.

  • Set operational parameters for each area and reset these parameters while the instance is in use.

  • Dynamically add or delete sensors from an area.

  • Specify a minimum runtime to protect heating and cooling units.

  • Reject anomalous sensor readings.

  • Define emergency set points that immediately engage heating or cooling if any one sensor reports a temperature above or below a given threshold.

  • Report anomalous readings and temperature spikes.