Return captive_portal and web_server

This commit is contained in:
Edward Firmo
2024-02-19 08:45:26 +01:00
parent ee45d68146
commit b933becf1a
4 changed files with 29 additions and 14 deletions

View File

@@ -58,6 +58,7 @@ We did our best to support your legacy settings and avoid breaking your system,
We understand this change can require substantial work on the exisiting automations with direct calls to the panel's services, We understand this change can require substantial work on the exisiting automations with direct calls to the panel's services,
however this will significantly improve the future customizations by providing compreensive documentation, standardizing and optimizing services calls. however this will significantly improve the future customizations by providing compreensive documentation, standardizing and optimizing services calls.
3. **`captive_portal` and `web_server` are back to basic package**. If you want to remove those to free-up memory, please use [customizations](docs/customization.md#remove-non-essential-components).
## Overview of noteworthy changes ## Overview of noteworthy changes
1. New default framework 1. New default framework

View File

@@ -32,6 +32,7 @@ Table of contents:
- [Push button / Momentary switch](#push-button--momentary-switch) - [Push button / Momentary switch](#push-button--momentary-switch)
- [Expose relay fallback switch](#expose-relay-fallback-switch) - [Expose relay fallback switch](#expose-relay-fallback-switch)
- [Relay Interlocking](#relay-interlocking) - [Relay Interlocking](#relay-interlocking)
- [Remove non-essential components](#remove-non-essential-components)
   
   
@@ -685,4 +686,15 @@ switch:
- id: !extend relay_2 - id: !extend relay_2
interlock: [relay_1, relay_2] interlock: [relay_1, relay_2]
interlock_wait_time: 500ms # Please adjust this accordingly interlock_wait_time: 500ms # Please adjust this accordingly
``` ```
### Remove non-essential components
This can be useful to free-up memory, so other custom components could be used instead.
```yaml
# Removes captive portal
captive_portal: !remove
# Removes embedded web server
web_server: !remove
```

View File

@@ -11,7 +11,6 @@ substitutions:
##### Do not change this here. ##### ##### Do not change this here. #####
##### Set your substitutions on ##### ##### Set your substitutions on #####
##### your base yaml file. ##### ##### your base yaml file. #####
web_password: ${wifi_password}
##################################### #####################################
button: button:
@@ -27,8 +26,6 @@ button:
- logger.log: "Button pressed: Exit reparse" - logger.log: "Button pressed: Exit reparse"
- script.execute: exit_reparse - script.execute: exit_reparse
captive_portal:
script: script:
- id: exit_reparse - id: exit_reparse
mode: restart mode: restart
@@ -96,10 +93,4 @@ time:
- component.update: api_timestamp - component.update: api_timestamp
- component.update: device_timestamp - component.update: device_timestamp
web_server:
id: web_server_std
port: 80
auth:
username: admin
password: ${web_password}
... ...

View File

@@ -9,14 +9,15 @@ substitutions:
############################## ##############################
## Change only in your ## ## Change only in your ##
## local yaml substitutions ## ## local yaml substitutions ##
temp_units: "°C"
invalid_cooldown: "100ms"
ota_password: ${wifi_password}
ap_password: ${wifi_password}
device_name: NSPanel device_name: NSPanel
name: ${device_name} name: ${device_name}
friendly_name: ${device_name} friendly_name: ${device_name}
ap_password: ${wifi_password}
ota_password: ${wifi_password}
web_password: ${wifi_password}
wifi_timeout: '15' wifi_timeout: '15'
temp_units: "°C"
invalid_cooldown: "100ms"
##### DON'T CHANGE THIS ###### ##### DON'T CHANGE THIS ######
version: "4.3dev" version: "4.3dev"
############################## ##############################
@@ -107,6 +108,8 @@ wifi:
then: then:
- script.execute: watchdog - script.execute: watchdog
captive_portal:
##### OTA PASSWORD ##### ##### OTA PASSWORD #####
ota: ota:
id: ota_std id: ota_std
@@ -160,6 +163,14 @@ time:
- logger.log: "System clock synchronized" - logger.log: "System clock synchronized"
- script.execute: refresh_datetime - script.execute: refresh_datetime
##### Web server #####
web_server:
id: web_server_std
port: 80
auth:
username: admin
password: ${web_password}
##### START - API CONFIGURATION ##### ##### START - API CONFIGURATION #####
api: api:
id: api_server id: api_server