Last active
May 15, 2022 02:17
-
-
Save petersem/60c47b7b35303006702b1f0387e70bba to your computer and use it in GitHub Desktop.
ESPHome: simple read sensor
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
esphome: | |
name: study-lock | |
esp32: | |
board: esp32dev | |
framework: | |
type: arduino | |
# Enable logging | |
logger: | |
# Enable Home Assistant API | |
api: | |
password: "" | |
ota: | |
password: "" | |
wifi: | |
networks: | |
- ssid: !secret wifi_ssid | |
password: !secret wifi_password | |
- ssid: !secret wifi_ssid2 | |
password: !secret wifi_password2 | |
# Enable fallback hotspot (captive portal) in case wifi connection fails | |
ap: | |
ssid: "Test Fallback Study Lock" | |
password: !secret wifi_password | |
captive_portal: | |
binary_sensor: | |
- platform: gpio | |
device_class: lock | |
name: "study_door" | |
pin: | |
number: 32 | |
mode: INPUT_PULLUP | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment