One_Wire Pin Conflicts

I have been using a DS18B20 on GPIO08 of a D1Mini for a long time now. The rest of the board was full so I didn’t have much choice. This worked fine under the old way but now with the One_Wire methog, the system kicks the configuration out claiming that GPIO08 is part of the flash interface.

I know on certain sensors you can allow_other_uses: true but this doesn’t work on the One_Wire system.

Any work arounds?

I don’t see gpio8 even brought out on a D1 mini. ESP8266 Pinout Reference: Which GPIO pins should you use? | Random Nerd Tutorials

Perhaps post your yaml for the old version, what you have tried to change it to, and exactly what error message you get.

GPIO8 is used for onboard flash memory, it’s forbidden to be used as anything (ok, not “literally” forbidden, but you are asking for trouble doing that):
image
Honestly, i don’t understand why these pins are even available on some boards …

Confusion between D8 and gpio8?
D1 mini doesn’t have gpio8 pin exposed.

2 Likes

Probably, but I thought it better to check. Wait for the yaml before we venture too many rabbit holes I think.

I honestly believe that it would be better to remove board specific pin mapping completely from esphome and use only Gpio definition.

1 Like

Unfortunately those pin mappings are perpetuated by manufacturers.

Of course, but we could just ignore them and use chip Gpio definitions in code.

I almost always do that.

Maybe it’s a D1 mini esp32? That one does have gpio 8 exposed, for some stupid reason. Either that or OP thinks D8 is GPIO8.

Yep I was thinking that too, but in op he wrote he was using gpio8 before successfully. So probably D8.

Yeah we really need @DWaterford to get back to us.