What I’ve used:
DS18B20 Sensor (buy at this link – Buy the version with the adapter shield)
ESP8266 D1 Mini (buy at this link)
3 dupont cables
ESPHOME Code
esphome:
name: testing-esp8266
friendly_name: Testing Esp8266
esp8266:
board: d1_mini
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "YOUR-KEY"
ota:
- platform: esphome
password: "YOUR-PASSWORD"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp8266 Fallback Hotspot"
password: "YOUR-PASSWORD"
captive_portal:
one_wire:
- platform: gpio
pin: D3
sensor:
- platform: dallas_temp
address: 0xbe4642569c84a21f #Change with the address of your sensor.
name: temperature
update_interval: 60s