Files
esphome-configs/mcu-lightening.yaml
T
randyandClaude Sonnet 5 c9358e7bd6 Rename deprecated light rgb_order to channel_colors
ESPHome renamed the esp32_rmt_led_strip platform's rgb_order option to
channel_colors; update the remaining devices using it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-25 22:16:30 +02:00

64 lines
983 B
YAML

---
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:
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