From 44aa752e705d9359bcbd209aee0f6d170f7423be Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Wed, 20 Sep 2023 07:36:01 +0200 Subject: [PATCH] Customizations - Deep sleep Solves #955 --- docs/en/customization.md | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/docs/en/customization.md b/docs/en/customization.md index 6b74742..310829d 100644 --- a/docs/en/customization.md +++ b/docs/en/customization.md @@ -216,4 +216,29 @@ button: You also must add the url for the alternative `tft` in your substitutions, like this: ```yaml nextion_update_blank_url: "http://homeassistant.local:8123/local/nspanel/dev/nspanel_blank.tft" -``` \ No newline at end of file +``` + +  +### Deep sleep +In this example, the panel will deep sleep for 7 hours, starting at 23:00:00 every day, for its maximum energy saving. + +During this time, nothing will be shown, the screen will be off and therefore no response to touch, and the panel will be disconnected from Wi-Fi, but you can still wake-up the panel by pressing one of the hardware buttons (the left one in this example): + +```yaml +# Define the wake-up button. Use pin 14 for left button or pin 27 for right button +deep_sleep: + wakeup_pin: 14 + wakeup_pin_mode: INVERT_WAKEUP + +time: + - id: !extend time_provider + on_time: + - hours: 23 + minutes: 0 + seconds: 0 + then: + - deep_sleep.enter: + sleep_duration: 7h +``` + +You can find more ideas around this on #955. \ No newline at end of file