geerlingguy/pico-w-garage-door-sensor

Get Garage Door sensor working via ESPHome

geerlingguy opened this issue · 4 comments

As the title says. I will need to:

  • Fill in the garage-door.yml configuration so it sends the data to Home Assistant
  • Set up ESPHome integration in Home Assistant

This issue exists to track the work, document bugs along the way, and have some fun! See related upstream issue: esphome/feature-requests#1924

I'm having trouble with WiFi not connecting. I've tried two different Pico W's purchased months apart from different vendors, but get the same thing—it never connects to my home wifi network. See: esphome/feature-requests#1924 (comment)

And if I try the same code:

---
esphome:
  name: esp32-test

esp32:
  board: nodemcu-32s

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  fast_connect: true

logger:
  level: DEBUG

...but on my ESP32 device, it works fine. (To flash, I had to hold BOOT + EN at the same time while doing esphome run the first time.) Here's the output when running on ESP32:

[17:31:01][C][wifi:037]: Setting up WiFi...
[17:31:01][C][wifi:038]:   Local MAC: 10:52:1C:75:XX:XX
[17:31:01][I][wifi:260]: WiFi Connecting to 'geerling'...
[17:31:07][I][wifi:521]: WiFi Connected!
[17:31:07][C][wifi:365]:   Local MAC: 10:52:1C:75:XX:XX
[17:31:07][C][wifi:366]:   SSID: 'geerling'
[17:31:07][C][wifi:367]:   IP Address: 10.0.100.232
...

Figuring out this comment's table of results took about 2 full days of effort, lol.

But now I can at least get connected to WiFi. That means I can do fun things finally!

See also: https://github.com/mcaminiti/esphome-garage-door (includes relays, I'm not doing that though).

Screen Shot 2022-11-07 at 4 14 01 PM

Hooray!