Connecting to 1-Wire

I am trying to connect my 1-Wire network (which has a number of DS18B20 temperature sensors, plus a few other devices) to HA. I gave up trying to connect via a 1-Wire to I2C adapter, and via a DS9490R. I have a D1 Mini Pro board with ESPhome loaded onto it. I hope that it is communicating with HA via WiFi. If in HA I go to Settings/Devices and Services/ESPhome, I see 1-Wire Di Mini Pro as a device. It has 1 entity, update.1_wire_d1_mini_pro_firmware. If I click this it says “This entity is no longer being provided by the esphome integration. If the entity is no longer in use, delete it in settings”. What am I doing wrong? How do I get HA to talk to the 1-Wire bus and connect to the DS18B20s on it?

Thank you - Rowan

Properly formatted ESPhome YAML, please.

1 Like

Sorry for my ignorance - how do I access this YAML file?

Thank you - Rowan

Oh, looks like you only have a vague idea of what ESPHome is, do you?
It’s not a monolithic do-it-all firmware like tasmota. You have to configure the firmware through YAML configuration file, build it to create the firmware, then install it on the ESP.

Not sure how you got it, but I guess you didn’t install ESPHome on it yourself…

This seems to be my YAML for the 1-Wire interface:

esphome:
name: 1-wire-d1-mini-pro
friendly_name: 1-Wire D1 Mini Pro

esp8266:
board: esp01_1m

Enable logging

logger:

Enable Home Assistant API

api:
encryption:
key: “u+1W4xk0WG5V5Pjjrh/6Cqxy8tdn3rR9437SPJ+DRBk=”

ota:
password: “831139a5131d5fe756d7ec1e2f2ffb8c”

wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password

Enable fallback hotspot (captive portal) in case wifi connection fails

ap:
ssid: “1-Wire-D1-Mini-Pro”
password: “in39q5nUQ4c8”

captive_portal:

Please have a look at the esphome documentation for Dallas sensors.

Did you get it figured out? Also, please, please, please use proper code formatting. You use 3x ``` above your code and 3 at the end of your code block. That really helps us be able to help you.

1 Like

Is the YAML file that I have to modify in the RPi, or in the ESP? In each case, how do I acess the file and open it for editing?

Thank you - Rowan

Its on the esp. The esp is a microcontroller and runs independently of the rpi or HA. You access it through esphome by editing the node.



This isnt the only way and there are many ways but, this is arguably the easiest for newcomers. I would suggest using this method at first and then once you understand the basics then try other ways.