Just started playing with ESPHome. While I have it on the bench and can flash with USB I was playing with the “Captive Portal” I have a ESP32 D1 mini. Does anyone see where I am going wrong?
Screenshot of esphome-flasher log.
Snippet from the secrets file. The Password will not be the one used in real life.
wifi_esphome_fallback_ssid: 'FB Portal'
wifi_esphome_fallback_password: 'Test1412!'
Screenshot of my logging into the portal on my phone.
Here is the code:
esphome:
name: shop_doors
platform: ESP32
board: esp32doit-devkit-v1
wifi:
# ssid: !secret wifi_ssid_work
# password: !secret wifi_password_work
ssid: !secret wifi_ssid_work
password: 'testtest'
manual_ip:
static_ip: 172.25.92.100
gateway: 172.25.92.1
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: !secret wifi_esphome_fallback_ssid
password: !secret wifi_esphome_fallback_password
# Enable logging
logger:
# Enable Home Assistant API
api:
password: !secret esphome_api_password
ota:
password: !secret esphome_ota_password
#When holding the board with ping to the right and ESP12 down
# Counting pins in pairs
# o-|GPIO 16
# o-|Shop North Window
#
# o-|GPIO 13
# o-|Shop North East Window
#
# o-|GPIO 05
# o-|Shop South East Window
#
# o-|GPIO 04
# o-|Shop South Window
#
# o-|GPIO 14
# o-|Shop Door
#
binary_sensor:
- platform: gpio
pin:
number: GPIO14
mode: INPUT_PULLUP
inverted: False
name: "Shop North Window"
device_class: window
filters:
- delayed_on: 100ms
- platform: gpio
pin:
number: GPIO04
mode: INPUT_PULLUP
inverted: False
name: "Shop North East Window"
device_class: window
filters:
- delayed_on: 100ms
- platform: gpio
pin:
number: GPIO05
mode: INPUT_PULLUP
inverted: False
name: "Shop South East Window"
device_class: window
filters:
- delayed_on: 100ms
- platform: gpio
pin:
number: GPIO13
mode: INPUT_PULLUP
inverted: False
name: "Shop South Window"
device_class: window
filters:
- delayed_on: 100ms
- platform: gpio
pin:
number: GPIO16
mode: INPUT_PULLUP
inverted: False
name: "Shop Door"
device_class: door
filters:
- delayed_on: 100ms
status_led:
pin:
number: GPIO02
inverted: True
switch:
- platform: restart
name: "Restart Garage Door ESPHome"