· 11 months ago · Oct 26, 2024, 09:40 AM
1# 26/10/2024
2# Calibrated against 1800 W Hot air blower.
3# For 20 Amp CT Clamp:
4# gain_pga: 2X
5# gain_voltage: 15118
6# gain_ct: 18833
7# For 100 Amp CT Clamp:
8# gain_pga: 2X
9# gain_voltage: 15118
10# gain_ct: 18833
11# For 100 Amp CT Clamp:
12
13esphome:
14 name: "meterbox"
15 friendly_name: Meterbox
16
17esp32:
18 board: esp32dev
19 framework:
20 type: arduino
21
22# Enable logging
23logger:
24
25# Enable Home Assistant API
26api:
27 encryption:
28 key: "ESRg66QaqKiqZTI1Zl/5kzRAoVBu4wkRiaFyNFc+mQE="
29
30ota:
31 - platform: esphome
32
33wifi:
34 ssid: !secret wifi_ssid
35 password: !secret wifi_password
36
37 # Enable fallback hotspot (captive portal) in case wifi connection fails
38 ap:
39 ssid: "meterbox"
40 password: "2OXIbYoVYti8"
41
42captive_portal:
43
44spi:
45 clk_pin: 18
46 miso_pin: 19
47 mosi_pin: 23
48
49sensor:
50 - platform: atm90e32
51 cs_pin: 5
52 id: chip1 #Optional
53 phase_a:
54 voltage:
55 name: "Line Voltage Sub House"
56 current:
57 name: "Current Sub House"
58 power:
59 name: "Active Power Sub House"
60 gain_voltage: 15118
61 gain_ct: 30614
62 # phase_b: # This CT-Clamp is connected, but the circuit from the RCD does not appear to be connected to anything!
63 # current: # See note on phone.
64 # name: "Current 15A GPO"
65 # power:
66 # name: "Active Power 15A GPO"
67 # gain_voltage: 15188
68 # gain_ct: 18833
69 phase_c: # This is RCD marked "Power". It's wired to top GPO in meter box and the GPOs in the north garden.
70 current:
71 name: "Current North Garden and Meter Box GPO"
72 power:
73 name: "Active Power North Garden and Meter Box GPO"
74 gain_voltage: 15118
75 gain_ct: 18833
76 # frequency:
77 # name: "EMON Line Frequency"
78 line_frequency: 50Hz
79 current_phases: 3
80 gain_pga: 2X
81 update_interval: 2s
82 enable_offset_calibration: True
83
84 - platform: atm90e32
85 cs_pin: 4
86 id: chip2 #Optional
87 phase_a: # This is the CB marked "Main Switch". It should be total current to/from the grid.
88 voltage:
89 name: "Voltage Grid"
90 current:
91 name: "Current Grid"
92 power:
93 name: "Active Power Grid"
94 forward_active_energy:
95 name: Energy from grid
96 reverse_active_energy:
97 name: Energy to grid
98 gain_voltage: 15118
99 gain_ct: 30614
100 # phase_b:
101 # current:
102 # name: "EMON CT5 Current"
103 # power:
104 # name: "EMON Active Power CT5"
105 # gain_voltage: 15118
106 # gain_ct: 18833
107 # phase_c:
108 # current:
109 # name: "EMON CT6 Current"
110 # power:
111 # name: "EMON Active Power CT6"
112 # gain_voltage: 15118
113 # gain_ct: 18833
114 # frequency:
115 # name: "EMON Line Frequency-2"
116 line_frequency: 50Hz
117 current_phases: 3
118 gain_pga: 2X
119 update_interval: 2s
120 enable_offset_calibration: True
121
122button:
123 - platform: atm90e32
124 id: chip1
125 run_offset_calibration:
126 name: "Chip1 - Run Offset Calibration"
127 clear_offset_calibration:
128 name: "Chip1 - Clear Offset Calibration"
129
130 # - platform: atm90e32
131 # id: chip2
132 # run_offset_calibration:
133 # name: "Chip2 - Run Offset Calibration"
134 # clear_offset_calibration:
135 # name: "Chip2 - Clear Offset Calibration"
136
137
138