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.
|
|
|
|
|
2022-01-24 10:34:34 +01:00
|
|
|
#include "esphome/core/macros.h"
|
|
|
|
|
2021-08-23 09:21:30 +02:00
|
|
|
// Informative flags
|
|
|
|
#define ESPHOME_BOARD "dummy_board"
|
|
|
|
#define ESPHOME_PROJECT_NAME "dummy project"
|
|
|
|
#define ESPHOME_PROJECT_VERSION "v2"
|
2021-11-10 20:55:45 +01:00
|
|
|
#define ESPHOME_VARIANT "ESP32"
|
2021-08-23 09:21:30 +02:00
|
|
|
|
|
|
|
// 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-11-29 20:00:51 +01:00
|
|
|
#define USE_BUTTON
|
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_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
|
2022-02-03 19:24:31 +01:00
|
|
|
#define USE_LOCK
|
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
|
2022-01-26 10:20:45 +01:00
|
|
|
#define USE_QR_CODE
|
2021-08-23 09:21:30 +02:00
|
|
|
#define USE_SELECT
|
|
|
|
#define USE_SENSOR
|
|
|
|
#define USE_STATUS_LED
|
|
|
|
#define USE_SWITCH
|
|
|
|
#define USE_TEXT_SENSOR
|
|
|
|
#define USE_TIME
|
2022-04-01 05:46:39 +02:00
|
|
|
#define USE_TOUCHSCREEN
|
2021-11-10 23:34:17 +01:00
|
|
|
#define USE_UART_DEBUGGER
|
2021-08-23 09:21:30 +02:00
|
|
|
#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-11-11 10:56:54 +01:00
|
|
|
#define USE_PROMETHEUS
|
|
|
|
#define USE_WEBSERVER
|
2022-01-24 00:34:38 +01:00
|
|
|
#define USE_WEBSERVER_PORT 80 // NOLINT
|
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
|
2022-02-17 22:27:20 +01:00
|
|
|
#define USE_ESP32_BLE_CLIENT
|
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
|
2022-01-24 10:34:34 +01:00
|
|
|
#define USE_ARDUINO_VERSION_CODE VERSION_CODE(1, 0, 6)
|
2021-08-23 09:21:30 +02:00
|
|
|
#define USE_ETHERNET
|
2021-09-21 06:52:01 +02:00
|
|
|
#endif
|
2022-01-24 10:34:34 +01:00
|
|
|
|
|
|
|
#ifdef USE_ESP_IDF
|
|
|
|
#define USE_ARDUINO_VERSION_CODE VERSION_CODE(4, 3, 0)
|
|
|
|
#endif
|
2021-09-21 06:52:01 +02:00
|
|
|
#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
|
2022-01-24 10:34:34 +01:00
|
|
|
#define USE_ARDUINO_VERSION_CODE VERSION_CODE(3, 0, 2)
|
2021-11-11 10:56:54 +01:00
|
|
|
#define USE_ESP8266_PREFERENCES_FLASH
|
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
|