Add build flags

Adds to #2024
This commit is contained in:
Edward Firmo
2024-04-07 19:17:19 +02:00
parent fba844f261
commit 674c3d909d
2 changed files with 10 additions and 11 deletions

View File

@@ -8,11 +8,11 @@
##### PLEASE only make changes if it is necessary and also the required knowledge is available. #####
##### For normal use with the Blueprint, no changes are necessary. #####
#####################################################################################################
---
substitutions:
device_name: nspanel
wifi_ssid: nspanel
wifi_password: NSPanel_Blueprint
pre_built: "true"
##### External components #####
external_components:
@@ -25,11 +25,6 @@ packages:
core_package: !include ../esphome/nspanel_esphome_core.yaml
upload_tft_package: !include ../esphome/nspanel_esphome_addon_upload_tft.yaml
esphome:
platformio_options:
build_flags:
- -D NSPANEL_HA_BLUEPRINT_PREBUILT
api:
services:
- service: firmware_update
@@ -64,7 +59,7 @@ button:
captive_portal:
dashboard_import:
package_import_url: github://Blackymas/NSPanel_HA_Blueprint/prebuilt/nspanel_esphome_prebuilt.yaml@main # Must be updated
package_import_url: github://Blackymas/NSPanel_HA_Blueprint/prebuilt/nspanel_esphome_prebuilt.yaml@main
import_full_config: false
esp32_improv:
@@ -81,6 +76,9 @@ esphome:
- text.set:
id: fw_url
value: "https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/main/prebuilt/nspanel_esphome_prebuilt.bin"
platformio_options:
build_flags:
- -D NSPANEL_HA_BLUEPRINT_PREBUILT
improv_serial:
@@ -107,15 +105,15 @@ select:
- "NSPanel US Landscape (CJK languages)"
text:
- platform: template
- id: fw_url
name: Firmware URL
id: fw_url
platform: template
icon: mdi:cloud-download
mode: text
optimistic: true
# internal: true
wifi:
networks: !remove
ap: {}
power_save_mode: LIGHT # To make it compatible with BLE
...