This object is passed as the parameter to event handlers in apps, providing some information about the event and the device that produced it.
Boolean
Not used
String
Driver-provided description of event, often including device name, attribute name, new value, and (if applicable) unit as human-friendly string (e.g., "Living Room dimmer level is 50%"). Not mandatory.
boolean
Not used
String
Boolean
If true
, platform will generate an event even if the new value is the same as the old value. The default behavior filters out events that do not represent a change in value.
String
The name of the device attribute represented by this event (e.g., "switch"
or "temperature"
)
String
The new value of the specified attribute
String
The units for the new value, (e.g., "%"
or "°F"
; optional)
String
Boolean
Not used
String
May be "physical"
(if event was generated by user action on the device itself, e.g., pressing a button/switch) or "digital"
(if generated as a result of a command sent from the hub), or null
(default and very common)
Long
Long
Long