Presence Trait (pres)

Detects presence.

AttributeValue
Idtag:google.com,2018:m2m:traits:presence:v1:v0#r0
Short-Idpres
Has-Childrenno

Implemented by things that can detect the presence of someone, such as motion sensors and pressure mats.

State Properties

NameKeyRWReqDescription
Values/pres/vX?XPresence Detected
Counts/pres/cXXTrip Count
Lasts/pres/lastXThe number of seconds ago that presence was last detected.

s/pres/v : Value

Presence Detected.

AttributeValue
Value Typeboolean
FlagsREQ, GET, OPT_SET, OBS

true while presence is detected, false otherwise.

The presence signal is generally momentary in nature, flipping back and forth between detected and not-detected as the sensor detects movement.

s/pres/c : Count

Trip Count.

AttributeValue
Value Typeinteger
FlagsREQ, GET, RESET, OBS

This count may be reset by setting it to zero. The count is not preserved across power cycles.

s/pres/last : Last

The number of seconds ago that presence was last detected.

AttributeValue
Value Typeinteger
FlagsGET, NO_SET, OBS, VOLATILE

This value is not cacheable. Observing it will only indicate when the value is reset to zero.

Metadata Properties

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

m/pres/turi : TraitURI

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

AttributeValue
Value TypeURI-reference
FlagsCONST, REQ