[][src]Crate homie_controller

homie-controller is a library for creating controllers to interact via an MQTT broker with IoT devices implementing the Homie convention.

Structs

ColorHSV

A colour in hue-saturation-value format.

ColorRGB

A colour in red-green-blue format.

Device

A Homie device which has been discovered.

EnumValue

The value of a Homie enum property.

Extension

A Homie extension supported by a device.

HomieController

A Homie controller, which connects to an MQTT broker and interacts with Homie devices.

HomieEventLoop
Node

A node of a Homie device.

ParseColorError

An error while attempting to parse a Color from a string.

ParseEnumError

An error while attempting to parse an EnumValue from a string, because the string is empty.

Property

A property of a Homie node.

Enums

ColorFormat

The format of a colour property, either RGB or HSV.

Datatype

The data type of a Homie property.

Event

An event from a Homie device, either because of a property change or because something new has been discovered.

PollError

An error encountered while polling a HomieController.

State

The state of a Homie device according to the Homie device lifecycle.

ValueError

An error encountered while parsing the value or format of a property.

Traits

Value

The value of a Homie property. This has implementations corresponding to the possible property datatypes.