public enum AccessoryCategory
- Object
- Enum<AccessoryCategory>
- 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
LIGHT | A lamp, bulb or light strip. |
SWITCH | A wall switch or relay. |
OUTLET | A smart plug or socket. |
THERMOSTAT | A thermostat. |
LOCK | A door lock. |
GARAGE_DOOR_OPENER | A garage door opener. |
WINDOW_COVERING | A blind, shade, curtain or shutter. |
SENSOR | A sensor of any kind – motion, contact, temperature, leak, air quality. |
FAN | A fan. |
AIR_PURIFIER | An air purifier. |
SPEAKER | A speaker. |
TELEVISION | A television or set-top box. |
CAMERA | A camera. |
DOORBELL | A video or audio doorbell. |
BRIDGE | A hub that other accessories sit behind. |
SECURITY_SYSTEM | An alarm panel. |
OTHER | Anything 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
LIGHTA lamp, bulb or light strip.
SWITCH
SWITCHA wall switch or relay.
OUTLET
OUTLETA smart plug or socket.
THERMOSTAT
THERMOSTATA thermostat.
LOCK
LOCKA door lock.
GARAGE_DOOR_OPENER
GARAGE_DOOR_OPENERA garage door opener.
WINDOW_COVERING
WINDOW_COVERINGA blind, shade, curtain or shutter.
SENSOR
SENSORA sensor of any kind – motion, contact, temperature, leak, air
quality. Read the services to find out which.
FAN
FANA fan.
AIR_PURIFIER
AIR_PURIFIERAn air purifier.
SPEAKER
SPEAKERA speaker. See
Trait.VOLUME for why very few real devices land here.TELEVISION
TELEVISIONA television or set-top box.
CAMERA
CAMERAA 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
DOORBELLA video or audio doorbell.
BRIDGE
BRIDGEA hub that other accessories sit behind. Its children report
Accessory.isBridged() and name it through
Accessory.getBridgeAccessoryId().SECURITY_SYSTEM
SECURITY_SYSTEMAn alarm panel. This release exposes no arm or disarm API; a
half-working alarm is a safety problem rather than a feature gap.
OTHER
OTHERAnything 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)