Hey
I got a very strange problem.
I have a NodeMCU that I have installed this code on:
esphome:
name: garage-sensors
platform: ESP8266
board: nodemcuv2
wifi:
ssid: !secret ssid_garage
password: !secret wifi_password
logger:
ota:
api:
binary_sensor:
- platform: gpio
pin:
number: D1
mode: INPUT_PULLUP
name: "Garage Door"
device_class: door
- platform: gpio
pin:
number: D2
mode: INPUT_PULLUP
name: "Garage Port"
device_class: garage_door
sensor:
- platform: dht
pin: D8 #Change this to any D-pin without pulled high
model: DHT22
temperature:
name: "Garage Temperatur"
humidity:
name: "Garage Fuktighet"
update_interval: 60s
I have connected two door-sensors and they work. Connected a DHT22 and it worked. Temperture and humidity came into HA, also my doorsensors working.
Then I removed the powersupply and plugged it in again (same powersupply, different location) and it wont come online again. My power supply is an apple mobilcharger 5v 1A. No problem with WiFi.
I didnt change any code after removing powersupply.
I have my NodeMCU on a board and can remove it so I removed it from the board (where all my wiring, resistor and more is located) and plugged it back to the powersupply. It came online.
With powercabel still attached to NodeMCU I put it on the board again and DHT and doorsensors are working. Removed powersupply and after a while put it back in again. It wont come online.
WHY???
I have soldered like this pic with a 4.7K resistor (my pin for data is D8)