International Space Station Sensor

Here you go…

  default_header:
    styles:
      card:
        - box-shadow: '0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)'
#        - border-radius: 15px
        - margin: 5px 5px 0px 0px
        - padding: 0px 0px
        - '--paper-card-background-color': 'rgba(0, 0, 0, 0.0)'
      name:
#        - justify-self: start
#        - align-self: end
        - padding: 9px 10px
        - font-size: 18px
        - font-weight: bold
        - color: '#5F9BEA'
1 Like

Thanks again for sharing! :slight_smile:

How did you get the images? Can i find them somewhere?

This are the google searches i used:

‌space launch
space station
spacex dragon

Hi all, unfortunately since V4 of spaceX API launch this is not working anymore the main issue is that instead of the launchpad name you now get a numeric code and I don’t know how to make a rest sensor with a post method that could get the full name from the numeric code :frowning:

This is how i solved this.

numbers → launchpad:

      spacex_next_launchpad:
        value_template: >
          {% if states('sensor.spacex_launchpad_id') == '5e9e4501f5090910d4566f83' %}
            Vandenberg Air Force Base Space Launch Complex 3W
          {% elif states('sensor.spacex_launchpad_id') == '5e9e4501f509094ba4566f84'%}
            Cape Canaveral Air Force Station Space Launch Complex 40
          {% elif states('sensor.spacex_launchpad_id') == '5e9e4502f5090927f8566f85'%}
            SpaceX South Texas Launch Site
          {% elif states('sensor.spacex_launchpad_id') == '5e9e4502f5090995de566f86'%}
            Kwajalein Atoll Omelek Island
          {% elif states('sensor.spacex_launchpad_id') == '5e9e4502f509092b78566f87'%}
            Vandenberg Air Force Base Space Launch Complex 4E
          {% elif states('sensor.spacex_launchpad_id') == '5e9e4502f509094188566f88'%}
            Kennedy Space Center Historic Launch Complex 39A
          {% endif %}
        friendly_name: Launchpad

Greetz

That is awesome, thank you :grinning:
Greetz

Anyone else having issues when their sensor configs recently? I upgraded from 2022.3.x to 2022.8.x and now I get errors for my value_template.

value_template: '{% if states.sensor.iss_pass_times %}{{ states.sensor.iss_pass_times.attributes["response"][0]["risetime"] | int | timestamp_custom("%d-%b-%Y %I:%M %p")}}{% endif %}'

Error:
TemplateError(‘UndefinedError: ‘homeassistant.util.read_only_dict.ReadOnlyDict object’ has no attribute ‘response’’)

I can’t find if something changed in the releases related to the attributes[] array syntax.

Thanks.

Unfortunately the API is no longer available.

http://open-notify.org/Open-Notify-API/ISS-Pass-Times/

1 Like

Thanks. I just found that too. http://api.open-notify.org/ :frowning: