Disable WiFI on ESPHome

Hi.
I’m trying to configure my LILYGO TTGO T-Internet-POE ESP32-WROOM LAN8270A with ethernet and inside Home Assistant. For this reason, I’ve added needed code to yaml file:

ethernet:
>   type: LAN8720
>   mdc_pin: GPIO23
>   mdio_pin: GPIO18
>   clk_mode: GPIO17_OUT 
>   phy_addr: 0

but when I try to install I see this:
image

Any idea?

have you left the wifi: in your config ?

As stated in the error message and also in ESPHome documentation you can’t use Wifi and Ethernet in same time ! You have to make a choice :frowning: (It’s a restriction of ESPHome not of the ESP chip itself for info !

Yes, just thought you might have WiFi in your config, as that’s what the error is stating. You could post your whole config and I’ll compare it with my working ones ?

Hi Holdestmade, thanks for your reply.
This is my configuration:

substitutions:
  name: esp32-bluetooth-proxy-5f7de4
packages:
  esphome.bluetooth-proxy: github://esphome/bluetooth-proxies/esp32-generic.yaml@main
esphome:
  name: ${name}
  name_add_mac_suffix: false

ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0

Any idea?

OK so you are using the wrong package github page, thats for a generic esp32 (see the yaml, it has wifi in it)

Try this one:

substitutions:
  name: esp32-bluetooth-proxy-5f7de4
packages:
  esphome.bluetooth-proxy: github.com/esphome/bluetooth-proxies/blob/8fbe822274d69b8e14f07e0eb45d508790a3333a/lilygo-t-eth-poe.yaml
esphome:
  name: ${name}
  name_add_mac_suffix: false

ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0

Or you could just copy the code in that github page and paste to your yaml and remove the package reference

Sorry.
I haven’t understood the difference from the first and the second yaml file.

The yaml is different in the package ref

I’ve installed both but only the first seems to works fine.
Thanks.

Excellent, no probs