Created
January 10, 2025 12:44
-
-
Save JohnMcLear/ed1bd2cf632c59bc006a6faa53c4c4a5 to your computer and use it in GitHub Desktop.
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: | |
name: esphome-web-dee4ac | |
friendly_name: 'Derpy Test Door' | |
api: | |
ota: | |
- platform: esphome | |
password: "ce238fe8c0ed57d7224ea1a859b166b3" | |
improv_serial: | |
wifi: | |
ssid: !secret wifi_ssid | |
password: !secret wifi_password | |
ap: {} | |
domain: ".lan" | |
captive_portal: | |
dashboard_import: | |
package_import_url: github://esphome/example-configs/esphome-web/esp32.yaml@main | |
import_full_config: true | |
esp32_improv: | |
authorizer: none | |
web_server: | |
port: 80 | |
binary_sensor: | |
output: | |
- platform: gpio | |
pin: GPIO16 | |
id: 'relay1' | |
lock: | |
- platform: output | |
name: "Door Lock" | |
output: 'relay1' | |
id: 'lockymclockface' | |
pn532_spi: | |
cs_pin: GPIO18 | |
# data_rate: 200kHz | |
data_rate: 1Mhz | |
id: my_pn532 | |
update_interval: 1s | |
on_tag: | |
then: | |
- lock.unlock: | |
id: lockymclockface | |
- delay: 3s | |
- logger.log: "Relocked due to trusted tagid" | |
- lock.lock: | |
id: lockymclockface | |
spi: | |
clk_pin: GPIO21 | |
miso_pin: GPIO22 | |
mosi_pin: GPIO19 | |
sensor: | |
- platform: uptime | |
type: seconds | |
name: Uptime Sensor | |
esphome: | |
name: ${name} | |
friendly_name: ${friendly_name} | |
min_version: 2024.6.0 | |
name_add_mac_suffix: false | |
project: | |
name: esphome.web | |
version: dev | |
esp32: | |
board: esp32dev | |
framework: | |
type: arduino | |
# Enable logging | |
logger: | |
level: DEBUG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment