-
Notifications
You must be signed in to change notification settings - Fork 1
/
pzem-3x-test-1.yaml
169 lines (132 loc) · 3.41 KB
/
pzem-3x-test-1.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
#------------------------------
#-- pzem-3x-test-1.yaml
#-- Petits tests d2 3x modules power-meter PZEM-004T V3
#-- ATTENTION: il faut leur changer l'adresse AVANT et tous les brancher en // !
#-- zf210817.0804, zf220627.1124, zf230928.1858, zf240718.1137
#--
# sources:
# https://esphome.io/components/sensor/pzemac.html
# https://docs.google.com/document/d/1GOp2zN0aFk80cv2Hz6DmlEwY84OPwVK38da-KSO77zw/edit#heading=h.two47z8b310i
esphome:
name: pzem-3x-test-1
platform: ESP8266
board: d1_mini
# Configuration WIFI
wifi:
ssid: !secret wifi_ssid_apzuzu1
password: !secret wifi_pass_apzuzu1
reboot_timeout: 30min
# use_address: 1w_th_solar.local
# networks:
# - ssid: !secret wifi_ssid_apzuzu7
# - password: !secret wifi_pass_apzuzu7
# - ssid: !secret wifi_ssid_apzuzu6
# - password: !secret wifi_pass_apzuzu6
# - ssid: !secret wifi_ssid_3G_zf
# - password: !secret wifi_pass_3G_zf2
# - ssid: !secret wifi_ssid_3G_zf2
# - password: !secret wifi_pass_3G_zf2
# - ssid: !secret wifi_ssid_3g_s7
# - password: !secret wifi_pass_3g_s7
# - ssid: !secret wifi_ssid_apzuzu6_EXT
# - password: !secret wifi_pass_apzuzu6_EXT
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "ow-th-solar Fallback Hotspot"
password: !secret ap_wifi_password
captive_portal:
# Enable logging
logger:
level: INFO
esp8266_store_log_strings_in_flash: false
# Enable Home Assistant API
api:
# password: !secret api_password
encryption:
key: !secret api_encryption_key
reboot_timeout: 60min
# Enable OTA
ota:
- platform: esphome
password: !secret ota_password
# WEB Server
web_server:
port: 80
# Définition des Switch's
switch:
- platform: gpio
name: "pzem-3x-test-1 LED"
inverted: True
id: led
pin: D4
- platform: restart
name: "pzem-3x-test-1 Restart"
# Définitions des texts sensors
text_sensor:
- platform: version
name: "pzem-3x-test-1 Version"
- platform: wifi_info
ip_address:
name: "pzem-3x-test-1 IP Address"
id: wifi_ip
ssid:
name: "pzem-3x-test-1 Connected SSID"
id: wifi_ssid
# Définitions des Sensors
sensor:
- platform: wifi_signal
name: "pzem-3x-test-1 Signal Wi-Fi"
update_interval: 60s
- platform: uptime
name: "pzem-3x-test-1 Uptime"
update_interval: 15s
- platform: pzemac
address: 1
current:
name: "PZEM-L1 Current"
voltage:
name: "PZEM-L1 Voltage"
energy:
name: "PZEM-L1 Energy"
power:
name: "PZEM-L1 Power"
frequency:
name: "PZEM-L1 Frequency"
power_factor:
name: "PZEM-L1 Power Factor"
update_interval: 16s
- platform: pzemac
address: 2
current:
name: "PZEM-L2 Current"
voltage:
name: "PZEM-L2 Voltage"
energy:
name: "PZEM-L2 Energy"
power:
name: "PZEM-L2 Power"
frequency:
name: "PZEM-L2 Frequency"
power_factor:
name: "PZEM-L2 Power Factor"
update_interval: 15s
- platform: pzemac
address: 3
current:
name: "PZEM-L3 Current"
voltage:
name: "PZEM-L3 Voltage"
energy:
name: "PZEM-L3 Energy"
power:
name: "PZEM-L3 Power"
frequency:
name: "PZEM-L3 Frequency"
power_factor:
name: "PZEM-L3 Power Factor"
update_interval: 14s
uart:
rx_pin: D1 #GPIO5 TX du PZEM
tx_pin: D2 #GPIO4 RX du PZEM
baud_rate: 9600
modbus: