JSON Payload Fields
The Crestron Home® OS Rest API uses the following field names and values in JSON responses.
Rooms
- name: The Crestron Home room name
- id: The unique room ID within the Crestron Home system
Devices (Generic)
- name: The device or scene name
- type: The device type (light, shade, media room, lock, thermostat, security device, sensor)
- subType: The device subtype (varies by parent device type)
- id: The unique device ID within the Crestron Home system that is used to get device-specific information
- roomId: The unique ID of the room within the Crestron Home system that contains the device
Lights
- level: An integer value (0–65535) that corresponds with the lighting load level
- name: The lighting load name
- subType: The device subtype (dimmer, switch)
- id: The unique lighting load ID within the Crestron Home system that is used to get load-specific information
- roomId: The unique ID of the room within the Crestron Home system that contains the lighting load
Shades
- position: An integer value (0–65535) that corresponds with the shade position
- name: The shade name
- subType: The device subtype (shade, drape)
- id: The unique shade ID within the Crestron Home system that is used to get shade-specific information
- roomId: The unique ID of the room within the Crestron Home system that contains the shade
Scenes
- status: The current status of the scene (active, inactive)
- name: The scene name
- type: The scene type (media, climate, lock, lighting, shade, shade group, I/O, daylight, generic I/O, none)
- id: The unique scene ID within the Crestron Home system that is used to get scene-specific information
- roomId: The unique ID of the room within the Crestron Home system that contains the scene
Thermostats
- setpoint: An object containing the following properties:
- Type: The setpoint type (heat, cool, auto)
- Temp: The setpoint temperature (as an integer value)
- mode: The thermostat operating mode (heat, cool, auto, off)
- currentFanMode: The current fan operating mode (auto, on)
- schedule: The thermostat schedule mode (run, hold, off)
- currentTemperature: The current temperature observed by the thermostat
- temperatureUnits: The temperature unit used by the thermostat (Fahrenheit whole degrees, Celsius whole degrees, Celsius half degrees)
- schedulerState: The current scheduler mode state (hold, run, off)
- availableFanModes: The fan modes available on the thermostat (auto, on, low, medium, high)
- availableSystemModes: The system modes available on the thermostat (off, cool, heat, auto, aux heat)
- availableSetPoints: The setpoints available on the thermostat (heat, cool, auto, aux heat)
- name: The thermostat name
- id: The unique thermostat ID within the Crestron Home system that is used to get thermostat-specific information
- roomId: The unique ID of the room within the Crestron Home system that contains the thermostat
Door Locks
- status: The door lock state (locked, unlocked)
- name: The door lock name
- id: The unique door lock ID within the Crestron Home system that is used to get lock-specific information
- roomId: The unique ID of the room within the Crestron Home system that contains the shade
Sensors (Read-Only)
- presence: The state of the sensor:
- For occupancy sensors, valid values are occupied, vacant, and unavailable.
- For doors and gates, valid values are open or on.
- level: For photo sensors, the operation level of the sensor (as an integer)
- name: The sensor name
- subType: The sensor subtype (photo sensor, occupancy sensor)
- id: The unique sensor ID within the Crestron Home system that is used to get sensor-specific information
- roomId: The unique ID of the room within the Crestron Home system that contains the sensor
Security Devices
- availableStates: The states available on the security device (alarm, arm away, arm instant, arm stay, disarmed, entry delay, exit delay, fire)
- currentState: The current state of the security device (alarm, arm away, arm instant, arm stay, disarmed, entry delay, exit delay, fire, unknown)
- name: The security device name
- id: The unique security device ID within the Crestron Home system that is used to get device-specific information
- roomId: The unique ID of the room within the Crestron Home system that contains the security device
Media Rooms
- currentVolumeLevel: The current volume level of the media device (as an integer)
- currentSourceId: The source provider set on the media device
- currentMuteState: The current mute state of the device (muted, unmuted)
- availablePowerStates: The power states available in the media room (on, off)
- currentPowerState: The current power state of the device (on, off)
- availableSources: A list of available media sources in the media zone
- availableVolumeControls: The volume controls available in the media zone (discrete)
- schedulerState: The current scheduler mode state (hold, run, off)
- availableFanModes: The fan modes available on the thermostat (auto, on, low, medium, high)
- availableSystemModes: The system modes available on the thermostat (off, cool, heat, auto, aux heat)
- availableSetPoints: The setpoints available on the thermostat (heat, cool, auto, aux heat)
- name: The media room name
- id: The unique media room ID within the Crestron Home system that is used to get room-specific information
- roomId: The unique ID of the room within the Crestron Home system that is operating as the media room
Quick Actions
- name: The name of the quick action within the Crestron Home system
- id: The unique quick action ID within the Crestron Home system that is used to get action-specific information
Error Objects
- errorSource: The source in the Crestron Home system at which the error occurred:
- 5001: Session expired
- 5002: Authentication
- 6001: Rooms
- 7000: Unhandled
- 7001: Login
- 7003: Lights
- 7004: Shades
- 7005: Logout
- 7006: Scenes
- 7007: Thermostats
- 7008: Fan mode
- 7009: System mode
- 8000: Invalid data
- 8001: Devices
- 8005: Security devices
- 8006: Sensors
- 8007: Door locks
- 8008: Scheduler
- 8009: Setpoint
- 8010: Media rooms
- errorMessage: A generic message regarding the error