Enum SceneType
- All Implemented Interfaces:
Comparable<SceneType>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe home's built-in "I'm home" scene.The home's built-in "I'm leaving" scene.The home's built-in "good night" scene.A scene owned by an automation rather than by the user.A scene the user created.The home's built-in "good morning" scene. -
Method Summary
Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
WAKE_UP
The home's built-in "good morning" scene. -
SLEEP
The home's built-in "good night" scene. -
ARRIVAL
The home's built-in "I'm home" scene. -
DEPARTURE
The home's built-in "I'm leaving" scene. -
USER_DEFINED
A scene the user created. -
TRIGGER_OWNED
A scene owned by an automation rather than by the user.
Not executable. It exists so a listing is complete and so a scene the user cannot run does not silently look like one they can; the automation that owns it decides when it fires, and this release does not expose automations.
Scene.isExecutable()answersfalse.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-