This commit is contained in:
Edward Firmo
2024-01-11 17:56:23 +01:00
parent c57ae981db
commit be1266dd24
3 changed files with 9 additions and 6 deletions

View File

@@ -1,3 +1,4 @@
---
substitutions:
device_name: nspanel
wifi_ssid: "nspanel"
@@ -20,3 +21,4 @@ bluetooth_proxy:
# Set Wi-Fi power save mode to "LIGHT" as required for Bluetooth on ESP32
wifi:
power_save_mode: LIGHT
...

View File

@@ -41,7 +41,7 @@ button:
- logger.log: Button Sleep pressed
- lambda: |-
if (id(current_page).state != "screensaver") id(disp1).goto_page("screensaver");
# Adds a button to wake-up the panel (similar to the existing service)
- name: ${device_name} Wake-up
id: force_wake_up
@@ -131,7 +131,7 @@ output:
uint8_t current_brightness = int(round(display_light->current_values.is_on() ? (display_light->current_values.get_brightness() * 100.0f) : 0.0));
ESP_LOGV("output.display_output", "current_brightness: %i%%", current_brightness);
set_brightness->execute(current_brightness);
script:
# Updates the existing `page_changed` script to update the `display_light` status when a page changes
- id: !extend page_changed

View File

@@ -6,8 +6,9 @@ substitutions:
nextion_update_url: "https://github.com/Blackymas/NSPanel_HA_Blueprint/dummy"
packages:
core_package: !include ../nspanel_esphome.yaml # Core package
#advanced_package: !include ../advanced/esphome/nspanel_esphome_advanced.yaml
core_package: !include ../nspanel_esphome.yaml # Core package
# advanced_package: !include ../advanced/esphome/nspanel_esphome_advanced.yaml
addon_climate_heat: !include ../nspanel_esphome_addon_climate_heat.yaml
#addon_climate_cool: !include ../nspanel_esphome_addon_climate_cool.yaml
#addon_climate_dual: !include ../nspanel_esphome_addon_climate_dual.yaml
# addon_climate_cool: !include ../nspanel_esphome_addon_climate_cool.yaml
# addon_climate_dual: !include ../nspanel_esphome_addon_climate_dual.yaml
...