Wrap-up release notes

This commit is contained in:
Edward Firmo
2024-01-10 21:00:35 +01:00
parent cc976ec820
commit dc4312c302
9 changed files with 57 additions and 21 deletions

View File

@@ -11,16 +11,35 @@ substitutions:
wifi_password: NSPanel_Blueprint
pre_built: "true"
##### External components #####
external_components:
- source: github://pr#5586 # Remove this and update min ver when that PR is released
components:
- ota_http
refresh: 300s
packages:
core_package: !include ./nspanel_esphome_core.yaml # Core package
upload_tft_package: !include ./nspanel_esphome_addon_upload_tft.yaml # Core package
button:
- platform: factory_reset
name: Factory reset
- name: Factory reset
platform: factory_reset
disabled_by_default: true
internal: false
- id: bt_firmware_update
name: Firmware update
platform: template
on_press:
then:
- ota_http.flash:
url: !lambda return id(firmware_url).state;
verify_ssl: false
- lambda: |-
static const char *const TAG = "prebuilt.button.bt_firmware_update";
ESP_LOGE(TAG, "Firmware update failed!");
# In combination with the `ap` this allows the user
# to provision wifi credentials to the device.
captive_portal:
@@ -43,6 +62,10 @@ esphome:
project:
name: esphome.NSPanel_HA_Blueprint
version: "${version}"
on_boot:
- text_sensor.template.publish:
id: firmware_url
state: https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/main/nspanel_esphome_prebuilt.bin
# Sets up the improv via serial client for Wi-Fi provisioning
improv_serial:
@@ -54,6 +77,8 @@ ota:
id: my_ota
password: ""
ota_http:
script:
- id: !extend watchdog
then:
@@ -74,9 +99,15 @@ select:
- "NSPanel US Landscape (CJK languages)"
initial_option: "NSPanel Blank"
text_sensor:
- id: firmware_url
name: Firmware update - URL
platform: template
update_interval: 60s
internal: true
web_server:
id: web_server_std
#ota: true # Not available for ESP-IDF
wifi:
ap: {}