Difference between revisions of "Capability Object"

From Hubitat Documentation
Jump to: navigation, search
(Created page with "The Capabilities object is comprised of attributes and commands for a driver. If a driver implements a method it tells the system what commands and attributes it supports to...")
 
Line 9: Line 9:
 
String: The reference for a capability. ie capability.refresh for the Refresh capability.  This reference is used by App inputs to select devices.
 
String: The reference for a capability. ie capability.refresh for the Refresh capability.  This reference is used by App inputs to select devices.
 
===<code>attributes</code>===
 
===<code>attributes</code>===
List<Attribute>: A list of attributes supported by this capability.
+
List<[[Attribute Object|Attribute]]>: A list of attributes supported by this capability.
 
===<code>commands</code>===
 
===<code>commands</code>===
 
List<Command>: A list of commands supported by this capability.
 
List<Command>: A list of commands supported by this capability.

Revision as of 16:08, 11 November 2019

The Capabilities object is comprised of attributes and commands for a driver. If a driver implements a method it tells the system what commands and attributes it supports to allow Apps a standardized method of interacting with the device.

Properties

id

Long: A unique id for the capability.

name

String: The name of the capability.

reference

String: The reference for a capability. ie capability.refresh for the Refresh capability. This reference is used by App inputs to select devices.

attributes

List<Attribute>: A list of attributes supported by this capability.

commands

List<Command>: A list of commands supported by this capability.