i2c:
  - id: i2c_as3935
    scl: ${scl_pin}
    sda: ${sda_pin}

as3935_i2c:
  irq_pin: ${irq_pin}

binary_sensor:
  - platform: as3935
    name: Storm Alert

sensor:
  - platform: as3935
    lightning_energy:
      name: Lightning Energy
    distance:
      name: Distance Storm
