home-assistant-flightradar24 icon indicating copy to clipboard operation
home-assistant-flightradar24 copied to clipboard

Feature Request: Configurable single aircraft sensor

Open motoridersd opened this issue 6 months ago • 7 comments

I can do a lot of powerful filtering and display in Home Assistant to get exactly the type of aircraft I care about. For example I have a small area that only looks for Helicopters, and another that only displays commercial aircraft.

This is done by adding entries to the if statement in the for loop used for the lovelace card.

I want to use the data that the integration provides to generate an image on my Tidbyt. The Tidbyt doesn't have official Home Assistant integration, but I've been able to make a lot of things work by running their pixlet binary (to generate the screens) locally and query Home Assistant for data from Media Players for example.

I have an app that tracks flights, but it uses a RapidAPI API that is paid and I can't do a lot of filtering on it (or I can, but I am a lot more comfortable with Home Assistant templates than the Tidbyt Skylark code).

It would be nice if the integration could create a sensor based on user specified parameters. This could be a new sensor, or have an option to make sensor.flightradar24_current_in_area use the filters.

Filters would be maybe common things like:

  • Altitude is higher/lower than
  • Contains Airline Short (private aircraft don't have one)
  • Ground speed is higher/lower than
  • Origin/Destination airport is X or is not X
  • Excluded/included aircraft codes
  • Max number of results to show

Again, this can all be done with if statements, but I think it would be pretty user friendly to have the above settings in the Integration configuration. This is by no means urgent, but just wanted to put it out there.

Thank you for all your work. I love this integration.

motoridersd avatar Feb 18 '24 17:02 motoridersd