stex v0.2.0 Stex.Devices View Source

SmartThings Devices API endpoint library

Link to this section Summary

Functions

Filter utility for finding devices with the specified capability

List all authorized devices

SmartThings built in endpoint for finding devices based on capability

Get the current status of a device component’s capability. If the token is for a SmartApp that created the device then it implicitly has permission for this api

Get the status of all attributes of a the component. The results may be filtered if the requester only has permission to view a subset of the component’s capabilities. If the token is for a SmartApp that created the device then it implicitly has permission for this api

Get the current status of all of a device’s component’s attributes. The results may be filtered if the requester only has permission to view a subset of the device’s components or capabilities. If the token is for a SmartApp that created the device then it implicitly has permission for this api

Link to this section Functions

Link to this function filter_devices_by_capability(devices, capability) View Source

Filter utility for finding devices with the specified capability.

List all authorized devices

Max: 200 by default will return up to 200 devices.

Link to this function list_by_capability(client, capability) View Source

SmartThings built in endpoint for finding devices based on capability

Max: 200 by default will return up to 200 devices. Curently Broken!

Show device

Link to this function show_capability_status(map, component_id, capability_id) View Source

Get the current status of a device component’s capability. If the token is for a SmartApp that created the device then it implicitly has permission for this api.

Link to this function show_component_status(map, component_id) View Source

Get the status of all attributes of a the component. The results may be filtered if the requester only has permission to view a subset of the component’s capabilities. If the token is for a SmartApp that created the device then it implicitly has permission for this api.

Get the current status of all of a device’s component’s attributes. The results may be filtered if the requester only has permission to view a subset of the device’s components or capabilities. If the token is for a SmartApp that created the device then it implicitly has permission for this api.