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

@@ -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