From 8ad3c8708e74b9a47dc032a65e879a9ead4c7320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Sat, 14 Jan 2017 00:16:24 +0100 Subject: [PATCH] Document fauxmo and domoticz default settings --- code/espurna/config/arduino.h | 17 +++++++++-------- code/espurna/config/general.h | 9 ++++++++- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/code/espurna/config/arduino.h b/code/espurna/config/arduino.h index daec359e..d8bb52d2 100644 --- a/code/espurna/config/arduino.h +++ b/code/espurna/config/arduino.h @@ -28,13 +28,14 @@ //#define ESPURNA //-------------------------------------------------------------------------------- -// Features +// Features (values below are default values) //-------------------------------------------------------------------------------- -//#define ENABLE_DHT 1 -//#define ENABLE_DS18B20 1 -//#define ENABLE_EMON 1 -//#define ENABLE_HLW8018 1 -//#define ENABLE_RF 1 -//#define ENABLE_FAUXMO 0 -//#define ENABLE_NOFUSS 1 +//#define ENABLE_DHT 0 +//#define ENABLE_DS18B20 0 +//#define ENABLE_EMON 0 +//#define ENABLE_HLW8018 0 +//#define ENABLE_RF 0 +//#define ENABLE_FAUXMO 1 +//#define ENABLE_NOFUSS 0 +//#define ENABLE_DOMOTICZ 1 diff --git a/code/espurna/config/general.h b/code/espurna/config/general.h index 399f8867..1119dc9f 100644 --- a/code/espurna/config/general.h +++ b/code/espurna/config/general.h @@ -89,7 +89,9 @@ // DOMOTICZ // ----------------------------------------------------------------------------- -#define ENABLE_DOMOTICZ 1 +#ifndef ENABLE_DOMOTICZ + #define ENABLE_DOMOTICZ 1 +#endif #define DOMOTICZ_IN_TOPIC "domoticz/in" #define DOMOTICZ_OUT_TOPIC "domoticz/out" @@ -106,7 +108,12 @@ // FAUXO // ----------------------------------------------------------------------------- +// This setting defines whether Alexa support should be built into the firmware #ifndef ENABLE_FAUXMO #define ENABLE_FAUXMO 1 #endif + +// This is default value for the fauxmoEnabled setting that defines whether +// this device should be discoberable and respond to Alexa commands. +// Both ENABLE_FAUXMO and fauxmoEnabled should be 1 for Alexa support to work. #define FAUXMO_ENABLED 1