Add option to wake-up to Climate page

Solves #1321
This commit is contained in:
Edward Firmo
2023-11-22 21:08:05 +01:00
parent 0bdbb6e736
commit 9ff6e42e8e
2 changed files with 5 additions and 2 deletions

View File

@@ -92,6 +92,7 @@ packages:
- Buttons on both the Home and Buttons pages shows entity's icon when available
- 4.1.2 patch:
- Fix light icon color not being used for buttons
- Add option to wake-up to Climate page
 
## Details of noteworthy changes

View File

@@ -7,7 +7,7 @@
substitutions:
##### DON'T CHANGE THIS #####
version: "4.1.1"
version: "4.1.2dev"
#############################
##### ESPHOME CONFIGURATION #####
@@ -1134,6 +1134,7 @@ select:
- entitypage04
- qrcode
- alarm
- climate
initial_option: home
optimistic: true
restore_value: true
@@ -2420,7 +2421,8 @@ script:
if (current_page->state == "screensaver") { // Is screensaver page visible?
ESP_LOGV(TAG, "Update screensaver page");
int wakeup_page_id = 0;
if (wakeup_page_name->state == "buttonpage01") wakeup_page_id = 12;
if (wakeup_page_name->state == "climate") wakeup_page_id = 6;
else if (wakeup_page_name->state == "buttonpage01") wakeup_page_id = 12;
else if (wakeup_page_name->state == "buttonpage02") wakeup_page_id = 13;
else if (wakeup_page_name->state == "buttonpage03") wakeup_page_id = 14;
else if (wakeup_page_name->state == "buttonpage04") wakeup_page_id = 15;