Add on_sleep
event
#3256
-
Component namedeep_sleep Link to component documentation on our websitehttps://esphome.io/components/deep_sleep.html Describe the enhancementCurrently there's no way of notifying the system when the ESP goes to sleep. Introduction of this also complements Use casesThe primary use case in my mind is saving component data into RTC memory so they can be restored on wake time. BME680 is a prime example of this. See this example. Anything else?No response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
🏷️ I've automatically added the |
Beta Was this translation helpful? Give feedback.
-
Did you try/see on_shutdown |
Beta Was this translation helpful? Give feedback.
-
I certainly did not see that. Thanks for the pointer, closing the issue! |
Beta Was this translation helpful? Give feedback.
Did you try/see on_shutdown