02-06-2025, 07:21 AM
(02-06-2025, 01:38 AM)admin Wrote: https://esphome.io/components/captive_portal.html
When I use WiFi and Ethernet at the same time I get an error. Component ethernet cannot be used together with component wifi.
Here is my code
Help me plaese
Code:
esphome:
name: esp-garage
platform: ESP32
board: esp32dev
wifi:
ap:
ssid: "ESP32_garage"
password: "123456789"
# Example configuration entry
ethernet:
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO18
clk_mode: GPIO17_OUT
phy_addr: 0
# Optional manual IP
manual_ip:
static_ip: 192.168.1.199
gateway: 192.168.1.1
subnet: 255.255.255.0
# Example configuration entry for ESP32
i2c:
sda: 4
scl: 5
scan: true
id: bus_a
# Example configuration entry
pcf8574:
- id: 'pcf8574_hub'
address: 0x24
# Individual outputs
switch:
- platform: gpio
name: "light1"
pin:
pcf8574: pcf8574_hub
# Use pin number 0
number: 0
# One of INPUT or OUTPUT
mode: OUTPUT
inverted: false
# Enable logging
logger:
# Enable Home Assistant API
api: