11packages :
2- minimal : !include minimal.yaml
2+ minimal : !include minimal.yaml
33
44esphome :
55 on_boot :
66 priority : 300
77 then :
8- # Signal to the template switches that their initial values have been loaded
8+ # Signal to the template switches that their initial values have been loaded
99 - lambda : |
1010 if (id(voltage_multiply) <= 0) id(voltage_multiply) = 0.3;
1111 if (id(power_multiply) <= 0) id(power_multiply) = 0.133;
1818 power_save_mode : high
1919
2020network :
21- enable_ipv6 : true
21+ enable_ipv6 : true
2222
2323time :
2424 - platform : homeassistant
@@ -76,7 +76,7 @@ globals:
7676 type : bool
7777 restore_value : no
7878 initial_value : " false"
79-
79+
8080binary_sensor :
8181 # Push Button (Toggles Relay When Pressed)
8282 - platform : gpio
@@ -123,7 +123,7 @@ switch:
123123 light.turn_on : led
124124 on_turn_off :
125125 - light.turn_off : led
126-
126+
127127 - platform : template
128128 name : " Disable LED"
129129 id : disable_led
@@ -135,31 +135,31 @@ switch:
135135 condition :
136136 lambda : ' return id(setupComplete) == true;'
137137 then :
138- # Flash twice
139- - light.turn_off : led
140- - delay : 0.15s
141- - light.turn_on : led
142- - delay : 0.15s
143- - light.turn_off : led
144- - delay : 0.15s
145- - light.turn_on : led
146- - delay : 0.15s
138+ # Flash twice
139+ - light.turn_off : led
140+ - delay : 0.15s
141+ - light.turn_on : led
142+ - delay : 0.15s
143+ - light.turn_off : led
144+ - delay : 0.15s
145+ - light.turn_on : led
146+ - delay : 0.15s
147147 # Final state
148148 - light.turn_off : led
149149 on_turn_off :
150150 - if :
151151 condition :
152152 lambda : ' return id(setupComplete) == true;'
153153 then :
154- # Flash twice
155- - light.turn_on : led
156- - delay : 0.15s
157- - light.turn_off : led
158- - delay : 0.15s
159- - light.turn_on : led
160- - delay : 0.15s
161- - light.turn_off : led
162- - delay : 1s
154+ # Flash twice
155+ - light.turn_on : led
156+ - delay : 0.15s
157+ - light.turn_off : led
158+ - delay : 0.15s
159+ - light.turn_on : led
160+ - delay : 0.15s
161+ - light.turn_off : led
162+ - delay : 1s
163163 # Final state
164164 - if :
165165 condition :
@@ -178,19 +178,19 @@ switch:
178178 condition :
179179 lambda : ' return id(setupComplete) == true;'
180180 then :
181- # Flash thrice
182- - light.turn_off : led
183- - delay : 0.15s
184- - light.turn_on : led
185- - delay : 0.15s
186- - light.turn_off : led
187- - delay : 0.15s
188- - light.turn_on : led
189- - delay : 0.15s
190- - light.turn_off : led
191- - delay : 0.15s
192- - light.turn_on : led
193- - delay : 0.15s
181+ # Flash thrice
182+ - light.turn_off : led
183+ - delay : 0.15s
184+ - light.turn_on : led
185+ - delay : 0.15s
186+ - light.turn_off : led
187+ - delay : 0.15s
188+ - light.turn_on : led
189+ - delay : 0.15s
190+ - light.turn_off : led
191+ - delay : 0.15s
192+ - light.turn_on : led
193+ - delay : 0.15s
194194 # Final state
195195 - if :
196196 condition :
@@ -204,19 +204,19 @@ switch:
204204 condition :
205205 lambda : ' return id(setupComplete) == true;'
206206 then :
207- # Flash thrice
208- - light.turn_on : led
209- - delay : 0.15s
210- - light.turn_off : led
211- - delay : 0.15s
212- - light.turn_on : led
213- - delay : 0.15s
214- - light.turn_off : led
215- - delay : 0.15s
216- - light.turn_on : led
217- - delay : 0.15s
218- - light.turn_off : led
219- - delay : 1s
207+ # Flash thrice
208+ - light.turn_on : led
209+ - delay : 0.15s
210+ - light.turn_off : led
211+ - delay : 0.15s
212+ - light.turn_on : led
213+ - delay : 0.15s
214+ - light.turn_off : led
215+ - delay : 0.15s
216+ - light.turn_on : led
217+ - delay : 0.15s
218+ - light.turn_off : led
219+ - delay : 1s
220220 # Final state
221221 - if :
222222 condition :
@@ -240,31 +240,31 @@ sensor:
240240 cf_pin : GPIO4
241241 cf1_pin : GPIO5
242242 update_interval : 10s
243-
243+
244244 voltage :
245245 name : " Voltage"
246246 id : voltage
247247 unit_of_measurement : V
248248 accuracy_decimals : 1
249249 filters :
250250 - lambda : return x * id(voltage_multiply);
251-
251+
252252 power :
253253 name : " Power"
254254 id : power
255255 unit_of_measurement : W
256256 accuracy_decimals : 0
257257 filters :
258258 - lambda : return x * id(power_multiply);
259-
259+
260260 current :
261261 name : " Current"
262262 id : current
263263 unit_of_measurement : A
264264 accuracy_decimals : 3
265265 filters :
266266 - lambda : return x * id(current_multiply);
267-
267+
268268 # Total daily energy sensor
269269 - platform : total_daily_energy
270270 name : " Daily Energy"
0 commit comments