Skip to content

Instantly share code, notes, and snippets.

@TitleOS
Created May 19, 2024 18:16
Show Gist options
  • Save TitleOS/e9b4a8da637bfd441d2c3dbd929693ce to your computer and use it in GitHub Desktop.
Save TitleOS/e9b4a8da637bfd441d2c3dbd929693ce to your computer and use it in GitHub Desktop.
Feed Tar1090 to Home Assistant, creating a sensor that lists the current number of aircraft within range.
rest:
- resource: "http://ADS-B_IPAddress/tar1090/data/aircraft.json"
scan_interval: 5
sensor:
- name: Aircraft Count
unique_id: Generate_A_GUID
force_update: true
value_template: "{{ value_json.aircraft | length }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment