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"
|
2024-04-15 02:02:19 +02:00
|
|
|
#define ESPHOME_PROJECT_VERSION_30 "v2"
|
2021-11-10 20:55:45 +01:00
|
|
|
#define ESPHOME_VARIANT "ESP32"
|
2021-08-23 09:21:30 +02:00
|
|
|
|
|
|
|
// Feature flags
|
2024-05-06 00:12:09 +02:00
|
|
|
#define USE_ALARM_CONTROL_PANEL
|
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
|
2024-05-06 00:12:09 +02:00
|
|
|
#define USE_DATETIME
|
|
|
|
#define USE_DATETIME_DATE
|
|
|
|
#define USE_DATETIME_DATETIME
|
|
|
|
#define USE_DATETIME_TIME
|
2021-08-23 09:21:30 +02:00
|
|
|
#define USE_DEEP_SLEEP
|
2024-04-24 04:35:26 +02:00
|
|
|
#define USE_EVENT
|
2021-08-23 09:21:30 +02:00
|
|
|
#define USE_FAN
|
2021-09-20 09:29:47 +02:00
|
|
|
#define USE_GRAPH
|
2024-05-06 00:12:09 +02:00
|
|
|
#define USE_GRAPHICAL_DISPLAY_MENU
|
2021-08-23 09:21:30 +02:00
|
|
|
#define USE_HOMEASSISTANT_TIME
|
2024-06-06 04:35:28 +02:00
|
|
|
#define USE_HTTP_REQUEST_OTA_WATCHDOG_TIMEOUT 8000 // NOLINT
|
2023-02-13 03:43:52 +01:00
|
|
|
#define USE_JSON
|
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
|
2022-06-02 07:00:17 +02:00
|
|
|
#define USE_MEDIA_PLAYER
|
2022-04-04 01:07:20 +02:00
|
|
|
#define USE_MQTT
|
2024-05-02 00:05:37 +02:00
|
|
|
#define USE_NEXTION_TFT_UPLOAD
|
2021-08-23 09:21:30 +02:00
|
|
|
#define USE_NUMBER
|
2022-09-14 06:49:20 +02:00
|
|
|
#define USE_OTA
|
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
|
2024-01-19 05:18:06 +01:00
|
|
|
#define USE_OTA_VERSION 1
|
2023-10-13 01:46:46 +02:00
|
|
|
#define USE_OUTPUT
|
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
|
2023-10-25 11:00:32 +02:00
|
|
|
#define USE_TEXT
|
2021-08-23 09:21:30 +02:00
|
|
|
#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
|
2024-04-23 06:47:03 +02:00
|
|
|
#define USE_VALVE
|
2021-08-23 09:21:30 +02:00
|
|
|
#define USE_WIFI
|
2023-11-20 04:32:46 +01:00
|
|
|
#define USE_WIFI_AP
|
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
|
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
|
|
|
|
2022-04-04 01:07:20 +02:00
|
|
|
// IDF-specific feature flags
|
|
|
|
#ifdef USE_ESP_IDF
|
|
|
|
#define USE_MQTT_IDF_ENQUEUE
|
|
|
|
#endif
|
|
|
|
|
2021-09-21 06:52:01 +02:00
|
|
|
// ESP32-specific feature flags
|
2021-09-20 11:47:51 +02:00
|
|
|
#ifdef USE_ESP32
|
2024-05-06 00:12:09 +02:00
|
|
|
#define USE_BLUETOOTH_PROXY
|
|
|
|
#define USE_ESP32_BLE
|
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-21 06:52:01 +02:00
|
|
|
#define USE_IMPROV
|
2023-05-08 00:36:17 +02:00
|
|
|
#define USE_MICROPHONE
|
2024-05-06 00:12:09 +02:00
|
|
|
#define USE_PSRAM
|
|
|
|
#define USE_SOCKET_IMPL_BSD_SOCKETS
|
2023-05-08 00:36:17 +02:00
|
|
|
#define USE_SPEAKER
|
2023-10-27 05:16:44 +02:00
|
|
|
#define USE_SPI
|
2024-05-06 00:12:09 +02:00
|
|
|
#define USE_VOICE_ASSISTANT
|
|
|
|
#define USE_WIFI_11KV_SUPPORT
|
2021-09-20 11:47:51 +02:00
|
|
|
|
|
|
|
#ifdef USE_ARDUINO
|
2022-11-20 23:49:30 +01:00
|
|
|
#define USE_ARDUINO_VERSION_CODE VERSION_CODE(2, 0, 5)
|
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
|
2022-11-22 21:54:55 +01:00
|
|
|
#define USE_ESP_IDF_VERSION_CODE VERSION_CODE(4, 4, 2)
|
2022-01-24 10:34:34 +01:00
|
|
|
#endif
|
2024-06-07 06:30:49 +02:00
|
|
|
|
|
|
|
#if defined(USE_ESP32_VARIANT_ESP32S2)
|
|
|
|
#define USE_LOGGER_USB_CDC
|
|
|
|
#elif defined(USE_ESP32_VARIANT_ESP32S3) || defined(USE_ESP32_VARIANT_ESP32C3) || \
|
|
|
|
defined(USE_ESP32_VARIANT_ESP32C6) || defined(USE_ESP32_VARIANT_ESP32H2)
|
|
|
|
#define USE_LOGGER_USB_CDC
|
|
|
|
#define USE_LOGGER_USB_SERIAL_JTAG
|
|
|
|
#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
|
2024-03-20 09:16:10 +01:00
|
|
|
#define USE_ARDUINO_VERSION_CODE VERSION_CODE(3, 1, 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
|
2022-04-14 03:13:51 +02:00
|
|
|
|
2023-10-27 05:16:44 +02:00
|
|
|
#define USE_SPI
|
2023-09-05 00:16:08 +02:00
|
|
|
|
2022-04-14 03:13:51 +02:00
|
|
|
// Dummy firmware payload for shelly_dimmer
|
|
|
|
#define USE_SHD_FIRMWARE_MAJOR_VERSION 56
|
|
|
|
#define USE_SHD_FIRMWARE_MINOR_VERSION 5
|
|
|
|
#define USE_SHD_FIRMWARE_DATA \
|
|
|
|
{}
|
2022-11-20 23:49:30 +01:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2023-08-08 00:22:10 +02:00
|
|
|
#ifdef USE_RP2040
|
|
|
|
#define USE_ARDUINO_VERSION_CODE VERSION_CODE(3, 3, 0)
|
2024-06-07 06:30:49 +02:00
|
|
|
#define USE_LOGGER_USB_CDC
|
2023-08-08 00:22:10 +02:00
|
|
|
#define USE_SOCKET_IMPL_LWIP_TCP
|
2023-10-27 05:16:44 +02:00
|
|
|
#define USE_SPI
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef USE_LIBRETINY
|
|
|
|
#define USE_SOCKET_IMPL_LWIP_SOCKETS
|
2023-08-08 00:22:10 +02:00
|
|
|
#endif
|
|
|
|
|
2023-05-10 01:38:18 +02:00
|
|
|
#ifdef USE_HOST
|
|
|
|
#define USE_SOCKET_IMPL_BSD_SOCKETS
|
|
|
|
#endif
|
|
|
|
|
2022-11-20 23:49:30 +01:00
|
|
|
// Disabled feature flags
|
2023-10-13 01:46:46 +02:00
|
|
|
// #define USE_BSEC // Requires a library with proprietary license.
|
2022-11-20 23:49:30 +01:00
|
|
|
|
|
|
|
#define USE_DASHBOARD_IMPORT
|