Home Assistant - Get notified when ISS is above your home
Emiliano Guerzoni
Project Manager | BESS Development | Driving 3+ GW of Energy Storage Projects in Italy
Hi everyone,
In this article I've explained how to know the ISS position in Home Assistant.
Use case
The ISS is above your home.
If you are at home, you want to get notified in order to be ready to take a picture.
Software configuration
Home Assistant code (yaml)
This is the piece of code - Automation - you have to write down:
alias: Android Notify - ISS is visibile
description: Send an android notification to my phone if the ISS is visible and I'm at home. This notification will be automatically cleared after xx seconds according to the defined threshold.
trigger:
? - entity_id: binary_sensor.iss
? ? from: "off"
? ? platform: state
? ? to: "on"
condition:
? - condition: state
? ? entity_id: device_tracker.[nameofyoursmartphone]
? ? state: home
action:
? - data:
? ? ? message: >-
? ? ? ? ISS is visible! Coordinates:
? ? ? ? {{state_attr('binary_sensor.iss', 'latitude')}},
? ? ? ? {{state_attr('binary_sensor.iss', 'longitude')}}
? ? ? data:
? ? ? ? timeout: "{{ states('input_number.iss') | int}}"
? ? service: notify.mobile_app_[nameofyoursmartphone]
mode: single
领英推荐
Some specifics about the code above
I do hope you have enjoyed this article. I'm available for any feedback so, feel free to contact me or share your thoughts in the comments section below!
Thank you for reading.
--------------------------------------------------------------------------------------------------------
Other recent articles about Home Assistant: