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.