From 7b95f6eba20dbfc254796193f0bc1923f8db0421 Mon Sep 17 00:00:00 2001 From: maralorn Date: Fri, 2 Dec 2022 01:22:39 +0100 Subject: [PATCH] Try wt32-eth01 --- esphome/devices/.gitignore | 6 +++++- esphome/devices/b27a0c.yaml | 5 +++++ esphome/includes/base.yaml | 5 ----- esphome/includes/d1_mini.yaml | 5 +++++ esphome/includes/wt32-eth01.yaml | 11 +++++++++++ 5 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 esphome/devices/b27a0c.yaml create mode 100644 esphome/includes/wt32-eth01.yaml diff --git a/esphome/devices/.gitignore b/esphome/devices/.gitignore index d45d249b..d8b4157a 100644 --- a/esphome/devices/.gitignore +++ b/esphome/devices/.gitignore @@ -1 +1,5 @@ -.esphome/ +# Gitignore settings for ESPHome +# This is an example and may include too much for your use-case. +# You can modify this file to suit your needs. +/.esphome/ +/secrets.yaml diff --git a/esphome/devices/b27a0c.yaml b/esphome/devices/b27a0c.yaml new file mode 100644 index 00000000..59b5176f --- /dev/null +++ b/esphome/devices/b27a0c.yaml @@ -0,0 +1,5 @@ +substitutions: + macsuffix: b27a0c + +<<: !include ../includes/wt32-eth01.yaml +<<: !include ../includes/base.yaml diff --git a/esphome/includes/base.yaml b/esphome/includes/base.yaml index 46a50e83..ff0c0ac2 100644 --- a/esphome/includes/base.yaml +++ b/esphome/includes/base.yaml @@ -22,9 +22,6 @@ ota: web_server: port: 80 -# https://esphome.io/components/captive_portal.html -captive_portal: - # https://esphome.io/components/time.html time: - platform: sntp @@ -37,5 +34,3 @@ text_sensor: # https://esphome.io/components/text_sensor/version.html - platform: version name: "${macsuffix}_version" - -wifi: !include ../../private/esphome-wifi.yaml \ No newline at end of file diff --git a/esphome/includes/d1_mini.yaml b/esphome/includes/d1_mini.yaml index f33d11d6..e34be0d6 100644 --- a/esphome/includes/d1_mini.yaml +++ b/esphome/includes/d1_mini.yaml @@ -1,6 +1,9 @@ esp8266: board: d1_mini +# https://esphome.io/components/captive_portal.html +captive_portal: + i2c: # default: sda: GPIO4 # default: scl: GPIO5 @@ -23,3 +26,5 @@ output: pin: number: GPIO2 inverted: true + +wifi: !include ../../private/esphome-wifi.yaml \ No newline at end of file diff --git a/esphome/includes/wt32-eth01.yaml b/esphome/includes/wt32-eth01.yaml new file mode 100644 index 00000000..2719ad40 --- /dev/null +++ b/esphome/includes/wt32-eth01.yaml @@ -0,0 +1,11 @@ +esp32: + board: esp32dev + variant: esp32 + +ethernet: + type: LAN8720 + mdc_pin: GPIO23 + mdio_pin: GPIO18 + clk_mode: GPIO0_IN + phy_addr: 1 + power_pin: GPIO16