This custom integration for Home Assistant delivers real-time space weather data from the Australian Bureau of Meteorologys Space Weather Services (SWS). It provides key indices such as A, K, and Dst, along with alerts, warnings, watches, and outlooks for magnetic and auroral activity.
- Sensors:
- A Index
- K Index (configurable for specific Australian locations)
- Dst Index
- Binary Sensors:
- Magnetic Alert
- Magnetic Warning
- Aurora Alert
- Aurora Watch
- Aurora Outlook
All data is sourced from the Australian Space Weather Services API.
- Ensure HACS is installed in your Home Assistant instance.
- Navigate to HACS > Integrations > Explore & Add Integrations.
- Search for "Australian Space Weather" and click Install.
- Restart Home Assistant.
- Download the latest release from the GitHub repository.
- Extract the contents to the
custom_components/aus_space_weather/directory in your Home Assistant configuration folder. - Restart Home Assistant.
- After installation, go to Settings > Devices & Services > Add Integration.
- Search for "Australian Space Weather" and select it.
- Enter your API key (obtained from SWS Registration).
- Select a location for the K Index (e.g., "Australian region", "Hobart", etc.).
- Click Submit to finish setup.
You’ll need an API key from the Australian Space Weather Services. Register for free at https://sws-data.sws.bom.gov.au/register to obtain your key.
Once configured, the integration creates the following entities:
- Sensors:
sensor.a_index: Latest A index for the Australian region.sensor.k_index_<location>: Latest K index for the chosen location (e.g.,sensor.k_index_hobart).sensor.dst_index: Latest Dst index for the Australian region.
- Binary Sensors:
binary_sensor.magnetic_alert: On if a magnetic alert is active.binary_sensor.magnetic_warning: On if a magnetic warning is active.binary_sensor.aurora_alert: On if an aurora alert is active.binary_sensor.aurora_watch: On if an aurora watch is active.binary_sensor.aurora_outlook: On if an aurora outlook is active.
These entities can be integrated into automations, dashboards, or notifications to track space weather conditions.
- Automation: Send a notification when an aurora alert is triggered.
- Dashboard: Show the current K index on a Lovelace card to monitor geomagnetic activity.
The integration refreshes every 15 minutes to retrieve the latest data from the API.
A heartfelt thank you to the Australian Bureau of Meteorology (BOM) for providing the space weather data through their API. This integration relies on their excellent service to deliver valuable information to users.
- Issues: Report bugs or suggest features on the GitHub Issues page.
- Contributions: Pull requests are welcome! Check the contribution guidelines in the repository.
This project is licensed under the MIT License. See the LICENSE file for details.