Templates / Show NASA APOD and nearest asteroid data in Home Assistant dashboards

Show NASA APOD and nearest asteroid data in Home Assistant dashboards

Ready for 3.0

by Joey Townsend ✓ · 47 views · created 2026-09-23 · Market Research

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 9 nodes and runs on a schedule (every day at 06:00) (plus 1 other trigger). Along the way it connects Home Assistant. It also calls science.nasa.gov and api.nasa.gov over HTTP.

How it runs

Trigger: On a schedule (every day at 06:00) (plus 1 other trigger).

  1. Fetch NASA APOD Data (HTTP Request): calls science.nasa.gov (GET)
  2. Fetch Asteroid Feed (HTTP Request): calls api.nasa.gov
  3. Set APOD Fields (Edit Fields (Set)): sets 5 fields: title, explanation, image_url…
  4. Set Asteroid Data (Edit Fields (Set)): sets 2 fields: count, raw_objects
  5. Send APOD to Home Assistant (Home Assistant): create or update (state)
  6. Find Nearest Asteroid (Code): runs custom JavaScript code
  7. Send Asteroid to Home Assistant (Home Assistant): create or update (state)

Services it uses

Home Assistant

HTTP calls to: science.nasa.gov, api.nasa.gov

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (6)

From the author

Quick overview This workflow runs daily and pulls NASA’s Astronomy Picture of the Day plus the closest near‑Earth asteroid from NASA’s NEO feed, then upserts both datasets into Home Assistant as sensors for use in dashboards and automations. How it works 1.…

Excerpt from Joey Townsend's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.