kotlin-homie / org.homieiot

Package org.homieiot

Types

Device

class Device

A device represents a physical piece of hardware. For example, an Arduino/ESP8266 or a coffee machine.

Node

class Node

Nodes are independent or logically separable parts of a device. For example, a car might expose a wheels node, an engine node and a lights node.

Property

interface Property<T>

A Homie Property

PropertyType

enum class PropertyType

Defines the different types of properties depending on the feature of the node being modeled.

PropertyUpdate

data class PropertyUpdate<T>

A property update delivered from MQTT

Functions

device

fun device(id: String, name: String = id, init: Device.() -> Unit): Device

Create a new device instance