8000 Add Google Weather docs by tronikos · Pull Request #39589 · home-assistant/home-assistant.io · GitHub
[go: up one dir, main page]

Skip to content

Add Google Weather docs #39589

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

Open
wants to merge 5 commits into
base: next
Choose a base branch
from
Open

Conversation

tronikos
Copy link
Member
@tronikos tronikos commented Jun 17, 2025

Proposed change

Add Google Weather docs

Type of change

  • Spelling, grammar or other readability improvements (current branch).
  • Adjusted missing or incorrect information in the current documentation (current branch).
  • Added documentation for a new integration I'm adding to Home Assistant (next branch).
  • Added documentation for a new feature I'm adding to Home Assistant (next branch).
  • Removed stale or deprecated documentation.

Additional information

Checklist

  • This PR uses the correct branch, based on one of the following:
    • I made a change to the existing documentation and used the current branch.
    • I made a change that is related to an upcoming version of Home Assistant and used the next branch.
  • The documentation follows the Home Assistant documentation standards.

Summary by CodeRabbit

  • Documentation
    • Added user documentation for the new Google Weather integration, including setup instructions, API key requirements, usage details, limitations, and troubleshooting tips.

@home-assistant home-assistant bot added has-parent This PR has a parent PR in a other repo next This PR goes into the next branch labels Jun 17, 2025
Copy link
netlify bot commented Jun 17, 2025

Deploy Preview for home-assistant-docs ready!

Name Link
🔨 Latest commit 0a6659f
🔍 Latest deploy log https://app.netlify.com/projects/home-assistant-docs/deploys/685ceb1eb6115b00082fc1d0
😎 Deploy Preview https://deploy-preview-39589--home-assistant-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor
coderabbitai bot commented Jun 17, 2025
📝 Walkthrough

Walkthrough

A new documentation file for the "Google Weather" integration has been added. It details setup instructions, usage, API key requirements, polling intervals, request estimates, known limitations, and troubleshooting for integrating Google Weather as a weather data source in Home Assistant.

Changes

File(s) Change Summary
source/_integrations/google_weather.markdown Added new documentation for the Google Weather integration, including setup, usage, API key info, polling, limitations, and troubleshooting.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant HomeAssistant
    participant GoogleWeatherAPI

    User->>HomeAssistant: Add Google Weather integration
    HomeAssistant->>User: Prompt for API key
    User->>HomeAssistant: Provide API key
    HomeAssistant->>GoogleWeatherAPI: Authenticate and request weather data (every 15 min / hourly forecasts)
    GoogleWeatherAPI-->>HomeAssistant: Return current and forecast weather data
    HomeAssistant-->>User: Display weather information
Loading

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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need 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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai or @coderabbitai title anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor
@coderabbitai coderabbitai bot left a 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 (2)
source/_integrations/google_weather.markdown (2)

32-36: Surround lists with blank lines (MD032)
The list under “Data updates” must be preceded and followed by a blank line to satisfy lint rules.
Apply this diff:

@@ -32,4 +32,6
 The integration fetches:
+
 - current weather conditions every 15 minutes
 - daily weather forecast every 2 hours
 - hourly weather forecast every 2 hours
+

45-45: Correct capitalization of "Google Weather"
Ensure consistent branding by capitalizing “Weather” in the Known limitations section.
Apply this diff:

- - Google weather forecast information isn't currently available in South Korea and Japan. See [here](https://support.google.com/websearch/answer/13687874).
+ - Google Weather forecast information isn't currently available in South Korea and Japan. See [here](https://support.google.com/websearch/answer/13687874).
📜 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

📥 Commits

Reviewing files that changed from the base of the PR and between 67613b6 and 6b739ad.

