esphome:
name: smartcard
esp32:
board: nodemcu-32s
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "kA9qErLxzAH8VQB84Li1WRVvsHdFlOKVNdz6vEtqfyI="
ota:
password: "7a876bd40942451be286989b1dece5d7"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Smartcard Fallback Hotspot"
password: !secret wifi_password
captive_portal:
# Example configuration entry
spi:
clk_pin: GPIO18
mosi_pin: GPIO23
miso_pin: GPIO19
rc522_spi:
cs_pin: GPIO5
on_tag:
then:
- homeassistant.tag_scanned: !lambda 'return x;'