Created
November 20, 2022 09:19
-
-
Save tathamoddie/f62dacf9dc346c3b2532e6e54f80a8db to your computer and use it in GitHub Desktop.
This file contains 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: 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