Scene Trait (scen)

Support for Scenes.

AttributeValue
Idtag:google.com,2018:m2m:traits:scene:v1:v0#r0
Short-Idscen
Has-Childrenyes

Provides scene support for a thing: named collections of state properties that can be easily recalled.

State Properties

NameKeyRWReqDescription
SceneIds/scen/sidXXXCurrent scene identifier.

s/scen/sid : SceneId

Current scene identifier.

AttributeValue
Value Typenullable text string
FlagsREQ, RW, VOLATILE

When written to, applies the scene to the state. When read, it will return the last state that was loaded if no changes to the state have been made since that time. Otherwise reading will return null.

Config Properties

NameKeyRWReqDescription
SceneIdPowerOnc/scen/sporXXScene identifier to use at power-up.

c/scen/spor : SceneIdPowerOn

Scene identifier to use at power-up.

AttributeValue
Value Typenullable text string
FlagsEXPERIMENTAL, RW

If not null, this property identifies the scene that will be automatically loaded at power-on or reset. Not all implementations support changing this value.

Metadata Properties

NameKeyRWReqDescription
TraitURIm/scen/turiXXThe URI that uniquely identifies the specification used to implement this trait.

m/scen/turi : TraitURI

The URI that uniquely identifies the specification used to implement this trait.

AttributeValue
Value TypeURI-reference
FlagsCONST, REQ

Methods

KeyDescription
f/scen?saveSaves the current state to the given SceneId.

f/scen?save : Save

Saves the current state to the given SceneId.

ArgReqReturnsDescription
sidtext stringScene ID

Returns URI for the created scene.