Created
August 30, 2020 05:23
-
-
Save tathamoddie/62afc41e5b4464f5adeef4b580fb3294 to your computer and use it in GitHub Desktop.
ESPHome demo config for M5Stack Atom Lite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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