Struct razberry::Device [] [src]

pub struct Device {
    pub id: String,
    pub name: String,
    pub last_contacted: DateTime<UTC>,
    pub command_classes: HashMap<CommandClasses, CommandClass>,
}

A Z-Wave Device.

Fields

The string (integer?) ID of the device in Z Way.

The user-defined name of the device; reported as "givenName".

The last time the device was contacted by the Z Way controller. This is the value of "data.lastReceived.updateTime"

Command classes associated with the device.

Methods

impl Device
[src]

Construct a device from a JSON subset taken from the full device payload endpoint, '/ZWaveAPI/Data/'. (This is not the delta update endpoint!)

Update the device from a JSON delta payload taken from the endpoint, '/ZWaveAPI/Data/{timestamp}'.

Trait Implementations

impl Display for Device
[src]

Formats the value using the given formatter. Read more