Skip to content

Commit 215b525

Browse files
Merge pull request #89 from ApolloAutomation/beta
Release 26.3.2.1 - New sensors, ESPHome modernisation, and bug fixes
2 parents 6637a0c + 20cc32c commit 215b525

6 files changed

Lines changed: 65 additions & 25 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: ApolloAutomation/Workflows/.github/workflows/label-check.yml@main
1717

1818
ci:
19-
name: Building ${{ matrix.file }}
19+
name: Building ${{ matrix.file }} / ESPHome ${{ matrix.esphome-version }} / ESPHome ${{ matrix.esphome-version }}
2020
runs-on: ubuntu-latest
2121
strategy:
2222
matrix:

.github/workflows/weekly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
build:
9-
name: Building ${{ matrix.file }}
9+
name: Building ${{ matrix.file }} / ESPHome ${{ matrix.esphome-version }} / ESPHome ${{ matrix.esphome-version }}
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:

Integrations/ESPHome/AIR-1.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ esphome:
33
friendly_name: Apollo AIR-1
44
comment: Apollo AIR-1
55
name_add_mac_suffix: true
6-
platformio_options:
7-
board_build.flash_mode: dio
8-
96
project:
107
name: "ApolloAutomation.AIR-1"
118
version: "${version}"
@@ -14,6 +11,9 @@ esphome:
1411
on_boot:
1512
priority: 500
1613
then:
14+
- text_sensor.template.publish:
15+
id: apollo_firmware_version
16+
state: "${version}"
1717
- lambda: |-
1818
id(deep_sleep_1).set_sleep_duration(id(deep_sleep_sleep_duration).state * 60 * 1000);
1919
- if:

Integrations/ESPHome/AIR-1_BLE.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ esphome:
33
friendly_name: Apollo AIR-1
44
comment: Apollo AIR-1
55
name_add_mac_suffix: true
6-
platformio_options:
7-
board_build.flash_mode: dio
8-
96
project:
107
name: "ApolloAutomation.AIR-1"
118
version: "${version}"

Integrations/ESPHome/AIR-1_Factory.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ esphome:
33
friendly_name: Apollo AIR-1
44
comment: Apollo AIR-1 Factory
55
name_add_mac_suffix: true
6-
platformio_options:
7-
board_build.flash_mode: dio
8-
96
project:
107
name: "ApolloAutomation.AIR-1"
118
version: "${version}"
@@ -52,11 +49,6 @@ esp32_improv:
5249
authorizer: none
5350

5451
wifi:
55-
on_connect:
56-
- delay: 5s
57-
- ble.disable:
58-
on_disconnect:
59-
- ble.enable:
6052
ap:
6153
ssid: "Apollo AIR1 Hotspot"
6254

Integrations/ESPHome/Core.yaml

Lines changed: 60 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
substitutions:
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

66
esp32:
7-
board: esp32-c3-devkitm-1
7+
variant: esp32c3
8+
flash_size: 4MB
89
framework:
910
type: esp-idf
1011

@@ -25,16 +26,16 @@ api:
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

4445
web_server:
4546
port: 80
47+
version: 3
4648

4749
globals:
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

324360
light:
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+
393444
switch:
394445
- platform: factory_reset
395446
id: factory_reset_switch

0 commit comments

Comments
 (0)