-**indoor** (*Optional*, boolean): Indicates if the sensor is used indoor. Defaults to ``true``.
-**noise_level** (*Optional*, integer): Noise floor level is compared to known reference voltage.
If this level is exceeded the chip will issue an interrupt to the IRQ pin, broadcasting that it can not
operate properly due to noise (INT_NH). Defaults to ``2``.
-**spike_rejection** (*Optional*, integer): Helps to differentiate between real events and actual lightning.
Increasing this value increases robustness at the cost of sensitivity to distant events. Defaults to ``2``.
-**lightning_threshold** (*Optional*, integer): The number of lightnings that must appear in a 15-minute time
window before a lightning storm is detected.
15 minutes is the window of time before the number of detected lightning events is reset.
The number of lightning strikes can be set to 1,5,9, or 16. Defaults to ``1``.
-**mask_disturber** (*Optional*, boolean): This setting will return whether or not disturbers trigger
the IRQ Pin. Defaults to ``false``.
-**div_ratio** (*Optional*, integer): The antenna is designed to resonate at 500kHz and so can be tuned
with the following setting. The accuracy of the antenna must be within 3.5 percent of that value for
proper signal validation and distance estimation. Defaults to ``0``.
-**capacitance** (*Optional*, integer): This setting will add capacitance to the series RLC antenna on the product
to help tune its resonance. The datasheet specifies being within 3.5 percent of 500kHz to get optimal lightning
detection and distance sensing. It's possible to add up to 120pF in steps of 8pF to the antenna. Defaults to ``0``.
-**watchdog_threshold** (*Optional*, integer): Determines the threshold for events that trigger the IRQ pin.
Defaults to ``2``.
Sensor entries:
-**lightning_energy** (*Optional*): Lightning energy value. According to the datasheet this is only a pure value that doesn't have any physical meaning.
-**name** (**Required**, string): The name for the lightning energy sensor.
-**id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in lambdas.
- All other options from :ref:`Sensor <config-sensor>`.
-**distance** (*Optional*): Distance in km to the front of the storm and not the distance to a lightning strike.
-**name** (**Required**, string): The name for the distance sensor.
-**id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in lambdas.
- All other options from :ref:`Sensor <config-sensor>`.
-**binary sensor** (*Optional*): Binary sensor that indicates if a lightning strike was detected.
-**name** (**Required**, string): The name of the binary sensor.
-**id** (*Optional*,
:ref:`config-id`):Manually specify
the ID used for code generation.
- All other options from :ref:`Binary Sensor <config-binary_sensor>`.
Configuration variables (i^2c):
-------------------------------
Use this if you want to use your AS3935 in i^2c mode.