homie.utils — Homie Utils

This module provides helper functions.

homie.utils.enable_ap()

Start the Wifi Access Point with the default configuration.

SSID = Microhomie-<MAC> Secret = microhomiE

homie.utils.disable_ap()

Function to disable the device Wifi Access Point. For the ESP8266 Microhomie firmwares this function will be excecuted on boot.

homie.utils.get_unique_id()

Return a unique device id as string.

homie.utils.get_local_ip()

Return the device IP address, if possible.

homie.utils.get_local_mac()

Return the device MAC address, if possible.

homie.utils.payload_is_valid()

Helper function to validate payload for node properties.

This function does only test if the payload match the datatype and not the format the payload has to be in, for now.

Returns True or False.