AlexandrErohin / home-assistant-flightradar24

Flightradar24 integration for Home Assistant
https://community.home-assistant.io/t/custom-component-flightradar24
MIT License
137 stars 15 forks source link

Feature Request: altitude limit #12

Closed GpsM2 closed 8 months ago

GpsM2 commented 8 months ago

Many thanks for the great integration! As I live near an airport, it would be great to be able to specify an altitude limit, as I'm usually only interested in the planes arriving and departing. The overflights at higher altitudes are less interesting.

Thanks again!

AlexandrErohin commented 8 months ago

Hi, you always may do this when you display flights in Lovelace card - add IF clause and check a flight for your criteria to have it in the list. Also you may do it for notifications. There are lot of criterias to filter flights - adding all of them will make configuring a bit sophisticated

GpsM2 commented 8 months ago

Thank you for the fast answer! I added the IF clause as suggested:

{% if flight.altitude is defined and flight.altitude < 9000 %}

{% endif %}