I’m very new to tinkering with ESPHome and so far have just taken other configs from tutorials. I ran wiring to a few doors in my house to do reed sensors. So now I’m starting to mess with the ESPHome setup and my first attempt isn’t working out at all. I have the following config file on an ESP-WROOM-32 (DOIT ESP32 DevKit V1 Wi-Fi Development Board - Pinout Diagram & Arduino Reference - CIRCUITSTATE Electronics):
esphome:
name: doorsensor
friendly_name: Door Sensor
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "..."
ota:
- platform: esphome
password: "..."
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Door-Sensor Fallback Hotspot"
password: "1gL8rM4Rf2oB"
captive_portal:
binary_sensor:
- platform: gpio
pin:
number: 13
mode:
input: true
pullup: true
output: false
open_drain: false
pulldown: false
inverted: false
name: Office Door
device_class: door
I’ve given it a static IP on my network and added it to the ESPHome integration, but all I see are diagnostics that it picked up from my Unifi integration:
I tried a few different setups of the pin
block, but even if that’s wrong, I would expect to see a binary_sensor
in HA named Office Door associated with this device. Am I missing something in my setup? Thanks!