How to represent properties
Alexa interfaces define most capability properties as strings, integers, or objects.String property example
Integer property example
Object property examples
Brightness
Indicates the brightness of an appliance, such as a smart light bulb. Valid values are integers from 0 – 100, inclusive.Brightness example
Color
Object that represents the color of an endpoint. The structure includes hue, saturation, and brightness fields, which are each double precision numbers. For use by endpoints that are able to change color.Color example
Count
Represents the count of an item, such as the number of doughnuts in a box, or the number of pages in a ream of paper.Count example
DateTime
Represents a specific date and time in Coordinated Universal Time (UTC). Defined as a string in RFC 3339 profile of the ISO 8601 format,YYYY-MM-DDThh:mm:ssZ or YYYY-MM-DDThh:mm:ss.SSSZ. DateTime strings are always specified in UTC with no offsets.
DateTime example
Duration
TheDuration property represents a period of time in ISO 8601 duration format. For cooking operations, you should limit the duration value to the time portion only. This value can be a positive or negative value.
The format is PT*H*H*M*M*SS*S, where:
- P: Required and indicates a duration.
- T: Required and indicates a time.
- H: Indicates hour and is preceded by the number of hours, if hours are specified.
- M: Indicates minutes, and is preceded by the number of minutes, if minutes are specified.
- S: Indicates seconds, preceded by the number of seconds, if seconds are specified.
Three minute and 15 second duration example
Delta of –30 seconds example
Percentage
Usepercentage to represent an amount as a percent. Integer with a valid range of 0 – 100.
Percentage example
Temperature
Used for properties that represent a temperature.lowerSetpoint temperature example
Temperature scales
ThermostatMode
ThermostatMode represents the heating and cooling modes for a thermostat. For the list of valid values, see ThermostatMode Values.
ThermostatMode example
ThermostatMode values
The following table shows the mode values for thermostats. A thermostat might not support all modes.| Value | Description |
|---|---|
AUTO | Automatic heating or cooling based on the current temperature and the setpoint. |
COOL | Cooling mode. |
ECO | Economy mode. |
EM_HEAT | Emergency heating mode. This mode uses a backup heat source as an additional heat source. For example, a customer might use emergency heat in extreme cold or when the heat pump is broken. Customers can set this mode in device settings in the Alexa app. |
HEAT | Heating mode. |
OFF | Heating and cooling are off, but the device might still have power. |
TimeInterval
Represents a time duration. ATimeInterval indicates when an operation should start, end and/or how long it should last. Specify one or two of the time interval fields. If you specify all three fields, an error occurs.
Volume
Indicates a quantity as a unit of volume in one of several different standard units. Can be a descendant type of the polymorphic FoodQuantity.Volume example
The following example shows 1 1/4 liters.Volume unit values
The following table shows the valid values for volume units.Weight
Indicates a quantity as a unit of weight or mass in one of several different standard units. Can be a descendant type of the polymorphic FoodQuantity.Weight example
Weight unit values
The following table shows the unit values that represent weight.Alexa units of measure
You can use the following units of measure:- Alexa.Unit.Angle.Degrees
- Alexa.Unit.Angle.Radians
- Alexa.Unit.Distance.Feet
- Alexa.Unit.Distance.Inches
- Alexa.Unit.Distance.Kilometers
- Alexa.Unit.Distance.Meters
- Alexa.Unit.Distance.Miles
- Alexa.Unit.Distance.Yards
- Alexa.Unit.Mass.Grams
- Alexa.Unit.Mass.Kilograms
- Alexa.Unit.Percent
- Alexa.Unit.Temperature.Celsius
- Alexa.Unit.Temperature.Degrees
- Alexa.Unit.Temperature.Fahrenheit
- Alexa.Unit.Temperature.Kelvin
- Alexa.Unit.Volume.CubicFeet
- Alexa.Unit.Volume.CubicMeters
- Alexa.Unit.Volume.Gallons
- Alexa.Unit.Volume.Liters
- Alexa.Unit.Volume.Pints
- Alexa.Unit.Volume.Quarts
- Alexa.Unit.Weight.Ounces
- Alexa.Unit.Weight.Pounds

