Device

inner class Device : ADevice

The model for the kind of device managed by this plugin.

Properties

Link copied to clipboard

The MAC address of the Bluetooth device.

Link copied to clipboard

The battery level, in percent.

Link copied to clipboard

Is breakage detected? (anti-tamper)

Link copied to clipboard

Is water leakage detected?

Link copied to clipboard

Is light detected?

Link copied to clipboard

Is motion detected? (PIR or Vibration)

Link copied to clipboard

The humidity, in %RH.

Link copied to clipboard

Illuminance, in lux.

Link copied to clipboard
val name: String?

Optionally, a name advertised by the Bluetooth device.

Link copied to clipboard
var rssi: Int

The Receive Signal Strength Indicator value.

Link copied to clipboard

The temperature, in °C.

Link copied to clipboard
var x: Float?

The X-axis accelerometer value, in g.

Link copied to clipboard
var y: Float?

The Y-axis accelerometer value, in g.

Link copied to clipboard
var z: Float?

The Z-axis accelerometer value, in g.

Functions

Link copied to clipboard
open override fun toString(): String

Returns a string representation of a Device.