-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Enhance timer.markdown with attributes and examples #41580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: current
Are you sure you want to change the base?
Conversation
Added attributes and examples for timer integration.
✅ Deploy Preview for home-assistant-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the timer integration documentation by adding comprehensive information about timer attributes, template examples, and a practical automation example. The additions help users understand how to work with timer entities more effectively, especially for creating dynamic countdowns and automated lighting scenarios.
- Adds a new "Attributes" section documenting the key timer entity attributes (
duration,remaining,finishes_at,restore) - Introduces a "Templates" section with two practical examples for displaying remaining time and end time
- Adds a motion-activated light automation example demonstrating real-world timer usage
Updated note formatting for clarity.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| | `timer.restarted` | Fired when a timer has been restarted | | ||
| | `timer.paused` | Fired when a timer has been paused | | ||
|
|
||
| ## Attributes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected the description of the 'editable' attribute for clarity.
| When motion stops and the timer finishes, the light turns off. | ||
|
|
||
| ```yaml | ||
| alias: Motion-Activated Hall Light |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I specifically used trigger_id to have an example of how to handle two events in one automation, which is useful when you manages automations in the UI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fill out the PR template
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Added attributes and examples for timer integration.
Proposed change
Type of change
currentbranch).currentbranch).nextbranch).nextbranch).Additional information
Checklist
currentbranch.nextbranch.