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-11 08:55:45 +13: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
|
2023-06-15 02:34:39 +02:00
|
|
|
#define USE_ALARM_CONTROL_PANEL
|
2019-04-17 12:06:00 +02:00
|
|
|
#define USE_BINARY_SENSOR
|
2021-11-30 08:00:51 +13: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 19:29:47 +12:00
|
|
|
#define USE_GRAPH
|
2021-08-23 09:21:30 +02:00
|
|
|
#define USE_HOMEASSISTANT_TIME
|
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 13:24:31 -05:00
|
|
|
#define USE_LOCK
|
2021-08-23 09:21:30 +02:00
|
|
|
#define USE_LOGGER
|
|
|
|
#define USE_MDNS
|
2022-06-02 17:00:17 +12:00
|
|
|
#define USE_MEDIA_PLAYER
|
2022-04-04 01:07:20 +02:00
|
|
|
#define USE_MQTT
|
2021-08-23 09:21:30 +02:00
|
|
|
#define USE_NUMBER
|
2022-09-14 16:49:20 +12: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
|
2023-10-13 12:46:46 +13: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 03:00:32 -06:00
|
|
|
#define USE_TEXT
|
2021-08-23 09:21:30 +02:00
|
|
|
#define USE_TEXT_SENSOR
|
|
|
|
#define USE_TIME
|
2022-03-31 23:46:39 -04: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_NEXTION_TFT_UPLOAD
|
2021-11-11 22:56:54 +13: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
|
2022-02-18 10:27:20 +13:00
|
|
|
#define USE_ESP32_BLE_CLIENT
|
2021-06-12 08:31:15 +12: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
|
|
|
|
#define USE_SOCKET_IMPL_BSD_SOCKETS
|
2022-08-17 12:10:43 +03:00
|
|
|
#define USE_WIFI_11KV_SUPPORT
|
2022-08-25 07:13:44 +12:00
|
|
|
#define USE_BLUETOOTH_PROXY
|
2023-04-12 11:45:10 +12:00
|
|
|
#define USE_VOICE_ASSISTANT
|
2023-05-08 10:36:17 +12:00
|
|
|
#define USE_MICROPHONE
|
|
|
|
#define USE_SPEAKER
|
2021-09-20 11:47:51 +02:00
|
|
|
|
|
|
|
#ifdef USE_ARDUINO
|
2022-11-21 11:49:30 +13: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-23 09:54:55 +13:00
|
|
|
#define USE_ESP_IDF_VERSION_CODE VERSION_CODE(4, 4, 2)
|
2022-01-24 10:34:34 +01:00
|
|
|
#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 22:56:54 +13: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-09-05 00:16:08 +02:00
|
|
|
#ifdef USE_LIBRETINY
|
|
|
|
#define USE_SOCKET_IMPL_LWIP_SOCKETS
|
|
|
|
#endif
|
|
|
|
|
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-21 11:49:30 +13:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2023-08-08 10:22:10 +12:00
|
|
|
#ifdef USE_RP2040
|
|
|
|
#define USE_ARDUINO_VERSION_CODE VERSION_CODE(3, 3, 0)
|
|
|
|
#define USE_SOCKET_IMPL_LWIP_TCP
|
|
|
|
#endif
|
|
|
|
|
2023-05-10 11:38:18 +12:00
|
|
|
#ifdef USE_HOST
|
|
|
|
#define USE_SOCKET_IMPL_BSD_SOCKETS
|
|
|
|
#endif
|
|
|
|
|
2022-11-21 11:49:30 +13:00
|
|
|
// Disabled feature flags
|
2023-10-13 12:46:46 +13:00
|
|
|
// #define USE_BSEC // Requires a library with proprietary license.
|
2022-11-21 11:49:30 +13:00
|
|
|
|
|
|
|
#define USE_DASHBOARD_IMPORT
|