forked from mhendriks/esphome-p1
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathesp32-c3-w5500.yaml
59 lines (49 loc) · 891 Bytes
/
esp32-c3-w5500.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
esphome:
name: "esp32-c3-w5500"
friendly_name: ESPHome C3 Ethernet W5500
platformio_options:
board_build.flash_mode: dio
board_build.mcu: esp32c3
board_build.f_cpu: 160000000L
esp32:
board: esp32-c3-devkitm-1
framework:
type: arduino
# Enable logging
logger:
baud_rate: 0
# MQTT
mqtt:
broker: 192.168.0.2
username: ****
password: ****
topic_prefix: esp32-c3-w5500
ota:
web_server:
port: 80
external_components:
- source: github://BOlaerts/esphome@main
components: [ethernet]
refresh: 0s
ethernet:
type: W5500
cs_pin: 0
clk_pin: 1
mosi_pin: 2
miso_pin: 3
interrupt_pin: 4
clock_speed: 25
i2c:
sda: 6
scl: 7
scan: true
id: bus_a
switch:
# Switch to restart
- platform: restart
name: "ESP32C3 Restart"
sensor:
- platform: bh1750
name: "BH1750 Illuminance"
address: 0x23
update_interval: 5s