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

Node

homie.constants.PUBLISH_DELAY

This defines the delay for the main publish coro. Set to 20.

(Sub-) Tobics

homie.constants.T_BC
homie.constants.T_MPY
homie.constants.T_SET