11substitutions :
22 name : apollo-air-1
3- version : " 25.8.6 .1"
3+ version : " 26.3.2 .1"
44 device_description : ${name} made by Apollo Automation - version ${version}.
55
66esp32 :
7- board : esp32-c3-devkitm-1
7+ variant : esp32c3
8+ flash_size : 4MB
89 framework :
910 type : esp-idf
1011
2526 id(reportAllValues).execute();
2627 - deep_sleep.enter :
2728 id : deep_sleep_1
28- services :
29- # Co2 Calibration Service
30- - service : calibrate_co2_value
29+ actions :
30+ # Co2 Calibration Action
31+ - action : calibrate_co2_value
3132 variables :
3233 co2_ppm : float
3334 then :
3435 - scd4x.perform_forced_calibration :
3536 value : !lambda "return co2_ppm;"
3637 id : scd40
37- - service : sen55_clean
38+ - action : sen55_clean
3839 then :
3940 - sen5x.start_fan_autoclean : sen55
4041 reboot_timeout : 0s
@@ -43,6 +44,7 @@ captive_portal:
4344
4445web_server :
4546 port : 80
47+ version : 3
4648
4749globals :
4850 - id : cycleCounter
@@ -104,7 +106,21 @@ number:
104106 update_interval : never
105107 step : 0.1
106108 mode : box
107-
109+ - platform : template
110+ name : " DPS310 Pressure Offset"
111+ id : dps310_pressure_offset
112+ disabled_by_default : true
113+ restore_value : true
114+ initial_value : 0.0
115+ min_value : -100.0
116+ max_value : 100.0
117+ entity_category : " CONFIG"
118+ unit_of_measurement : " hPa"
119+ optimistic : true
120+ update_interval : never
121+ step : 0.1
122+ mode : box
123+
108124 - platform : template
109125 name : " Sleep Duration"
110126 id : deep_sleep_sleep_duration
@@ -212,6 +228,10 @@ sensor:
212228 pressure :
213229 name : " DPS310 Pressure"
214230 id : dps310pressure
231+ filters :
232+ - lambda : |-
233+ float offset = id(dps310_pressure_offset).state;
234+ return isnan(offset) ? x : x + offset;
215235 temperature :
216236 id : dps310temperature
217237 update_interval : 30s
@@ -237,11 +257,13 @@ sensor:
237257 accuracy_decimals : 1
238258 temperature :
239259 name : " SEN55 Temperature"
240- accuracy_decimals : 1
260+ id : sen55_temperature
241261 filters :
242262 - lambda : return x - id(sen55_temperature_offset).state;
263+ accuracy_decimals : 1
243264 humidity :
244265 name : " SEN55 Humidity"
266+ id : sen55_humidity
245267 filters :
246268 - lambda : return x - id(sen55_humidity_offset).state;
247269 accuracy_decimals : 1
@@ -305,21 +327,35 @@ sensor:
305327 icon : mdi:air-filter
306328 update_interval : 10s
307329
330+ - platform : aqi
331+ name : " NowCast AQI"
332+ id : nowcast_aqi
333+ pm_2_5 : pm_2_5
334+ pm_10_0 : pm_10_0
335+ calculation_type : AQI
336+ device_class : aqi
337+
308338 - platform : mics_4514
309339 id : mics4514
310340 nitrogen_dioxide :
311341 name : Nitrogen Dioxide
342+ id : nitrogen_dioxide
312343 carbon_monoxide :
313344 name : Carbon Monoxide
345+ id : carbon_monoxide
314346 hydrogen :
315347 name : Hydrogen
348+ id : hydrogen
316349 ethanol :
317350 name : Ethanol
351+ id : ethanol
318352 methane :
319353 name : Methane
354+ id : methane
320355 ammonia :
321356 name : Ammonia
322- update_interval : 10s
357+ id : ammonia
358+ update_interval : 60s
323359
324360light :
325361 - platform : esp32_rmt_led_strip
@@ -390,6 +426,21 @@ text_sensor:
390426 else {
391427 return std::string("Unknown");}
392428
429+ - platform : wifi_info
430+ ip_address :
431+ name : " IP Address"
432+ id : wifi_ip
433+ entity_category : " diagnostic"
434+ - platform : version
435+ name : " ESPHome Version"
436+ hide_timestamp : true
437+ entity_category : " diagnostic"
438+ - platform : template
439+ name : " Apollo Firmware Version"
440+ id : apollo_firmware_version
441+ update_interval : never
442+ entity_category : " diagnostic"
443+
393444switch :
394445 - platform : factory_reset
395446 id : factory_reset_switch
0 commit comments