DeviceCapability

Properties

lastChanged

lastChanged: Date|null

Type

  • Date | null

value

value: boolean|number|string|null

Type

  • boolean | number | string | null

Methods

destroy

destroy()

Destroy the listener, and if it's the last one, unsubscribe from the device's realtime events.

setValue

(async) setValue(value, opts)

Parameters

Name Type Description
value
boolean | number | string

The new capability value

opts
object