Smart Home Automation Forum
error on compling - ethenet - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-A2 (https://www.kincony.com/forum/forumdisplay.php?fid=43)
+--- Thread: error on compling - ethenet (/showthread.php?tid=6885)



error on compling - ethenet - DaddyLee76 - 10-17-2024

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


RE: error on compling - ethenet - admin - 10-17-2024

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