📒 Files selected for processing (1)
  • source/_integrations/google_weather.markdown (1 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
source/_integrations/google_weather.markdown

33-33: Lists should be surrounded by blank lines
null

(MD032, blanks-around-lists)

⏰ 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

Copy link
Contributor
@coderabbitai coderabbitai bot left a 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 (3)
source/_integrations/google_weather.markdown (3)

32-35: List Formatting: Surround list with blank lines
Insert a blank line between the “The integration fetches:” paragraph and the bullet list to satisfy markdown list spacing guidelines.


37-37: Clarify request estimate calculation
Consider specifying that the 4,464-requests/month figure is based on a 31-day month so users understand the basis of the estimate.


45-46: Capitalization: Consistent integration name
Change “Google weather forecast” to “Google Weather forecast” to match the integration’s name.

📜 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

📥 Commits

Reviewing files that changed from the base of the PR and between 6b739ad and f0093a8.

📒 Files selected for processing (1)
  • source/_integrations/google_weather.markdown (1 hunks)
🧰 Additional context used
🪛 LanguageTool
source/_integrations/google_weather.markdown

[grammar] ~34-~34: When ‘1-hour’ is used as a modifier, it is usually spelled with a hyphen.
Context: ...minutes

  • daily weather forecast every 1 hour
  • hourly weather forecast every 1 hour...

(HOUR_HYPHEN)


[uncategorized] ~35-~35: A period might be missing here.
Context: ...hour

  • hourly weather forecast every 1 hour

This results in 4,464 requests per m...

(AI_EN_LECTOR_MISSING_PUNCTUATION_PERIOD)

🪛 markdownlint-cli2 (0.17.2)
source/_integrations/google_weather.markdown

33-33: Lists should be surrounded by blank lines
null

(MD032, blanks-around-lists)

⏰ 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 (5)
source/_integrations/google_weather.markdown (5)

1-16: Front Matter: Fields look correct
The YAML metadata includes all required keys (title, description, ha_category, ha_release, etc.) and follows Home Assistant documentation conventions.


18-19: Description: Integration macro and link are accurate
The {% term integration %} macro is used correctly, and the link to Google’s Weather API documentation is valid.


20-28: Prerequisites section is clear
API key requirement and links for obtaining keys and pricing are well explained.


39-42: Removal instructions include is correct
The integrations/remove_device_service.md include provides the standard removal workflow.


47-50: Troubleshooting instructions are clear
Debug logging guidance is appropriate and follows Home Assistant norms.

Copy link
Contributor
@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (4)
source/_integrations/google_weather.markdown (4)

22-22: Use descriptive link text instead of “here”.

Avoid generic “here” links for accessibility and clarity. For example:

-You need an API key. Follow instructions [here](https://developers.google.com/maps/documentation/weather/get-api-key) for creating an API key.
+You need a Google Maps API key. Follow the [Get an API key guide](https://developers.google.com/maps/documentation/weather/get-api-key) to create one.

35-36: Clean up interval wording and hyphenation.

Instead of “every 1 hour,” use “every hour” or simply “hourly” for clarity and consistency. For example:

-- daily weather forecast for the next 10 days every 1 hour
-- hourly weather forecast for the next 24 hours every 1 hour
+- daily weather forecast for the next 10 days (hourly)
+- hourly weather forecast for the next 24 hours (hourly)

38-38: Clarify monthly request calculation.

The doc states 4,464 requests per month, which assumes a 31-day month. Consider noting the assumption or using a 30-day baseline to avoid confusion:

-This results in 4,464 requests per month, meaning you could have up to 2 locations and still stay under the 10,000 free usage cap.
+Assuming a 31-day month, this results in 4,464 requests per month. Even on a 30-day month (≈4,320 requests), you can monitor up to two locations and remain under the 10,000 free-tier cap.

50-51: Enhance troubleshooting with a debug config sample.

It’s helpful to show users how to enable debug logging for this integration. For example:

```yaml
# configuration.yaml
logger:
  default: warning
  logs:
    homeassistant.components.google_weather: debug

</blockquote></details>

</blockquote></details>

<details>
<summary>📜 Review details</summary>

**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**


<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between f0093a863a7fa1fa9a7a8668755096d72a069736 and 5415a44f16b755d63d896c0460b6d0666f0cf05e.

</details>

<details>
<summary>📒 Files selected for processing (1)</summary>

* `source/_integrations/google_weather.markdown` (1 hunks)

</details>

<details>
<summary>🧰 Additional context used</summary>

<details>
<summary>🪛 LanguageTool</summary>

<details>
<summary>source/_integrations/google_weather.markdown</summary>

[grammar] ~35-~35: When ‘1-hour’ is used as a modifier, it is usually spelled with a hyphen.
Context: ...her forecast for the next 10 days every 1 hour
 - hourly weather forecast for the next...

(HOUR_HYPHEN)

</details>

</details>

</details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->

Co-authored-by: Simon Lamon <32477463+silamon@users.noreply.github.com>
silamon
silamon previously approved these changes Jun 22, 2025
@silamon silamon added the awaits-parent Awaits the merge of an parent PR label Jun 22, 2025
Copy link
Contributor
@coderabbitai coderabbitai bot left a 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 (3)
source/_integrations/google_weather.markdown (3)

36-38: Simplify frequency phrasing for consistency

Recommend replacing “every 1 hour” with “every hour” and removing redundant terms (e.g., “hourly weather forecast” already implies hourly frequency). This improves readability and parallelism in the bullet list.


48-48: Use descriptive link text instead of “here”

Avoid generic link labels; replace “[here]” with a descriptive label such as “[Google support page for region availability]” to improve accessibility and clarity.


52-52: Wrap troubleshooting advice in an admonition

Consider using a note admonition instead of a bullet for the troubleshooting step to increase visibility (e.g., {% note %}Enable debug logging and attach logs before opening an issue.{% endnote %}).

📜 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

📥 Commits

Reviewing files that changed from the base of the PR and between 5415a44 and 35491af.

📒 Files selected for processing (1)
  • source/_integrations/google_weather.markdown (1 hunks)
🧰 Additional context used
🪛 LanguageTool
source/_integrations/google_weather.markdown

[grammar] ~37-~37: When ‘1-hour’ is used as a modifier, it is usually spelled with a hyphen.
Context: ...her forecast for the next 10 days every 1 hour

  • hourly weather forecast for the next...

(HOUR_HYPHEN)

⏰ Context from c 8000 hecks 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 (3)
source/_integrations/google_weather.markdown (3)

1-16: Frontmatter validated and conforms to standards

All required frontmatter fields (title, description, category, release version, IoT class, config flow, domain, code owners, integration type, quality scale, and platforms) are correctly specified and formatted.


18-23: Prerequisites section is clear and complete

The instructions for obtaining an API key are concise, and the link to Google’s documentation is correct.


24-28: Note block properly highlights GA preview status

The implementation of the note admonition is correct and follows documentation conventions.

Copy link
Contributor
@coderabbitai coderabbitai bot left a 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 (2)
source/_integrations/google_weather.markdown (2)

24-29: Add the missing comma in the billing sentence

Minor punctuation issue flagged by LanguageTool—add a comma after “GA”.

-For pricing once it's in GA refer to the [billing section in the Google developer documentation](https://developers.google.com/maps/documentation/weather/usage-and-billing).
+For pricing once it's in GA, refer to the [billing section in the Google developer documentation](https://developers.google.com/maps/documentation/weather/usage-and-billing).

37-40: Tighten phrasing of update cadence (hyphen/wording)

“Every 1 hour” reads awkwardly and triggers the HOUR_HYPHEN lint warning. Simplify to “every hour”.

- - daily weather forecast for the next 10 days every 1 hour
- - hourly weather forecast for the next 24 hours every 1 hour
+ - daily weather forecast for the next 10 days every hour
+ - hourly weather forecast for the next 24 hours every hour
📜 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

📥 Commits

Reviewing files that changed from the base of the PR and between 35491af and 0a6659f.

📒 Files selected for processing (1)
  • source/_integrations/google_weather.markdown (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
`source/_integrations/*`: Integration documentation must use the provided template structure and section order.

source/_integrations/*: Integration documentation must use the provided template structure and section order.

📄 Source: CodeRabbit Inference Engine (.github/copilot-instructions.md)

List of files the instruction was applied to:

  • source/_integrations/google_weather.markdown
🪛 LanguageTool
source/_integrations/google_weather.markdown

[uncategorized] ~26-~26: A comma might be missing here.
Context: ...ring Preview.
For pricing once it's in GA refer to the [billing section in the Go...

(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)


[grammar] ~38-~38: When ‘1-hour’ is used as a modifier, it is usually spelled with a hyphen.
Context: ...her forecast for the next 10 days every 1 hour

  • hourly weather forecast for the next...

(HOUR_HYPHEN)

⏰ 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/google_weather.markdown (1)

6-6: Double-check the ha_release placeholder before merge

ha_release: '2025.7' is forward-looking. Make sure the value matches the actual Home Assistant version in which the integration will ship; otherwise the docs site will surface the page under the wrong release tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaits-parent Awaits the merge of an parent PR has-parent This PR has a parent PR in a other repo next This PR goes into the next branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0