Closed itsyoshio closed 3 years ago
You're putting the id in the wrong place. The following ought to work:
text_sensor:
- platform: bme680_bsec
iaq_accuracy:
# IAQ accuracy as a text value of Stabilizing, Uncertain, Calibrating, Calibrated
id: iaq_accuracy
name: "BME680 IAQ Accuracy"
on_value:
then:
- if:
condition:
or:
- text_sensor.state:
id: iaq_accuracy
state: 'Uncertain'
Thanks, works like a charm! Sorry about this.
I'd be nice if the Library could support [id] to be able to do things like conditionals on the text_sensor's state.
Since
id: iaq_accuracy
is not a valid Line, text_sensor.state->id does not workESPHome Docs for this feature are found here