Skip to content

Commit 321d291

Browse files
committed
Update sens5x example config
1 parent 152789d commit 321d291

File tree

1 file changed

+66
-7
lines changed

1 file changed

+66
-7
lines changed

README.md

Lines changed: 66 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -335,15 +335,74 @@ Temperature compensation is not working for the SEN6x models. Still waiting on t
335335

336336
```yaml
337337
# Sample configuration entry example
338-
sen5x:
339-
id: ld2450_radar
340-
flip_x_axis: true
341338
number:
342-
- platform: ld2450
343-
ld2450_id: ld2450_radar
344-
installation_angle:
345-
name: Installation Angle
339+
- platform: template
340+
id: co2_forced_cal_value
341+
name: "CO2 Calibration Value"
342+
device_class: carbon_dioxide
343+
entity_category: CONFIG
344+
optimistic: true
345+
max_value: 1200
346+
min_value: 400
347+
step: 1
348+
initial_value: 420
349+
set_action:
350+
- delay: 1s
351+
352+
button:
353+
- platform: template
354+
name: "Start Fan Auto Clean"
355+
entity_category: CONFIG
356+
on_press:
357+
- sen5x.start_fan_autoclean: sen66_sensor
358+
- platform: template
359+
name: "Activate SHT Heater"
360+
entity_category: CONFIG
361+
on_press:
362+
- sen5x.activate_heater: sen66_sensor
363+
- platform: template
364+
name: "CO2 Calibrate"
365+
entity_category: CONFIG
366+
on_press:
367+
- sen5x.perform_forced_co2_calibration:
368+
value: !lambda |-
369+
float value = id(co2_forced_cal_value).state;
370+
return value;
371+
id: sen66_sensor
346372

373+
sensor:
374+
- platform: sen5x
375+
id: sen66_sensor
376+
i2c_id: i2c2_bus
377+
address: 0x6B
378+
update_interval: 1s
379+
model: SEN66
380+
store_baseline: true
381+
temperature:
382+
name: "Temperature"
383+
id: temperature
384+
humidity:
385+
name: "Humidity"
386+
id: humidity
387+
pm_1_0:
388+
name: "PM <1µm Weight concentration"
389+
id: pm_1_0
390+
pm_2_5:
391+
name: "PM <2.5µm Weight concentration"
392+
id: pm_2_5
393+
pm_4_0:
394+
name: "PM <4µm Weight concentration"
395+
id: pm_4_0
396+
pm_10_0:
397+
name: "PM <10µm Weight concentration"
398+
id: pm_10_0
399+
co2:
400+
name: "CO2"
401+
auto_self_calibration: false
402+
nox:
403+
name: "NOx"
404+
voc:
405+
name: "VOC"
347406
```
348407
### Configuration Variables
349408
+ **model** (**Optional**, string): The model of the Sensirion SEN5X or SEN6X sensor. Options are ```SEN50```, ```SEN54```, ```SEN55```, ```SEN60```, ```SEN63C```, ```SEN65```, ```SEN66``` or ```SEN68```. Use this if the model cannot be read from the sensor. There were reports of a blank model string on a SEN66 sensor.

0 commit comments

Comments
 (0)