You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the communication with the HC8 sensor is done using UART, you need
15
15
to have an [UART bus](/components/uart) in your configuration with the `rx_pin` connected to the TX pin of the
@@ -24,9 +24,9 @@ sensor:
24
24
name: HC8 CO2 Value
25
25
```
26
26
27
-
## Configuration variables
27
+
## Configuration Variables
28
28
29
-
- **co2** (*Optional*): The CO_2 data from the sensor in parts per million (ppm).
29
+
- **co2** (*Optional*): The CO₂ data from the sensor in parts per million (ppm).
30
30
All options from [Sensor](/components/sensor).
31
31
32
32
- **update_interval** (*Optional*, [Time](/guides/configuration-types#time)): The interval to check the
@@ -37,23 +37,26 @@ sensor:
37
37
38
38
- **id** (*Optional*, [ID](/guides/configuration-types#id)): Manually specify the ID used for actions.
39
39
40
-
- **warmup_time** (*Optional*, Time): The sensor has a warmup time and before that, it returns bougus readings (eg: 500ppm, 505ppm...). This setting discards readings until the warmup time happened (`NAN` is returned). The datasheet says preheating takes 10min, with a 90% accuracy after 3 minutes. Empirical evidence shows that reasonable values are usually returned after about 1 minute.
40
+
- **warmup_time** (*Optional*, [Time](/guides/configuration-types#time)): The sensor has a warmup period during which it returns inaccurate readings (e.g., 500ppm, 505ppm). This setting discards readings until the warmup time has elapsed (returning `NaN` during warmup). The datasheet specifies a 10-minute preheating time for full accuracy, with 90% accuracy achieved after 3 minutes. Empirical evidence shows that reasonable values are usually returned after about 1 minute. Defaults to `75s`.
41
41
42
42
{{< anchor "hc8-calibrate_action" >}}
43
43
44
44
## `hc8.calibrate` Action
45
45
46
46
This [action](/automations/actions#all-actions) executes baseline calibration command on the sensor with the given ID.
47
47
48
-
If you want to execute baseline calibration, the HC8 sensor must work in stable gas environment
49
-
for at least 2 minutes and you execute this function.
48
+
Before executing baseline calibration, ensure the HC8 sensor has been operating in a stable gas environment
49
+
(with known CO₂ concentration) for at least 2 minutes.
50
+
51
+
**Warning:** Only calibrate the sensor in a known stable environment (e.g., outdoors or in a well-ventilated room).
52
+
Incorrect calibration will result in inaccurate readings.
50
53
51
54
```yaml
52
55
on_...:
53
56
then:
54
57
- hc8.calibrate:
55
58
id: my_hc8_id
56
-
baseline: 400
59
+
baseline: 420 # Current outdoor CO₂ level
57
60
```
58
61
59
62
You can provide an [action](/components/api#api-device-actions) to perform from Home Assistant
0 commit comments