From 9e32218cdb6c5a99b2752535dba76a5b443a571f Mon Sep 17 00:00:00 2001 From: KaufHA Date: Wed, 19 Jun 2024 14:16:47 -0700 Subject: use non-local js for web server --- config/kauf-plug-lite.yaml | 9 +++++++-- config/kauf-plug-minimal.yaml | 6 +++++- config/kauf-plug-update.yaml | 5 +++++ kauf-plug.yaml | 4 ++-- 4 files changed, 19 insertions(+), 5 deletions(-) diff --git a/config/kauf-plug-lite.yaml b/config/kauf-plug-lite.yaml index 5033ea5..01133df 100644 --- a/config/kauf-plug-lite.yaml +++ b/config/kauf-plug-lite.yaml @@ -15,7 +15,7 @@ substitutions: # https://esphome.io/components/esphome.html#esphome-creators-project project_name: Kauf.PLF10 - project_ver_num: "2.064" + project_ver_num: "2.068" project_ver_let: l # https://esphome.io/components/switch/gpio.html?highlight=restore_mode @@ -130,6 +130,8 @@ esphome: - script.execute: script_set_power_leds - script.execute: on_wifi_connect + min_version: 2024.6.0 + # https://esphome.io/components/wifi.html wifi: @@ -161,13 +163,16 @@ api: # https://esphome.io/components/ota.html ota: + platform: esphome on_error: - button.press: restart_button +safe_mode: + + # https://esphome.io/components/web_server.html web_server: - local: true # https://esphome.io/components/binary_sensor/index.html diff --git a/config/kauf-plug-minimal.yaml b/config/kauf-plug-minimal.yaml index bd0f24e..79e821b 100644 --- a/config/kauf-plug-minimal.yaml +++ b/config/kauf-plug-minimal.yaml @@ -49,7 +49,9 @@ esphome: # https://esphome.io/components/esphome.html#esphome-creators-project project: name: "Kauf.PLF10" - version: "2.064(m)" + version: "2.068(m)" + + min_version: 2024.6.0 # https://esphome.io/components/esp8266.html @@ -77,6 +79,8 @@ web_server: # https://esphome.io/components/web_server.html logger: # https://esphome.io/components/logger.html api: # https://esphome.io/components/api.html ota: # https://esphome.io/components/ota.html + platform: esphome +safe_mode: # https://esphome.io/components/status_led.html diff --git a/config/kauf-plug-update.yaml b/config/kauf-plug-update.yaml index 5fa4940..f44fea9 100644 --- a/config/kauf-plug-update.yaml +++ b/config/kauf-plug-update.yaml @@ -21,3 +21,8 @@ esphome: # Allows saving wifi credentials across update. wifi: forced_hash: 1432266978 + + +# embed the web server's js file for binary update files +web_server: + local: true diff --git a/kauf-plug.yaml b/kauf-plug.yaml index f573790..5d44191 100644 --- a/kauf-plug.yaml +++ b/kauf-plug.yaml @@ -15,7 +15,7 @@ substitutions: # https://esphome.io/components/esphome.html#esphome-creators-project project_name: Kauf.PLF10 - project_ver_num: "2.067" + project_ver_num: "2.068" project_ver_let: y # https://esphome.io/components/switch/gpio.html?highlight=restore_mode @@ -195,8 +195,8 @@ safe_mode: # https://esphome.io/components/web_server.html web_server: - local: true disable: $disable_webserver + js_url: https://kaufha.com/v2/www.js # https://esphome.io/components/binary_sensor/index.html -- cgit v1.2.3