From f6cdb0c769d357be49b8c2d954f850962564200f Mon Sep 17 00:00:00 2001 From: aidbish <38182386+aidbish@users.noreply.github.com> Date: Fri, 19 Apr 2019 00:28:05 +1000 Subject: [PATCH] hostnames with spaces can stop HA discovery Found that if the hostname contains spaces this can stop HA MQTT discovery --- Arduino/McLighting/definitions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Arduino/McLighting/definitions.h b/Arduino/McLighting/definitions.h index 835cbeea..b720c364 100644 --- a/Arduino/McLighting/definitions.h +++ b/Arduino/McLighting/definitions.h @@ -9,7 +9,7 @@ #define BUILTIN_LED 2 // ESP-12F has the built in LED on GPIO2, see https://github.com/esp8266/Arduino/issues/2192 #define BUTTON 4 // Input pin (4 / D2) for switching the LED strip on / off, connect this PIN to ground to trigger button. -#define HOSTNAME "McLighting01" // Friedly hostname +#define HOSTNAME "McLighting01" // Friedly hostname. Hostname should not contain spaces as this will break Home Assistant discovery if used #define HTTP_OTA // If defined, enable ESP8266HTTPUpdateServer OTA code. //#define ENABLE_OTA // If defined, enable Arduino OTA code.