1
0
add https://github.com/esphome/home-assistant-addon.git
search ESPHome
Install ESPHome addon
name your configuration
enter your wireless network settings
esphome:
name: ultrasonic-sensor
platform: ESP8266
board: d1_mini_pro
wifi:
ssid: 'YOUR_SSID'
password: 'YOUR_PASSWORD'
# Enable logging
logger:
# Enable Home Assistant API
api:
# Enable over-the-air updates
ota:
sensor:
- platform: ultrasonic
trigger_pin: D1
echo_pin: D2
name: 'My Ultrasonic Sensor'
update_interval: 1s
accuracy_decimals: 2
unit_of_measurement: cm