public enum AccessoryCategory

  1. Object
  2. Enum<AccessoryCategory>
  3. AccessoryCategory

ImplementsComparable<AccessoryCategory>

Roughly what an Accessory is, for picking an icon and grouping a list.

Do not branch capability on this. What an accessory can actually do is its AccessoryServices and their Traits; a device that calls itself a switch may well dim, and a light strip may report temperature. This is a label for the user interface, and the two platforms’ own categorizations are only approximately alike.

Enum constants

LIGHTA lamp, bulb or light strip.
SWITCHA wall switch or relay.
OUTLETA smart plug or socket.
THERMOSTATA thermostat.
LOCKA door lock.
GARAGE_DOOR_OPENERA garage door opener.
WINDOW_COVERINGA blind, shade, curtain or shutter.
SENSORA sensor of any kind – motion, contact, temperature, leak, air quality.
FANA fan.
AIR_PURIFIERAn air purifier.
SPEAKERA speaker.
TELEVISIONA television or set-top box.
CAMERAA camera.
DOORBELLA video or audio doorbell.
BRIDGEA hub that other accessories sit behind.
SECURITY_SYSTEMAn alarm panel.
OTHERAnything else, including a category one platform has and this API does not.

Methods

public static AccessoryCategory[] values()
public static AccessoryCategory valueOf(String name)

Inherited methods

Enum constant details

LIGHT

LIGHT
A lamp, bulb or light strip.

SWITCH

SWITCH
A wall switch or relay.

OUTLET

OUTLET
A smart plug or socket.

THERMOSTAT

THERMOSTAT
A thermostat.

LOCK

LOCK
A door lock.

GARAGE_DOOR_OPENER

GARAGE_DOOR_OPENER
A garage door opener.

WINDOW_COVERING

WINDOW_COVERING
A blind, shade, curtain or shutter.

SENSOR

SENSOR
A sensor of any kind – motion, contact, temperature, leak, air quality. Read the services to find out which.

FAN

FAN
A fan.

AIR_PURIFIER

AIR_PURIFIER
An air purifier.

SPEAKER

SPEAKER
A speaker. See Trait.VOLUME for why very few real devices land here.

TELEVISION

TELEVISION
A television or set-top box.

CAMERA

CAMERA
A camera. This release exposes no stream, snapshot or recording API; the category exists so a camera is visible in the graph rather than missing from it.

DOORBELL

DOORBELL
A video or audio doorbell.

BRIDGE

BRIDGE
A hub that other accessories sit behind. Its children report Accessory.isBridged() and name it through Accessory.getBridgeAccessoryId().

SECURITY_SYSTEM

SECURITY_SYSTEM
An alarm panel. This release exposes no arm or disarm API; a half-working alarm is a safety problem rather than a feature gap.

OTHER

OTHER
Anything else, including a category one platform has and this API does not.

Method details

values

public static AccessoryCategory[] values()

valueOf

public static AccessoryCategory valueOf(String name)