Starter ESPHome config
Built from the pinout above. Keys and the Wi-Fi password come from secrets.yaml in ESPHome. Check the pins against your hardware revision before flashing: one model can ship with different boards.
substitutions:
name: circuitsetup-expandable-
esphome:
name: ${name}
friendly_name: "CircuitSetup Expandable-6 Channel ESP32 Energy Meter (ATM90E32)"
esp32:
board: esp32dev
logger:
api:
encryption:
key: !secret api_key
ota:
- platform: esphome
password: !secret ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap: {}
captive_portal:
status_led:
pin:
number: GPIO2
inverted: false # Add-on Board 3 CS 1 - CT1-3 (do not use if ESP32 has on-board LED)
# Other pins from the pinout:
# GPIO5: Main Board CS 1 - CT1-3
# GPIO4: Main Board CS 2 - CT4-6
# GPIO0: Add-on Board 1 CS 1 - CT1-3
# GPIO16: Add-on Board 1 CS 2 - CT4-6
# GPIO27: Add-on Board 2 CS 1 - CT1-3
# GPIO17: Add-on Board 2 CS 2 - CT4-6
# GPIO21: Add-on Board 3 CS 2 - CT4-6
# GPIO13: Add-on Board 4 CS 1 - CT1-3
# GPIO22: Add-on Board 4 CS 2 - CT4-6
# GPIO14: Add-on Board 5 CS 1 - CT1-3
# GPIO25: Add-on Board 5 CS 2 - CT4-6
# GPIO15: Add-on Board 6 CS 1 - CT1-3
# GPIO26: Add-on Board 6 CS 2 - CT4-6
# GPIO18: CLK Pin
# GPIO19: MISO Pin
# GPIO23: MOSI Pin
How to flash
- Most devices are flashed over UART: a 3.3 V USB-TTL adapter to RX, TX, GND and 3V3, holding GPIO0 to ground at power-on (ESP8266/ESP32). Mains power disconnected.
- Beken (BK72xx) and Realtek chips are flashed with ltchiptool, or with cloudcutter without opening the case if the firmware allows it.
- Details and board photos: the device page in the ESPHome database.
A config from scratch: ESPHome generator. Which pins are safe: pinout.