Install the components as listed in: esphome.io or 14core.com
For the installation just follow the steps on esphome.io
I got the case from Thingiverse and modified it a bit in PrusaSlicer and afterwards with plyers: thingiverse.com
esphome:
name: warmwasser-esp
platform: ESP8266
board: d1_mini
# Enable logging
logger:
level: DEBUG
# Enable Home Assistant API
api:
ota:
password: "ramdom-key" #some random key here
wifi:
networks:
- ssid: !secret wifi_ssid #your wifi name
password: !secret wifi_password #your wifi password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "warmwasser-esp Fallback Hotspot"
password: "password" #Wifi Password for Fallback Hotspot here
captive_portal:
web_server:
port: 80
dallas:
- pin: D4
sensor:
- platform: dallas
address: 0xc30121139944e728 #your sensor ID here
name: "warmwasser-temp"
filters:
- offset: -2.0 #optional if your sensor is off