Skip to content

Commit 8ba0de9

Browse files
authored
Merge pull request #177 from MallocArray/update_documentation
Clarify and add information about Lolin C3 Mini
2 parents f00d3ea + 3226950 commit 8ba0de9

File tree

5 files changed

+18
-15
lines changed

5 files changed

+18
-15
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AirGradient ESPHome Configurations
22

3-
ESPHome yaml files for AirGradient devices to maintain the research and accuracy of AirGradient sensors, while also gaining the benefits of ESPHome/HomeAssistant for easy to use switches, buttons, configurations, and dashboards. Maintains the ability to also send data to the AirGradient Dashboard, which can also be disabled/removed to keep all data local.
3+
ESPHome yaml files for AirGradient devices to maintain the research and accuracy of AirGradient sensors, while also gaining the benefits of ESPHome/HomeAssistant for easy to use switches, buttons, configurations, and dashboards, all controlled locally. Maintains the ability to also send data to the AirGradient Dashboard, which can also be disabled/removed to keep all data local.
44

55
<img src="image/README/1715467068556.png" width=25% height=25%>
66

@@ -26,9 +26,12 @@ List of available packages to customize your device and gain additional features
2626
* Added optional substitutions to implement batch-specific PM2.5 corrections using values provided by AirGradient
2727
[See details in the packages.md file under the PMS5003 section.](packages.md#sensor_pms5003yaml)
2828
* Restored logging to default values as it no longer repeats messages about components taking too long to complete
29+
* New package for upgrading DIY and Pro models to Lolin C3 Mini
2930

3031
## Features
3132

33+
Replacing the line that starts with `led_co2` with ` led_combo: !include packages/led_combo.yaml` enables combo LED bar. For more information, look at the Packages file.
34+
3235
Many added features can be found in HomeAssistant by going to Settings>Devices and selecting the AirGradient device. Alternatively, add `web_server:` to the config file to enable a built-in web server on the AirGradient device (Not recommended for devices based on the D1 Mini ESP8266)
3336

3437
- Compact single page display by default with all relevant sensor readings
@@ -59,7 +62,7 @@ Many added features can be found in HomeAssistant by going to Settings>Devices a
5962

6063
- Short press (Less than 1 second) - Toggle between F and C on display
6164
- Long press (More than 1 second, less than 5) - Trigger manual CO2 calibration
62-
- Leverage automation in HomeAssistant to turn on the "Blank" page and turn off all other pages to effectively disable the display output. Could also turn off the LED strip or set Brightness to 0 to eliminate output while still collecting sensor data
65+
- Leverage automation in HomeAssistant to turn on the "Blank" page to effectively disable the display output. Could also turn off the LED strip or set Brightness to 0 to eliminate output while still collecting sensor data
6366

6467
## Support me
6568

configuration.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ MQTT support has been mentioned in the AirGradient forums several times. ESPHom
6464
6565
After extensive discussion on the [AirGradient forum](https://forum.airgradient.com/t/concern-about-hijackable-wifi-connection/3845), it may be a good idea to remove the Captive Portal package after initial configuration, as leaving it in will default to enabling the Access Point Mode if WiFi is not available, potentially allowing an external source to reconfigure the device to a new network or upload another firmware file. Can also add a password to the ap if this functionality is desired, but want to secure it.
6666
67-
### Using a lolin-d3-mini in an AG Pro board
67+
### Upgrade AirGradient DIY/Pro board to ESP32-C3
6868
69-
The lolin-d3-mini has a similar enough pin configuration that we're able to replace the stock D1 mini
70-
and make some minor config changes and get the benefits of an ESP32-c3 based device without buying a
71-
whole new motherboard.
69+
The early DIY and Pro models were limited by ESP8266 chip that has minimal performance. The Lolin C3 Mini has the same form factor and based on the much improved ESP32-C3 chip.
7270
73-
1. Start with the airgradient-pro.yaml file
74-
2. Under packages, replace 'airgradient_d1_mini_board.yaml' with 'airgradient_lolin-c3-mini_board.yaml'
75-
3. change the `!extend config_button` section to use pin number `4` instead of `D7`
71+
1. Purchase a Lolin C3 Mini, such as https://www.aliexpress.us/item/3256804553736450.html
72+
1. Replace the device in your AirGradient
73+
1. Under `packages:`, replace 'airgradient_d1_mini_board.yaml' with 'airgradient_lolin-c3-mini_board.yaml'
74+
1. If upgrading a Pro, change the `!extend config_button` section to use pin number `4` instead of `D7`
75+
1. Install/Upgrade ESPHome on your device
7676
7777
7878
# Home Assistant Automation

packages.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ Board configuration for devices based on the ESP32-C3 chip (AG ONE and OpenAir)
3434

3535
## airgradient_lolin-c3-mini_board.yaml
3636

37-
Board configuration for the AG Pro that has been user upgraded to use a lolin-c3-mini
37+
Board configuration for the AG DIY/Pro that has been user upgraded to use a Lolin C3 mini, such as https://www.aliexpress.us/item/3256804553736450.html
3838

39-
The board is close enough pin configuration that you can directly replace the d1 mini and replace the `board` package in airgradient-pro.yaml, and replace the `D7` under the `!extend config_button` with `4`.
39+
If upgrading a Pro, change the `!extend config_button` section to use pin number `4` instead of `D7`
4040

4141
## button_factory_reset.yaml
4242

packages/airgradient_lolin-c3-mini_board.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# D1 Mini esp8266 board with a Lolin C3 Mini esp32 board
33

44
substitutions:
5-
config_version: 5.3.2
5+
config_version: 5.3.3
66

77
esphome:
88
name: "${name}"

packages/sensor_nowcast_aqi.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ script:
214214
- lambda: |
215215
int nowcast_2_5 = -1;
216216
int nowcast_10_0 = -1;
217-
217+
218218
int hourly_2_5_size = std::min(12, static_cast<int>(id(pm_2_5_hourly_avg).size()));
219219
int hourly_10_0_size = std::min(12, static_cast<int>(id(pm_10_0_hourly_avg).size()));
220220
@@ -277,7 +277,7 @@ script:
277277
// everything higher is just counted as 500
278278
nowcast_2_5 = 500;
279279
}
280-
280+
281281
}
282282
}
283283
@@ -341,7 +341,7 @@ script:
341341
// everything higher is just counted as 500
342342
nowcast_10_0 = 500.0;
343343
}
344-
344+
345345
}
346346
}
347347

0 commit comments

Comments
 (0)