Skip to content

Instantly share code, notes, and snippets.

@tathamoddie
Created August 30, 2020 05:23
Show Gist options
  • Save tathamoddie/62afc41e5b4464f5adeef4b580fb3294 to your computer and use it in GitHub Desktop.
Save tathamoddie/62afc41e5b4464f5adeef4b580fb3294 to your computer and use it in GitHub Desktop.
ESPHome demo config for M5Stack Atom Lite
substitutions:
device_name: demo2
friendly_name: Demo 2
## Boilerplate
esphome:
name: ${device_name}
platform: ESP32
board: m5stack-core-esp32
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: Fallback ${device_name}
captive_portal:
logger:
api:
password: !secret esphome_secret
ota:
password: !secret esphome_secret
## Device-specific
light:
- platform: fastled_clockless
chipset: WS2812B
pin: 27
num_leds: 1
rgb_order: GRB
id: status_led
name: ${friendly_name} Light
effects:
- random:
- flicker:
- addressable_rainbow:
binary_sensor:
- platform: gpio
pin:
number: 39
inverted: true
name: ${friendly_name} Button
on_press:
then:
- light.toggle: status_led
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment