-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathwt32-eth01-standalone_triac.yaml
95 lines (80 loc) · 2.71 KB
/
wt32-eth01-standalone_triac.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
# ----------------------------------------------------------------------------------------------------
# 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
# ----------------------------------------------------------------------------------------------------
# This part of the script is designed to be use for customisation. It shouldn't be necessary to
# edit other part of the script to perform configuration.
substitutions:
# Power meter source -----------------------------------------------------------
# Define ip address of Power Meter (Fronius Inverter)
power_meter_ip_address: "192.168.1.21"
# Regulator configuration
# Define GPIO pin connected to AC Dimmer for gate and zero crossing detection.
regulator_gate_pin: GPIO17 # TXD
regulator_zero_crossing_pin: GPIO39
# LEDs -------------------------------------------------------------------------
# Green LED is reflecting regulation status
# Yellow LED is reflecting power meter status
green_led_pin: GPIO32 # CFG
yellow_led_pin: GPIO14
# Temperature sensor
DS18B20_pin: GPIO02
temperature_update_interval: 1s
red_led_pin: GPIO4
packages:
common:
<<: !include solar_router/common.yaml
power_meter:
<<: !include solar_router/power_meter_fronius.yaml
regulator:
<<: !include solar_router/regulator_triac.yaml
solar_router:
<<: !include solar_router/engine.yaml
temperature_limiter:
<<: !include solar_router/temperature_limiter_DS18B20.yaml