{"id":39142479,"url":"https://github.com/dirtyharryiv/iss_spotter","last_synced_at":"2026-01-17T21:31:54.591Z","repository":{"id":265117769,"uuid":"895158096","full_name":"dirtyharryiv/iss_spotter","owner":"dirtyharryiv","description":"Home Assistant custom integration that searches for upcoming ISS sightings plus some additional info about the International Space Station","archived":false,"fork":false,"pushed_at":"2026-01-12T23:02:30.000Z","size":486,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-13T00:48:20.709Z","etag":null,"topics":["cloud","iss"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dirtyharryiv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-27T17:00:20.000Z","updated_at":"2026-01-12T19:54:18.000Z","dependencies_parsed_at":"2025-04-04T16:31:09.456Z","dependency_job_id":"eafec46c-cb7c-4ee7-b85c-0d86b67bd60a","html_url":"https://github.com/dirtyharryiv/iss_spotter","commit_stats":null,"previous_names":["dirtyharryiv/iss_spotter"],"tags_count":19,"template":false,"template_full_name":"ludeeus/integration_blueprint","purl":"pkg:github/dirtyharryiv/iss_spotter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirtyharryiv%2Fiss_spotter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirtyharryiv%2Fiss_spotter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirtyharryiv%2Fiss_spotter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirtyharryiv%2Fiss_spotter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dirtyharryiv","download_url":"https://codeload.github.com/dirtyharryiv/iss_spotter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dirtyharryiv%2Fiss_spotter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28518627,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T18:55:29.170Z","status":"ssl_error","status_checked_at":"2026-01-17T18:55:03.375Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud","iss"],"created_at":"2026-01-17T21:31:54.461Z","updated_at":"2026-01-17T21:31:54.555Z","avatar_url":"https://github.com/dirtyharryiv.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ISS Spotter Integration for Home Assistant\r\n\r\nThe **ISS Spotter** custom integration lets you track upcoming ISS (International Space Station) sightings for **your exact location**.\r\nIt uses the [Skyfield](https://rhodesmill.org/skyfield/) library and live TLE data from [Celestrak](https://celestrak.org/) to compute visible ISS passes locally.\r\n\r\n---\r\n\r\n## ✨ Features\r\n\r\n✅ Predicts the next visible ISS sighting for your coordinates\u003cbr\u003e\r\n✅ Filters passes by **minimum elevation** and **minimum visible duration**\u003cbr\u003e\r\n✅ Latitude, longitude and elevation attributes so you can use the sensor with a map card\r\n\r\n\r\n![Sensor](img/sensor.png)\r\n\r\n---\r\n\r\n## ⚙️ Installation\r\n\r\n### 1) Install via HACS (Recommended)\r\n\r\n[![Open a repository inside the Home Assistant Community Store.](https://my.home-assistant.io/badges/hacs_repository.svg)](https://my.home-assistant.io/redirect/hacs_repository/?owner=dirtyharryiv\u0026repository=iss_spotter\u0026category=Integration)\r\n\r\n- Search for **ISS Spotter** under **HACS \u003e Integrations**\r\n- Click **Download**\r\n- Restart Home Assistant\r\n\r\n### 2) Manual Install\r\n\r\n- Clone or download this repository\r\n- Copy the folder to:\r\n  ```bash\r\n  /config/custom_components/iss_spotter/\r\n  ```\r\n- Restart Home Assistant\r\n\r\n---\r\n\r\n## 🛰️ Configuration\r\n\r\n### Add via UI\r\n\r\n1. Go to **Settings \u003e Devices \u0026 Services \u003e + Add Integration**\n2. Search for **ISS Spotter**\n3. Choose whether to use the **Home Assistant location**\n4. Enter:\n   - A name for your sensor\n   - **Latitude** \u0026 **Longitude** (only if not using HA location)\n   - Minimum elevation (°) you want to consider\n   - Sun elevation limit (°) for darkness (e.g. -6)\n   - Minimum visible duration (minutes)\n   - Time span in days to search ahead (1–14)\n\r\n**Done!** The integration will create a sensor entity with:\n- `state`: next sighting date/time (ISO format, minute-stable)\n- `attributes`: duration, max elevation, appear direction, culminate, set, all upcoming sightings\n\r\n**Notes**\r\n- On first run it will take a short time to download the de421.bsp file. This is needed for calculations\r\n- If you upgrade from older versions you need to delete and reconfigure the integration\r\n\r\n\r\n---\r\n\r\n## 🔔 Notifications\r\n\r\n### Example pyscript\r\n\r\n```python\r\nfrom datetime import datetime, timedelta\r\n\r\ntime_triggers = {}\r\ntime_in_minutes_to_notify_before = 3\r\n\r\n@time_trigger(\"startup\")\r\n@state_trigger(\"sensor.iss_freiburg_im_breisgau\")\r\ndef time_trigger_start_time():\r\n    date = str(state.get(\"sensor.iss_freiburg_im_breisgau\"))\r\n    attributes = state.getattr(\"sensor.iss_freiburg_im_breisgau\")\r\n    visible_time = str(attributes[\"duration\"])\r\n    max_height = str(attributes[\"max_elevation\"])\r\n    service.call(\r\n        \"notify\",\r\n        \"smartphone\",\r\n        message=f\"🌍🛰️ New ISS sighting: {date}\\nVisible for {visible_time}, max elevation {max_height}.\"\r\n    )\r\n    time_trigger_factory(\"sensor.iss_freiburg_im_breisgau\", notify_Func, \"notify_Func\")\r\n\r\ndef notify_Func():\r\n    attributes = state.getattr(\"sensor.iss_freiburg_im_breisgau\")\r\n    visible_time = str(attributes[\"duration\"])\r\n    max_height = str(attributes[\"max_elevation\"])\r\n    service.call(\r\n        \"notify\",\r\n        \"smartphone\",\r\n        message=f\"👀🛰️ The ISS will be visible in {time_in_minutes_to_notify_before} minutes! Visible for {visible_time}, max elevation {max_height}.\"\r\n    )\r\n\r\ndef time_trigger_factory(sensor_entity, func_handle, func_name):\r\n    time_val = datetime.fromisoformat(str(state.get(sensor_entity))) - timedelta(minutes=time_in_minutes_to_notify_before)\r\n    time_val = time_val.strftime('%Y-%m-%d %H:%M:%S')\r\n\r\n    @time_trigger(f\"once({time_val})\")\r\n    def func_trig():\r\n        func_handle()\r\n\r\n    time_triggers[func_name] = func_trig\r\n```\r\n\r\n### Example yaml automation\r\n\r\n```yaml\r\nalias: ISS Notification\r\ndescription: \"Send a notification 3 minutes before the ISS sighting.\"\r\ntrigger:\r\n  - platform: template\r\n    value_template: \u003e\r\n      {{ (as_timestamp(states('sensor.iss_freiburg_im_breisgau')) - as_timestamp(now())) \u003c= 180 }}\r\ncondition: []\r\naction:\r\n  - service: notify.mobile_app_your_device_name\r\n    data:\r\n      title: \"ISS sighting soon! 🛰️\"\r\n      message: \u003e\r\n        The ISS will be visible in 3 minutes!\r\n        Next sighting: {{ states('sensor.iss_freiburg_im_breisgau') }}.\r\n      data:\r\n        tag: iss_notification\r\nmode: single\r\n```\r\n\r\n---\r\n\r\n## 📊 Lovelace example\r\n\r\nUse a Markdown card:\r\n```markdown\r\n\u003cha-icon icon=\"mdi:space-station\"\u003e\u003c/ha-icon\u003e\r\n{{ as_datetime(states('sensor.iss_freiburg_im_breisgau')).strftime('%d.%m.%Y %H:%M') }}\r\n```\r\n![Markdown Card](img/markdown_card.png)\r\n\r\nUse a Map card:\r\n```\r\ntype: map\r\nentities:\r\n  - entity: sensor.iss_foobar\r\n    name: ISS Position\r\ntheme_mode: auto\r\ndefault_zoom: 5\r\nhours_to_show: 2\r\n```\r\n![Map Card](img/map_card.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirtyharryiv%2Fiss_spotter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdirtyharryiv%2Fiss_spotter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirtyharryiv%2Fiss_spotter/lists"}