Files
fresh-home/esphome/common/ethernet.yaml
T

21 lines
472 B
YAML

ethernet:
id: eth
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO18
clk:
pin: GPIO17
mode: CLK_OUT
power_pin: GPIO5
phy_addr: 0
manual_ip:
static_ip: ${static_ip}
gateway: !secret iot_default_gateway
subnet: !secret iot_subnet_mask
dns1: !secret iot_default_dns1
dns2: !secret iot_default_dns2
text_sensor:
- <<: !include text_sensor/ethernet_ip_address.config.yaml
- <<: !include text_sensor/ethernet_mac_address.config.yaml