Dallas Component replaced by "one_wire"

I very rarely update ESPHome devices. I think the last update I did on any of them before now was over 9 months ago. I just recently updated everything to the latest version.

What I do is validate the code before installing the updated firmware on the device. That will (should…?) give you an error if there is a problem. Then you know to look at the thing that the error points you to.

At least that’s what has historically worked for me and that’s what worked for me this time as well. It caught the OTA change and the one-wire config changes.

I checked the updated docs for those, fixed it and then it updated fine.

That and keep your eyes open in the forums as well since those kinds of things usually get some air time here as well. As this one did.

1 Like

I just installed the ESPHome legacy add-on (version 2024.5.5) and the old devices can still be edited if needed as they are. If I need to update them I move them to the new code.

1 Like

i got the same problem, i have two dallas sensor to GPIO4 , before update i was able to find the address to both sensor, now i can find the address only for one sensor, does anyone have an ideea why?

this is my code:

esphome:
name: boiler
platform: esp8266
board: esp01_1m

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

logger:
level: DEBUG # Setează nivelul de logare pe DEBUG pentru a vedea toate informațiile

api:
encryption:
key: “wxt6WQI3nxdHyoCzOtOmSOedLIYC+D15zfpWVjymZv8=”

ota:

  • platform: esphome
    password: “9a33732ad90536eb05ed3042139952c5”

one_wire:

  • platform: gpio
    pin: GPIO4 # Pinul unde ai conectat senzorii DS18B20

Define Dallas sensors

sensor:

  • platform: dallas_temp
    address: 0x4a3c01f096d9f128
    name: “Temperatura Boiler”

external_components:

captive_portal:

You only have one 1-wire sensor defined:

Also please format you post correctly for the forum in future. Use the </> button in the toolbar or do this: https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16

Thank you. This code snippet is exactly what’s needed in the release notes. Or, as you mentioned, if the change is easy and programmable (as this is), an automation or upgrade script could change all files during the upgrade.

It could, but it would have to ask first.

That is in the release notes.

ok … sorry

but i cant find the address for the second sensor.

# Example configuration entry
one_wire:
  - platform: gpio
    pin: GPIOXX

Then take a look to the LOG

https://esphome.io/components/one_wire.html#getting-sensor-ids

Don’t be silly, read the docs? Ridiculous!!