From f175f4aeead41bc6eb6ff73ee574f78a440187dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Tue, 29 Aug 2017 10:09:40 +0200 Subject: [PATCH] Add dependencies for HA support --- code/espurna/config/arduino.h | 1 + code/espurna/homeassitant.ino | 2 ++ 2 files changed, 3 insertions(+) diff --git a/code/espurna/config/arduino.h b/code/espurna/config/arduino.h index 8c7d1bb2..a03dc4e1 100644 --- a/code/espurna/config/arduino.h +++ b/code/espurna/config/arduino.h @@ -52,6 +52,7 @@ //#define DOMOTICZ_SUPPORT 0 //#define DS18B20_SUPPORT 1 //#define EMON_SUPPORT 1 +//#define HOMEASSISTANT_SUPPORT 0 //#define I2C_SUPPORT 1 //#define INFLUXDB_SUPPORT 0 //#define MDNS_SUPPORT 0 diff --git a/code/espurna/homeassitant.ino b/code/espurna/homeassitant.ino index ffca411e..49ecd6aa 100644 --- a/code/espurna/homeassitant.ino +++ b/code/espurna/homeassitant.ino @@ -8,6 +8,8 @@ Copyright (C) 2017 by Xose PĂ©rez #if HOMEASSISTANT_SUPPORT +#include + void haSend() { DEBUG_MSG_P(PSTR("[HA] Sending autodiscovery MQTT message\n"));