From a712f72884232550f9261baf6c485d40b3c7aae3 Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Mon, 13 Mar 2023 21:35:08 +0100 Subject: [PATCH 1/3] Add web interface --- esp32-ble-example.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/esp32-ble-example.yaml b/esp32-ble-example.yaml index dce97ce3..241bb7d4 100644 --- a/esp32-ble-example.yaml +++ b/esp32-ble-example.yaml @@ -1,6 +1,6 @@ substitutions: name: jk-bms - device_description: "Monitor and control a JK-BMS via bluetooth" + device_description: "Monitor and control a JK-BMS via bluetooth incl. web interface" external_components_source: github://syssi/esphome-jk-bms@main mac_address: C8:47:8C:E1:E2:E1 # Defaults to "JK02". Please use "JK04" if you have some old JK-BMS version (f.e. JK-B2A16S hw 3.0, sw. 3.3.0) @@ -22,6 +22,18 @@ esp32: external_components: - source: ${external_components_source} refresh: 0s + - source: github://spali/esphome@pr3500 + components: + - web_server + - web_server_idf + - web_server_base + - captive_portal + refresh: 0s + +web_server: + local: true + +captive_portal: wifi: ssid: !secret wifi_ssid @@ -32,6 +44,7 @@ logger: # If you don't use Home Assistant please remove this `api` section and uncomment the `mqtt` component! api: + reboot_timeout: 0s # mqtt: # broker: !secret mqtt_host From 0e47dd2945528864e20745c966ea273057d70c36 Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Mon, 13 Mar 2023 21:39:49 +0100 Subject: [PATCH 2/3] Disable local option --- esp32-ble-example.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp32-ble-example.yaml b/esp32-ble-example.yaml index 241bb7d4..61bc9ed4 100644 --- a/esp32-ble-example.yaml +++ b/esp32-ble-example.yaml @@ -31,7 +31,7 @@ external_components: refresh: 0s web_server: - local: true + local: false captive_portal: From 87146d132507e9efa5b822f83d5805b4024de153 Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Fri, 21 Jul 2023 09:12:12 +0200 Subject: [PATCH 3/3] Remove external component The web_server_idf component was released with ESPHome 2023.7.0 --- esp32-ble-example.yaml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/esp32-ble-example.yaml b/esp32-ble-example.yaml index 61bc9ed4..9dbc8864 100644 --- a/esp32-ble-example.yaml +++ b/esp32-ble-example.yaml @@ -22,13 +22,6 @@ esp32: external_components: - source: ${external_components_source} refresh: 0s - - source: github://spali/esphome@pr3500 - components: - - web_server - - web_server_idf - - web_server_base - - captive_portal - refresh: 0s web_server: local: false