Last updated
Was this helpful?
Last updated
Was this helpful?
Seam's suite of simulate
endpoints help you to test your thermostat app against events that can be difficult to orchestrate in your quality assurance (QA) environment using real devices. Seam provides the following thermostat-related simulate
endpoints that you can use in a :
Seam supports these endpoints for all thermostat .
Before using the simulate
endpoints, check the relevant capabilities of the sandbox thermostat that you want to test. For example, if you want to use /thermostats/simulate/hvac_mode_adjusted
to simulate having set the on a thermostat to heat
, you must first make sure that the thermostat supports heat mode.
The following device properties show the relevant capabilities of a thermostat:
device.can_hvac_heat
device.can_hvac_cool
device.can_hvac_heat_cool
device.can_turn_off_hvac
For more information, see .
You can simulate having set the HVAC mode to any of the following settings:
heat
cool
heat_cool
off
To simulate having adjusted the HVAC mode for a thermostat:
Code:
Output:
Specify the desired temperature that you want to simulate the thermostat reaching using either of the following parameters:
temperature_celsius
temperature_fahrenheit
To simulate reaching a desired temperature:
Code:
Output:
The /thermostats/simulate/hvac_mode_adjusted
endpoint enables you to simulate having adjusted the for a thermostat. This simulation is helpful for testing that your app is receiving correctly, such as thermostat.manually_adjusted
.
When you set the HVAC mode to heat
, cool
, or heat_cool
, you must also set the following applicable to the desired degrees Fahrenheit or Celsius:
The /thermostats/simulate/temperature_reached
endpoint enables you to simulate the thermostat reaching a specified temperature. This simulation is helpful for testing that your app is receiving correctly, such as thermostat.temperature_changed
and thermostat.temperature_reached_set_point
.
heat
heating_set_point_fahrenheit
or heating_set_point_celsius
cool
cooling_set_point_fahrenheit
or cooling_set_point_celsius
heat_cool
heating_set_point_fahrenheit
or heating_set_point_celsius
cooling_set_point_fahrenheit
or cooling_set_point_celsius
off
None
Learn how to use the Seam suite of simulate endpoints to test your thermostat app.