[globals] Documentation for RTC support#6068
Open
Rapsssito wants to merge 4 commits intoesphome:nextfrom
Open
Conversation
17 tasks
✅ Deploy Preview for esphome ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds/updates documentation for using globals with RTC-backed persistence, clarifying how restore_value behaves and providing an example configuration.
Changes:
- Expanded the intro to mention retaining globals across resets/deep sleep.
- Added a YAML example showing
restore_value: RTC. - Updated
type/restore_valueoption descriptions to include RTC-related constraints and behavior.
Comments suppressed due to low confidence (1)
content/components/globals.md:30
- This YAML snippet under the example is not valid as written:
then:should be indented underon_...:(and the extra leading space beforeon_...:/# In an automationshould be removed) so users can copy/paste it successfully.
# In an automation
on_...:
then:
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Pull request in esphome with YAML changes (if applicable):
Checklist:
nextbecause this is new documentation that has a matching pull-request in esphome as linked above.