forked from XavierBerger/Solar-Router-for-ESPHome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wt32-eth01-standalone_on_off.yaml
110 lines (99 loc) · 3.22 KB
/
wt32-eth01-standalone_on_off.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# ----------------------------------------------------------------------------------------------------
# ESPHome configuration - This part depends on your hardware target
# ----------------------------------------------------------------------------------------------------
esphome:
name: wt32-eth01-2
friendly_name: wt32-eth01-2
esp32:
board: wt32-eth01
framework:
type: arduino
# Enable logging
logger:
baud_rate: 115200
level: INFO
logs:
component: ERROR
light: ERROR
http_request.arduino: ERROR
# Enable Home Assistant API
api:
encryption:
key: !secret wt32_eth01_2_api_encryption_key
# Enable over-the-air updates
ota:
- platform: esphome
password: !secret wt32_eth01_2_ota_password
# WiFi connection
# To activate WiFi :
# Uncomment this section parameters and comment RJ45 ethernet section
#wifi:
# ssid: !secret wifi_ssid
# password: !secret wifi_password
# # If you have a WiFi activity plannification, you may have to update the reboot timeout (Default: 15min)
# reboot_timeout: 24h
# Configure RJ45 ethernet
# To activate RJ45 ethernet :
# Uncomment this section parameters and comment WiFi section
ethernet:
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO18
clk_mode: GPIO0_IN
phy_addr: 1
power_pin: GPIO16
# Activate web interface
web_server:
port: 80
# ----------------------------------------------------------------------------------------------------
# Customisation
# ----------------------------------------------------------------------------------------------------
# Uncomment the following lines if you want to use the source from github
# substitutions:
# # Power meter source -----------------------------------------------------------
# # Define ip address of Power Meter (Fronius Inverter)
# power_meter_ip_address: "192.168.1.21"
#
# # LEDs -------------------------------------------------------------------------
# # Green LED is reflecting regulation status
# # Yellow LED is reflecting power meter
# green_led_pin: GPIO32
# yellow_led_pin: GPIO33
#
# # Regulator configuration ------------------------------------------------------
# # Define GPIO pin connected to mecanical relay.
# regulator_gate_pin: GPIO14
#
# packages:
# common:
# url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/
# file: solar_router/common.yaml
# refresh: 5s
# power_meter:
# url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/
# file: solar_router/power_meter_fronius.yaml
# refresh: 5s
# regulator:
# url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/
# file: solar_router/regulator_mecanical_relay.yaml
# refresh: 5s
# solar_router:
# url: https://github.com/XavierBerger/Solar-Router-for-ESPHome/
# file: solar_router/engine_on_off.yaml
# refresh: 5s
packages:
common: !include
file: solar_router/common.yaml
power_meter: !include
file: solar_router/power_meter_fronius.yaml
vars:
power_meter_ip_address: "192.168.1.21"
regulator: !include
file: solar_router/regulator_mecanical_relay.yaml
vars:
regulator_gate_pin: GPIO14
solar_router: !include
file: solar_router/engine_on_off.yaml
vars:
green_led_pin: GPIO32
yellow_led_pin: GPIO33