02-05-2025, 08:19 PM
My module (KC868-A) is connected via ethernet and I want it to be an access point via WiFi. How to set up a configuration file in esp home in home assistance ?
(02-06-2025, 01:38 AM)admin Wrote: [ -> ]https://esphome.io/components/captive_portal.htmlWhen I use WiFi and Ethernet at the same time I get an error: Component ethernet cannot be used together with component wifi.
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:
(02-06-2025, 01:38 AM)admin Wrote: [ -> ]https://esphome.io/components/captive_portal.html
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:
(02-06-2025, 07:42 AM)admin Wrote: [ -> ]yes, ethernet and wifi can't work at the same time via esphome.
if you MUST want to use ethernet . i suggest you download KCS firmware, so that ethernet and wifi can work at the same time.
(02-06-2025, 08:45 AM)admin Wrote: [ -> ]if use KCS firmware, let board integrate to home assistant by MQTT, not by ESPHome.