Binary_sensor D1 mini at boot

Using an D1 mini, I’ve connected a vibration sensor as a binary_sensor which is functional well only if I connect the DO (sensor data out) to the D1 mini pin after boot. If I boot the D1 mini with all the pins connected it doesn’t connect to ESPHOME



Code below / I would really appreciate the help

esphome:
  name: washer_dryer
  platform: ESP8266
  board: d1_mini

wifi:
  ssid: "masked"
  password: "masked"

captive_portal:

logger:

api:

ota:

web_server:
  port: 80

time:
  - platform: sntp
    id: washer_dryer_d1mini_time

sensor:
  - platform: uptime
    name: "Uptime washer dryer D1 Mini"
  - platform: wifi_signal
    name: "WiFi Signal at washer dryer"
    update_interval: 60s

binary_sensor:
  - platform: gpio
    name: "Washer"
    id: "Washer"
    device_class: vibration
    pin: 
      number: D3
      mode: INPUT_PULLUP
  - platform: gpio
    name: "Dryer"
    id: "Dryer"
    device_class: vibration
    pin: 
      number: D4
      mode: INPUT_PULLUP

Please format your code.

However I think the main issue here is that D3 (GPIO0) being low at boot causes a reset / boot loop. Use a different input on the Wemos.

See here (scroll down to the Wemos D1 mini and also down further for a nice table of pins and the options you have for each) for pin usage:

1 Like

@sparkydave Thanks Dave, Moved GPIOs to D6 & D7 - that fixed it!