home-assistant.io/source/_components/sensor.opensky.markdown
2017-04-20 10:28:09 +02:00

1.3 KiB

layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, featured, ha_release, ha_iot_class
layout title description date sidebar comments sharing footer logo ha_category featured ha_release ha_iot_class
page OpenSky Network Instructions on how to integrate OpenSky Network into Home Assistant. 2017-04-14 10:00 true false true true opensky.png Sensor false 0.43 Cloud Polling

The opensky sensor allows one to track overhead flights in a given region. It uses crowd-sourced data from the OpenSky Network public API. It will also fire Home Assistant events when flights enter and exit the defined region.

Configuration

To enable this sensor, add the following lines to your configuration.yaml.

sensor:
  - platform: opensky
    radius: 10

Configuration options for the OpenSky Network sensor:

  • radius (Required): Radius of region to monitor, in kilometers
  • latitude (Optional): Region latitude (defaults to home zone latitude)
  • longitude (Optional): Region longitude (defaults to home zone longitude)
  • name (Optional): Sensor name (defaults to opensky)

Events

  • opensky_entry: Fired when a flight enters the region
  • opensky_exit: Fired when a flight exits the region

Both events have two attributes:

  • sensor: Name of opensky sensor that fired the event
  • callsign: Callsign of the flight