Files
esphome-configs/mcu-lightening.yaml
T
randy bb76912023 Set framework.advanced.flash_chip on ESP32 devices to save IRAM
Values come from ESPHome's own hint in the log of each online device
("Set flash_chip: ... to save IRAM"). Devices that were off got the value of
an identical board (ESP32-PICO-D4 ATOM/Stamp Pico: gd, JC3248W535: generic,
POW Elite: gd), marked as not read from the device.
2026-09-30 11:57:30 +02:00

76 lines
1.4 KiB
YAML

---
# Hardware: M5Stack M5Stamp Pico
# Pinout:
# GPIO22 -> i2c (i2c scl)
# GPIO25 -> i2c (i2c sda)
# GPIO26 -> as3935_i2c (as3935_i2c irq_pin)
# GPIO27 -> neo (light esp32_rmt_led_strip)
# GPIO32 Grove SDA
# GPIO33 Grove SCL
# I2C:
# 0x03 as3935_i2c (as3935_i2c)
substitutions:
device: lightening
name: Lightening detector
name_short: Lightening
area: DEV
comment: Lightening
esphome:
name: mcu-${device}
friendly_name: ${name}
area: ${area}
comment: ${comment}
esp32:
variant: esp32
toolchain: esp-idf
framework:
advanced:
flash_chip: gd # ESP32-PICO-D4, like the other M5Stamp Pico (not read from the device)
type: esp-idf
packages:
common: !include common/common.yaml
i2c:
# # - id: i2c0
# sda: 32
# scl: 33
# scan: true #false
# frequency: 100kHz
# - id: i2c1
sda: 25
scl: 22
scan: true
# frequency: 100kHz
as3935_i2c:
irq_pin: 26
binary_sensor:
# - platform: gpio
# # name: Button
# pin:
# number: 39
# inverted: true
- platform: as3935
name: Storm Alert
light:
- platform: esp32_rmt_led_strip
# name: LED
id: neo
channel_colors: GRB
pin: 27
num_leds: 1
chipset: ws2812
restore_mode: ALWAYS_OFF
sensor:
- platform: as3935
lightning_energy:
name: Energy
distance:
name: Storm Distance