2019-04-17 12:06:00 +02:00
|
|
|
#pragma once
|
|
|
|
|
2021-08-23 09:21:30 +02:00
|
|
|
// This file is not used by the runtime, instead, a version is generated during
|
|
|
|
// compilation with only the relevant feature flags for the current build.
|
|
|
|
//
|
|
|
|
// This file is only used by static analyzers and IDEs.
|
|
|
|
|
|
|
|
// Informative flags
|
|
|
|
#define ESPHOME_BOARD "dummy_board"
|
|
|
|
#define ESPHOME_PROJECT_NAME "dummy project"
|
|
|
|
#define ESPHOME_PROJECT_VERSION "v2"
|
|
|
|
|
|
|
|
// Feature flags
|
2019-04-17 12:06:00 +02:00
|
|
|
#define USE_API
|
2021-09-21 06:52:01 +02:00
|
|
|
#define USE_API_NOISE
|
|
|
|
#define USE_API_PLAINTEXT
|
2019-04-17 12:06:00 +02:00
|
|
|
#define USE_BINARY_SENSOR
|
2021-08-23 09:21:30 +02:00
|
|
|
#define USE_CLIMATE
|
2019-04-17 12:06:00 +02:00
|
|
|
#define USE_COVER
|
2021-08-23 09:21:30 +02:00
|
|
|
#define USE_DEEP_SLEEP
|
|
|
|
#define USE_ESP8266_PREFERENCES_FLASH
|
|
|
|
#define USE_FAN
|
2021-09-20 09:29:47 +02:00
|
|
|
#define USE_GRAPH
|
2021-08-23 09:21:30 +02:00
|
|
|
#define USE_HOMEASSISTANT_TIME
|
2019-04-17 12:06:00 +02:00
|
|
|
#define USE_LIGHT
|
2021-08-23 09:21:30 +02:00
|
|
|
#define USE_LOGGER
|
|
|
|
#define USE_MDNS
|
|
|
|
#define USE_NUMBER
|
2021-10-15 22:06:32 +02:00
|
|
|
#define USE_OTA_PASSWORD
|
2021-08-23 09:21:30 +02:00
|
|
|
#define USE_OTA_STATE_CALLBACK
|
2019-04-17 12:06:00 +02:00
|
|
|
#define USE_POWER_SUPPLY
|
2021-08-23 09:21:30 +02:00
|
|
|
#define USE_PROMETHEUS
|
|
|
|
#define USE_SELECT
|
|
|
|
#define USE_SENSOR
|
|
|
|
#define USE_STATUS_LED
|
|
|
|
#define USE_SWITCH
|
|
|
|
#define USE_TEXT_SENSOR
|
|
|
|
#define USE_TIME
|
|
|
|
#define USE_WIFI
|
2021-09-21 06:52:01 +02:00
|
|
|
|
|
|
|
// Arduino-specific feature flags
|
2021-09-20 11:47:51 +02:00
|
|
|
#ifdef USE_ARDUINO
|
2021-09-21 06:52:01 +02:00
|
|
|
#define USE_CAPTIVE_PORTAL
|
|
|
|
#define USE_JSON
|
|
|
|
#define USE_NEXTION_TFT_UPLOAD
|
|
|
|
#define USE_MQTT
|
2021-08-23 09:21:30 +02:00
|
|
|
#define USE_WIFI_WPA2_EAP
|
2021-09-20 11:47:51 +02:00
|
|
|
#endif
|
2021-08-23 09:21:30 +02:00
|
|
|
|
2021-09-21 06:52:01 +02:00
|
|
|
// ESP32-specific feature flags
|
2021-09-20 11:47:51 +02:00
|
|
|
#ifdef USE_ESP32
|
2021-06-11 22:31:15 +02:00
|
|
|
#define USE_ESP32_BLE_SERVER
|
2021-08-23 09:21:30 +02:00
|
|
|
#define USE_ESP32_CAMERA
|
2021-09-30 18:08:15 +02:00
|
|
|
#define USE_ESP32_IGNORE_EFUSE_MAC_CRC
|
2021-09-21 06:52:01 +02:00
|
|
|
#define USE_IMPROV
|
|
|
|
#define USE_SOCKET_IMPL_BSD_SOCKETS
|
2021-09-20 11:47:51 +02:00
|
|
|
|
|
|
|
#ifdef USE_ARDUINO
|
2021-08-23 09:21:30 +02:00
|
|
|
#define USE_ETHERNET
|
2021-09-21 06:52:01 +02:00
|
|
|
#endif
|
|
|
|
#endif
|
2021-08-23 09:21:30 +02:00
|
|
|
|
2021-09-21 06:52:01 +02:00
|
|
|
// ESP8266-specific feature flags
|
2021-09-20 11:47:51 +02:00
|
|
|
#ifdef USE_ESP8266
|
2021-09-13 18:11:27 +02:00
|
|
|
#define USE_ADC_SENSOR_VCC
|
2021-09-20 11:47:51 +02:00
|
|
|
#define USE_HTTP_REQUEST_ESP8266_HTTPS
|
2021-09-21 06:52:01 +02:00
|
|
|
#define USE_SOCKET_IMPL_LWIP_TCP
|
2021-09-08 05:41:42 +02:00
|
|
|
#endif
|
|
|
|
|
2021-08-23 09:21:30 +02:00
|
|
|
// Disabled feature flags
|
|
|
|
//#define USE_BSEC // Requires a library with proprietary license.
|
2021-09-27 19:10:53 +02:00
|
|
|
|
|
|
|
#define USE_DASHBOARD_IMPORT
|