Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error on compling - ethenet
#1
hello,

in my home I have several problems with WiFi so I'd like to connect via ethernet port.
So I adapted the code at this link to my needs.

This is this part of code i'm using
Code:
esphome:
  name: luci-2
  platform: ESP32
  board: esp32dev

# ethernet 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.0.199
# gateway: 192.168.1.1
# subnet: 255.255.255.0

web_server:
  port: 80

# Enable logging
logger:

captive_portal:

# Basic Config
i2c:
  sda: 4
  scl: 5
  scan: true
  id: bus_a

pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8
    address: 0x24

  - id: 'pcf8574_hub_in_1'  # for input channel 1-8
    address: 0x22

when I try to compile, i receive the follow error: 
C:\Users\Daddy>esphome compile c:/esphome/luci2_eth1.yaml
INFO ESPHome 2024.10.0
INFO Reading configuration c:/esphome/luci2_eth1.yaml...
INFO Unable to import component type: No module named 'esphome.components.type'
Failed config

type: [source c:/esphome/luci2_eth1.yaml:8]

  Component not found: type.
  LAN8720

Someone knows how I can solve this prolem?

many thanks
Reply
#2
if you are using KC868-A2, you can use this link of ymal file directly to test:
https://www.kincony.com/forum/showthread.php?tid=2692
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)