esphome: friendly_name: lightning-detector esp32: board: esp32-s3-devkitc-1 framework: type: esp-idf # Enable logging logger: # Enable Home Assistant API api: encryption: key: ota: - platform: esphome password: wifi: ssid: !secret wifi_ssid password: !secret wifi_password # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Fallback Hotspot" password: captive_portal: #lightning sensor #VCC - 3.3V - RED #EN_V - gnd - GRN (onboard voltage regulator turned off) #GND - BLK #SI - BLK # Example configuration entry - single controller spi: clk_pin: GPIO12 # ORG mosi_pin: GPIO11 # YEL miso_pin: GPIO13 # GRY # Example configuration for SPI as3935_spi: cs_pin: GPIO10 # BLU irq_pin: GPIO6 # BRN indoor: false watchdog_threshold: 2 spike_rejection: 2 noise_level: 2 sensor: - platform: as3935 lightning_energy: name: Lightning energy distance: name: Distance to storm unit_of_measurement: "mi" filters: multiply: 0.62 # cistern temp-humidity - platform: dht pin: GPIO7 # accuracy_decimals: 0 model: DHT11 temperature: name: "temperature" humidity: name: "humidity" update_interval: 60s # Example storm alert binary sensor binary_sensor: - platform: as3935 name: Storm alert