From ed6c85b9139e13e9aee2e24b59fa1d734883c797 Mon Sep 17 00:00:00 2001 From: Carlo Costanzo Date: Tue, 9 Jun 2026 13:03:19 -0400 Subject: [PATCH] chore(ha): remove stale space package --- config/json_data/test_launch.json | 109 ------------------------------ config/packages/space.yaml | 50 -------------- 2 files changed, 159 deletions(-) delete mode 100755 config/json_data/test_launch.json delete mode 100755 config/packages/space.yaml diff --git a/config/json_data/test_launch.json b/config/json_data/test_launch.json deleted file mode 100755 index c976330d..00000000 --- a/config/json_data/test_launch.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "total": 1, - "launches": [ - { - "id": 1079, - "name": "Minotaur-C (Taurus XL) | 6 x SkySat & 4 x Dove", - "windowstart": "November 1, 2017 21:22:00 UTC", - "windowend": "November 1, 2017 22:22:00 UTC", - "net": "October 31, 2017 21:37:00 UTC", - "wsstamp": 1509589742, - "westamp": 1509488520, - "netstamp": 1509485820, - "isostart": "2017111T152200Z", - "isoend": "20171111T222200Z", - "isonet": "20171031T213700Z", - "status": 3, - "inhold": 0, - "tbdtime": 0, - "vidURLs": [ - "https://www.youtube.com/watch?v=xP_xWX9RqYU", - "https://www.youtube.com/watch?v=eWsxNGD3fPE" - ], - "vidURL": null, - "infoURLs": [], - "infoURL": null, - "holdreason": null, - "failreason": null, - "tbddate": 0, - "probability": 100, - "hashtag": null, - "location": { - "pads": [ - { - "id": 179, - "name": "Space Launch Complex 576E, Vandenberg AFB, CA", - "infoURL": null, - "wikiURL": null, - "mapURL": "http://maps.google.com/maps?q=34.739444+N,+120.619167+W", - "latitude": 34.739444, - "longitude": -120.619167, - "agencies": [ - { - "id": 161, - "name": "United States Air Force", - "abbrev": "USAF", - "countryCode": "USA", - "type": 1, - "infoURL": "http://www.af.mil", - "wikiURL": "http://en.wikipedia.org/wiki/United_States_Air_Force", - "infoURLs": [ - "http://www.af.mil" - ] - } - ] - } - ], - "id": 16, - "name": "Carlo's house, FL, USA", - "infoURL": "", - "wikiURL": "", - "countryCode": "USA" - }, - "rocket": { - "id": 105, - "name": "Minotaur-C", - "configuration": "Minotaur-C", - "familyname": "Pegasus", - "agencies": [ - { - "id": 179, - "name": "Orbital ATK", - "abbrev": "OA", - "countryCode": "USA", - "type": 3, - "infoURL": "https://www.orbitalatk.com/", - "wikiURL": "https://en.wikipedia.org/wiki/Orbital_ATK", - "infoURLs": [ - "https://www.orbitalatk.com/" - ] - } - ], - "wikiURL": "https://en.wikipedia.org/wiki/Minotaur-C", - "infoURLs": [], - "imageSizes": [ - 320 - ], - "imageURL": "Array" - }, - "missions": [ - { - "id": 348, - "name": "Dedicated rideshare", - "description": "Dedicated rideshare", - "type": 14, - "typeName": "Dedicated Rideshare" - }, - { - "id": 605, - "name": "6 x SkySat & 4 x Dove", - "description": "SkySat is a series of commercial Earth observation satellites, which operate in 500 km sun-synchronous orbit. Each satellite weighs about 120 kg and is intended for 6 years of operation.", - "type": 1, - "typeName": "Earth Science" - } - ] - } - ], - "offset": 0, - "count": 1 -} diff --git a/config/packages/space.yaml b/config/packages/space.yaml deleted file mode 100755 index 6745572e..00000000 --- a/config/packages/space.yaml +++ /dev/null @@ -1,50 +0,0 @@ -###################################################################### -# @CCOSTAN - Follow Me on X -# For more info visit https://www.vcloudinfo.com/click-here -# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig -# ------------------------------------------------------------------- -# Space - ISS and launch-related telemetry -# Tracks SpaceX timing and announces an upcoming launch window. -# ------------------------------------------------------------------- -# Notes: Guard template triggers against unavailable startup sensor state. -###################################################################### -sensor: - - - platform: rest - scan_interval: 1800 - name: SpaceX Starman - json_attributes: - - earth_distance_mi - value_template: '{{ value_json["speed_mph"] }}' - unit_of_measurement: "mph" - state_class: measurement - resource: 'https://api.spacexdata.com/v2/info/roadster' - - - platform: rest - scan_interval: 1800 - name: SpaceX - json_attributes: - - mission_name - - launch_site - - rocket - value_template: '{{ value_json["launch_date_unix"] }}' - resource: 'https://api.spacexdata.com/v2/launches/next' - -automation: - - alias: Launch Window Approaching - id: 1d42fc4f-a37d-4283-b64b-09242a145598 - trigger: - - platform: template - value_template: >- - {% set launch_ts = states('sensor.spacex') | int(0) %} - {% set seconds_until = launch_ts - (now().timestamp() | int) %} - {{ launch_ts > 0 and seconds_until > 0 and seconds_until <= 600 }} - - action: - - service: script.notify_engine - data: - value1: >- - {% set mission = state_attr('sensor.spacex', 'mission_name') | default('A SpaceX launch', true) %} - Go outside. {{ mission }} is scheduled to launch in about 10 minutes. - group: 'information' -