Skip to content

Commit

Permalink
Add state class and fix typo in bme680 example (#3793)
Browse files Browse the repository at this point in the history
  • Loading branch information
tronikos authored Jun 18, 2024
1 parent a611e0b commit b6f848a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/sensor/bme680.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b6f848a

Please sign in to comment.