As an avid aviation enthusiast/photographer I wanted a way to know if something of my interest was potentially going to be going over head, or at least near by.
Prerequisites:
Local ADSB Receiver running with a dump1090
Within your sensors.yaml you need to create a rest sensor to create an array based on your json file output:
Once this is done in the automation you can then create a trigger based on an event, this is when the state of the aircraft in the arrays HEX code changes (this is built on hex code)in this example from aircraft 1 to aircraft 20.
The action from this is then to send a push notification to my phone to tell me the receiver has picked up something I want to know about :).
Future improvements (if possible?):
narrow down the search to a 20nm radius, my receiver is reaching 150nm and not everything comes by, need to work out can I restrict on location radius?
when a hex changes from aircraft1 to aircraft5 (for example) it will issue a new notification, that does slightly flood your screen (sometimes) for a while. Need to work out if there is a condition to āholdā notifications somehow.
This is a simple and small project, but thought iād share in the matter of interest.
I tried doing something similar within Home Assistant a while back and found the needed code too complex and too rapid at times to work with in Home Assistantās automations and scripts. So I moved it to an external python program. The program keeps track of āinteresting ads-b hex codesā from a Google Docs Spreadsheet (this was a KISS solution to make updating interesting planes easy for user), then does processing to try and determine of the aircraft is landing or taking off from local airports. The resulting āinteresting eventsā are forwarded to MQTT and geoJSON feeds for Home Assistant consumption.
Has anyone found a solution to scan for flight numbers (I.e. not callsigns)?
I know itās not in the ADS-B data, so maybe there is a website where you can connect to a database?
I want to trigger on the U25145 flightnumber.
For many flights the callsign equals the flightnumber, but for many others it doesnāt (to avoid ācallsign confusionā).
ADS-B only transmits the callsign though.