Lint
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
substitutions:
|
substitutions:
|
||||||
device_name: nspanel
|
device_name: nspanel
|
||||||
wifi_ssid: "nspanel"
|
wifi_ssid: "nspanel"
|
||||||
@@ -20,3 +21,4 @@ bluetooth_proxy:
|
|||||||
# Set Wi-Fi power save mode to "LIGHT" as required for Bluetooth on ESP32
|
# Set Wi-Fi power save mode to "LIGHT" as required for Bluetooth on ESP32
|
||||||
wifi:
|
wifi:
|
||||||
power_save_mode: LIGHT
|
power_save_mode: LIGHT
|
||||||
|
...
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ button:
|
|||||||
- logger.log: Button Sleep pressed
|
- logger.log: Button Sleep pressed
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
if (id(current_page).state != "screensaver") id(disp1).goto_page("screensaver");
|
if (id(current_page).state != "screensaver") id(disp1).goto_page("screensaver");
|
||||||
|
|
||||||
# Adds a button to wake-up the panel (similar to the existing service)
|
# Adds a button to wake-up the panel (similar to the existing service)
|
||||||
- name: ${device_name} Wake-up
|
- name: ${device_name} Wake-up
|
||||||
id: force_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));
|
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);
|
ESP_LOGV("output.display_output", "current_brightness: %i%%", current_brightness);
|
||||||
set_brightness->execute(current_brightness);
|
set_brightness->execute(current_brightness);
|
||||||
|
|
||||||
script:
|
script:
|
||||||
# Updates the existing `page_changed` script to update the `display_light` status when a page changes
|
# Updates the existing `page_changed` script to update the `display_light` status when a page changes
|
||||||
- id: !extend page_changed
|
- id: !extend page_changed
|
||||||
|
|||||||
@@ -6,8 +6,9 @@ substitutions:
|
|||||||
nextion_update_url: "https://github.com/Blackymas/NSPanel_HA_Blueprint/dummy"
|
nextion_update_url: "https://github.com/Blackymas/NSPanel_HA_Blueprint/dummy"
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
core_package: !include ../nspanel_esphome.yaml # Core package
|
core_package: !include ../nspanel_esphome.yaml # Core package
|
||||||
#advanced_package: !include ../advanced/esphome/nspanel_esphome_advanced.yaml
|
# advanced_package: !include ../advanced/esphome/nspanel_esphome_advanced.yaml
|
||||||
addon_climate_heat: !include ../nspanel_esphome_addon_climate_heat.yaml
|
addon_climate_heat: !include ../nspanel_esphome_addon_climate_heat.yaml
|
||||||
#addon_climate_cool: !include ../nspanel_esphome_addon_climate_cool.yaml
|
# addon_climate_cool: !include ../nspanel_esphome_addon_climate_cool.yaml
|
||||||
#addon_climate_dual: !include ../nspanel_esphome_addon_climate_dual.yaml
|
# addon_climate_dual: !include ../nspanel_esphome_addon_climate_dual.yaml
|
||||||
|
...
|
||||||
|
|||||||
Reference in New Issue
Block a user