What would the configuration look like to set up a sensor that would have the plane information for the most recent overhead flight, using the Opensky or Flightaware add-in?
The “sensor.flightradar24_current_in_area” isn’t quite what I wanted, because it is just the # of flights, and it goes to zero once the flight leaves.
I’m thinking of one sensor of the name/type of plane most recently overhead, and a second sensor for how long since it left (or ‘zero’ if still overhead).
I assume there is some sort of template sensor I could set up to have these two data fields?
I have a vertical stack card on my dashboard that may show you what you want, automagically, from the FlightAware24 add-on. I hear the plane, look up and then glance at the dashboard.
Update the url in the last line with the latitude and longitude you wish to display. I have mine centred over the small airfield close by, and it is busy on weekends. Acrobatics can often be awesomely daring, and you want the tail number if there is a crunch.
You could use an entity state change of sensor.flightradar24_current_in_area to trigger your automation routines. It will go up when one arrives in your area, and go back down by one when it leaves. The map shows you where they all are.
Removed it. Thanks. Remnant of cut-n-paste into the forum formatting.
I think the map area zoom is 12 miles from centre. Certainly big enough for the virtual 3D box the weekend wannabe acrobats perform in. Fun to watch but sometimes heart stopping when engines cough or aircraft disappear behind trees in vertical mode - they always pull out in time, but one day I will have to make the call and the few seconds saved by knowing the tail number may make a difference for an injured pilot.
Experiment and post your final code solution to your original sensor requirement