Add state class and fix typo in bme680 example (#3793)

This commit is contained in:
tronikos 2024-06-17 21:43:14 -07:00 committed by GitHub
parent a611e0bac8
commit b6f848a375
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -132,9 +132,10 @@ Add indoor air quality (IAQ) calculation and IAQ label, based on the values in t
name: "BME680 Indoor Air Quality"
id: iaq
icon: "mdi:gauge"
# caulculation: comp_gas = log(R_gas[ohm]) + 0.04 log(Ohm)/%rh * hum[%rh]
# calculation: comp_gas = log(R_gas[ohm]) + 0.04 log(Ohm)/%rh * hum[%rh]
lambda: |-
return log(id(gas_resistance).state) + 0.04 * id(humidity).state;
state_class: "measurement"
text_sensor:
- platform: template
name: "BME680 IAQ Classification"

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB