-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Add sensors to ntfy integration #39114
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: next
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for home-assistant-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
📝 WalkthroughWalkthroughThe documentation for the ntfy integration was updated to include a new "Sensors" section. This section details various sensors provided by the integration, categorizing them by the type of usage statistics and account limits they report. No changes were made to existing documentation or configuration instructions. Changes
Sequence Diagram(s)No sequence diagram is generated as the changes are limited to documentation updates. Note ⚡️ AI Code Reviews for VS Code, Cursor, WindsurfCodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback. Note ⚡️ Faster reviews with cachingCodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (6)
source/_integrations/ntfy.markdown (6)
106-112
: Use standardized sensor macro for Message stats
To improve consistency with other Home Assistant docs and enable automatic linking of entities, replace the bold text with thesensor
macro. For example:- - **Messages published**: The total number of messages sent today. + - {{ sensor("ntfy", "messages_published") }}: The total number of messages sent today.
113-118
: Use standardized sensor macro for Email stats
Likewise, consider using thesensor
macro here:- - **Emails sent**: The number of email notifications sent today. + - {{ sensor("ntfy", "emails_sent") }}: The number of email notifications sent today.
119-124
: Use standardized sensor macro for Phone call stats
Update the phone-call bullets to use the macro for consistency:- - **Phone calls made**: The total phone call alerts made today. + - {{ sensor("ntfy", "phone_calls_made") }}: The total phone call alerts made today.
125-130
: Rename “Reserved topics” heading for parallelism
Other categories include “stats” in their headings. For consistency, rename to:- ### 🔒 Reserved topics + ### 🔒 Reserved topics statsAnd consider applying the
sensor
macro to each bullet as above.
131-139
: Use standardized sensor macro for Attachment stats
Apply the same pattern to the attachment sensors. For example:- - **Attachment storage**: The amount of storage space currently used by file attachments. + - {{ sensor("ntfy", "attachment_storage") }}: The amount of storage space currently used by file attachments.
140-143
: Rename “Account” to “Account stats”
To maintain naming consistency across categories, update the heading to:- ### ⭐ Account + ### ⭐ Account stats
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge Base: Disabled due to data retention organization setting
📒 Files selected for processing (1)
source/_integrations/ntfy.markdown
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: Redirect rules - home-assistant-docs
- GitHub Check: Header rules - home-assistant-docs
- GitHub Check: Pages changed - home-assistant-docs
🔇 Additional comments (1)
source/_integrations/ntfy.markdown (1)
102-105
: Addition of Sensors section looks good
The new “## Sensors” section and introductory text correctly introduce the set of usage-related sensors. Ensure that this heading is reflected in the page’s table of contents and follows the prescribed ordering in the integration docs.
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.
Thank you, @tr4nt0r 👍
Proposed change
Type of change
current
branch).current
branch).next
branch).next
branch).Additional information
Checklist
current
branch.next
branch.Summary by CodeRabbit