A custom Home Assistant integration that monitors stargazing conditions and notifies you when the stars will be amazing. Perfect for observers with high standards and access to excellent dark skies.
-
Add Custom Repository
- Home Assistant → Settings → Devices & Services
- Click "Create Automation" → Search "HACS"
- Or go directly to HACS in sidebar
- Click 3-dots → Custom repositories
- Add:
https://github.com/yourusername/stargazing - Category: Integration
-
Install Integration
- Search for "Stargazing"
- Click Install
- Restart Home Assistant
-
Configure
- Add to
configuration.yaml:stargazing: notify_service: notify.mandalore
- Add to
-
Test
- Developer Tools → Services →
stargazing.send_test_notification
- Developer Tools → Services →
Copy the stargazing folder to your Home Assistant custom_components directory:
cp -r stargazing /path/to/your/HA/config/custom_components/Then configure and restart as above.
Analyzes stargazing conditions based on:
- Cloudless (mandatory ≥95%)
- Transparency (high standards ≥70%)
- Seeing (high standards ≥65%)
- Wind Calm (≥60%)
- Moon Phase (penalty varies)
- EXCEPTIONAL (90-100): Perfect conditions → Immediate Pushover notification
- AMAZING (80-89): Great night → Evening notification
- Good (60-79): Acceptable → Log only
- Poor (<60): Not recommended → No notification
- Meteor showers
- ISS passes
- Planetary events
- Auto-notifications 1-2 days before
- 6 sensor entities
- Real-time quality score
- Optimal viewing window
- Dashboard card template included
send_test_notification- Test Pushover integrationcheck_conditions_now- Manual condition checkrefresh_astronomy_events- Update astronomy events
stargazing:
notify_service: notify.mandalorestargazing:
notify_service: notify.mandalore
minimum_score_notify: 80
minimum_cloudless: 95
minimum_transparency: 70
minimum_seeing: 65
zip_code: "88431"sensor.stargazing_quality_score # 0-100 quality
sensor.stargazing_rating # EXCEPTIONAL/AMAZING/Good/Poor
sensor.stargazing_optimal_viewing_start # Viewing window start
sensor.stargazing_optimal_viewing_end # Viewing window end
sensor.stargazing_next_exceptional_night # Next perfect night
sensor.stargazing_upcoming_astronomy_events # Event list
- Home Assistant ≥2023.12.0
- AstroWeather integration
- Pushover service configured
- Installation & Setup: See
docs/SETUP.md - Complete Reference: See
docs/REFERENCE.md - Configuration Examples: See
docs/CONFIG_EXAMPLES.md - Troubleshooting: See
docs/TROUBLESHOOTING.md
This integration is tuned for:
- Very high dark sky areas (88431 location optimized)
- Deep sky observation requirements
- Serious amateur astronomers
- Optimal conditions only (notifications are meaningful)
Expected notification frequency:
- EXCEPTIONAL: 2-3x per month
- AMAZING: 1-2x per week
- Good: Logged, no notification
- Poor: Most nights
✅ Local network only ✅ Read-only (no entity modifications) ✅ No external API keys required ✅ Pushover handles notifications
For issues:
- Check
docs/TROUBLESHOOTING.md - Review Home Assistant logs
- Verify AstroWeather is providing data
- Run test notification button
MIT License - See LICENSE file
Built for Home Assistant with ❤️
Uses:
- AstroWeather integration (sky conditions)
- ISS-Above API (satellite passes)
- Pushover (notifications)
Version: 1.0.0 Created: December 11, 2025 Status: Production Ready