homie.constants — Homie Constants

Node property

Datatype

Constants used for datatypes in NodeProperty.

homie.constants.STRING
homie.constants.ENUM
homie.constants.BOOLEAN
homie.constants.INTEGER
homie.constants.FLOAT
homie.constants.COLOR

Format

homie.constants.RGB
homie.constants.HSV

General

Contstants used for payload.

homie.constants.ON
homie.constants.OFF
homie.constants.TRUE
homie.constants.FALSE
homie.constants.LOCKED
homie.constants.UNLOCKED
homie.constants.UTF8
homie.constants.SET
homie.constants.SLASH
homie.constants.UNDERSCORE

Device

homie.constants.QOS

Homie convention specifies QOS to 1.

homie.constants.MAIN_DELAY

This is the delay for the main coro.

homie.constants.STATS_DELAY

This is the delay for the stats coro set to 60000.

homie.constants.WDT_DELAY

Feed the WDT every ``100``ms.

homie.constants.DEVICE_STATE

Name for the subtobic for device state.

Device states

homie.constants.STATE_OTA
homie.constants.STATE_INIT
homie.constants.STATE_READY
homie.constants.STATE_RECOVER
homie.constants.STATE_WEBREPL

(Sub-) Tobics

homie.constants.DEVICE_STATE

Device state topic $state

homie.constants.T_BC

Homie broadcast topic $broadcast

homie.constants.T_MPY

Microhomie extension topic $mpy

homie.constants.T_SET

/set topic

Extensions

homie.constants.EXT_MPY

org.microhomie.mpy:0.1.0:[4.x]

homie.constants.EXT_FW

org.homie.legacy-firmware:0.1.1:[4.x]

homie.constants.EXT_STATS

org.homie.legacy-stats:0.1.1:[4.x]