Capability Object

From Hubitat Documentation
Revision as of 16:07, 11 November 2019 by Cschwer (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.