Files
esphome-configs/mcu-shed.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

126 lines
2.7 KiB
YAML

---
# Hardware: M5Stack ATOM Lite + ATOM Hub Switch
# Pinout:
# GPIO19 -> Light (switch gpio)
# GPIO21 -> i2c (i2c scl)
# GPIO22 -> Garden Light (switch gpio)
# GPIO25 -> i2c (i2c sda)
# GPIO26 Grove SDA
# GPIO27 NEO (ATOM RGB LED) -> atom_led (status LED, common/status_led_atom.yaml)
# GPIO32 Grove SCL
# I2C:
# 0x27 pca9554_module (pca9554)
substitutions:
device: shed
name: Shed
area: Outside
comment: Shed | Irrigation B
esphome:
name: mcu-${device}
friendly_name: ${name}
area: ${area}
comment: ${comment}
esp32:
variant: esp32
toolchain: esp-idf
framework:
advanced:
flash_chip: gd
type: esp-idf
# version: 5.4.2
# platform_version: 54.03.21
packages:
common: !include common/common.yaml
ipv6_only: !include common/ipv6_only.yaml
status_led: !include common/status_led_atom.yaml
i2c:
sda: 25
scl: 21
scan: true
pca9554:
- id: pca9554_module
address: 0x27
binary_sensor:
- platform: gpio
id: btn
pin:
pca9554: pca9554_module
number: 6
inverted: true
on_click:
- min_length: 50ms
max_length: 350ms
then:
- switch.toggle: shed_light_relay
- min_length: 351ms
max_length: 1000ms
then:
- switch.toggle: garden_light_relay
- min_length: 1001ms
max_length: 10000ms
then:
- switch.toggle: socket_relay
switch:
- platform: gpio
name: "Irrigation Valve B1"
id: irrigation_relay_1
interlock: &interlock_group [irrigation_relay_1, irrigation_relay_2, irrigation_relay_3, irrigation_relay_4]
pin:
pca9554: pca9554_module
number: 0
mode: OUTPUT
inverted: true
- platform: gpio
name: "Irrigation Valve B2"
id: irrigation_relay_2
interlock: *interlock_group
pin:
pca9554: pca9554_module
number: 1
mode: OUTPUT
inverted: true
- platform: gpio
name: "Irrigation Valve B3"
id: irrigation_relay_3
interlock: *interlock_group
pin:
pca9554: pca9554_module
number: 2
mode: OUTPUT
inverted: true
- platform: gpio
name: "Irrigation Valve B4"
id: irrigation_relay_4
interlock: *interlock_group
pin:
pca9554: pca9554_module
number: 3
mode: OUTPUT
inverted: true
- platform: gpio
name: Socket
id: socket_relay
pin:
pca9554: pca9554_module
number: 4
mode: OUTPUT
- platform: gpio
name: Garden Light
id: garden_light_relay
pin:
number: 22
mode: OUTPUT
- platform: gpio
name: Light
id: shed_light_relay
pin:
number: 19
mode: OUTPUT