Skip to content

Instantly share code, notes, and snippets.

@tathamoddie
Created November 20, 2022 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tathamoddie/f62dacf9dc346c3b2532e6e54f80a8db to your computer and use it in GitHub Desktop.
Save tathamoddie/f62dacf9dc346c3b2532e6e54f80a8db to your computer and use it in GitHub Desktop.
substitutions:
device_name: roller-door
friendly_name: Roller Door
## Board config
esphome:
name: ${device_name}
platform: ESP32
board: m5stack-core-esp32
## Boilerplate, same for all of our devices
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
logger:
api:
password: !secret esphome_secret
ota:
password: !secret esphome_secret
## Hardware setup
output:
- platform: gpio
pin: 22
id: rf_button
## Logical setup
button:
- platform: output
name: "Roller Door"
output: rf_button
duration: 500ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment