146 lines
2.6 KiB
YAML
146 lines
2.6 KiB
YAML
esphome:
|
|
name: bme680
|
|
board: d1_mini
|
|
platform: esp8266
|
|
|
|
|
|
|
|
# Enable logging
|
|
logger:
|
|
|
|
# Enable Home Assistant API
|
|
#api:
|
|
|
|
ota:
|
|
password: !secret ota
|
|
|
|
wifi:
|
|
networks:
|
|
- ssid: !secret wifi_ssid
|
|
password: !secret wifi_password
|
|
- ssid: !secret wifi_ssid2
|
|
password: !secret wifi_password2
|
|
|
|
|
|
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
|
|
web_server:
|
|
port: 80
|
|
|
|
#status_led:
|
|
# pin:
|
|
# number: GPIO2
|
|
# inverted: True
|
|
|
|
|
|
time:
|
|
- platform: sntp
|
|
id: homeassistant_time
|
|
timezone: Europe/Amsterdam
|
|
|
|
mdns:
|
|
disabled: false
|
|
|
|
captive_portal:
|
|
|
|
mqtt:
|
|
broker: mqtt.lan
|
|
discovery: true
|
|
|
|
#dallas:
|
|
# - pin: D1
|
|
|
|
i2c:
|
|
sda: D3
|
|
scl: D2
|
|
scan: true
|
|
|
|
bme680_bsec:
|
|
# Default: 0x76
|
|
address: 0x77
|
|
temperature_offset: 0
|
|
# Default: static
|
|
iaq_mode: static
|
|
|
|
sample_rate: lp
|
|
# Interval at which to save BSEC state
|
|
# ------------------------------------
|
|
# Default: 6h
|
|
state_save_interval: 6h
|
|
|
|
sensor:
|
|
- platform: bme680_bsec
|
|
temperature:
|
|
# Temperature in °C
|
|
name: "Z1 BME680 T"
|
|
sample_rate: lp
|
|
filters:
|
|
- median
|
|
accuracy_decimals: 2
|
|
pressure:
|
|
# Pressure in hPa
|
|
name: "Z1 BME680 Pres"
|
|
sample_rate: lp
|
|
filters:
|
|
- median
|
|
accuracy_decimals: 2
|
|
humidity:
|
|
# Relative humidity %
|
|
name: "Z1 BME680 Hum"
|
|
sample_rate: lp
|
|
filters:
|
|
- median
|
|
accuracy_decimals: 1
|
|
gas_resistance:
|
|
# Gas resistance in Ω
|
|
name: "Z1 BME680 Gas Resistance"
|
|
filters:
|
|
- median
|
|
iaq:
|
|
# Indoor air quality value
|
|
name: "Z1 BME680 IAQ"
|
|
filters:
|
|
- median
|
|
iaq_accuracy:
|
|
# IAQ accuracy as a numeric value of 0, 1, 2, 3
|
|
name: "Z1 BME680 Numeric IAQ Accuracy"
|
|
co2_equivalent:
|
|
# CO2 equivalent estimate in ppm
|
|
name: "Z1 BME680 CO2 Equivalent"
|
|
filters:
|
|
- median
|
|
breath_voc_equivalent:
|
|
# Volatile organic compounds equivalent estimate in ppm
|
|
name: "Z1 BME680 Breath VOC Equivalent"
|
|
filters:
|
|
- median
|
|
|
|
- platform: htu21d
|
|
temperature:
|
|
name: "Z1 HTU21 Temp"
|
|
accuracy_decimals: 2
|
|
humidity:
|
|
name: "Z1 HTU21 Hum"
|
|
accuracy_decimals: 1
|
|
update_interval: 60s
|
|
|
|
|
|
|
|
|
|
text_sensor:
|
|
- platform: bme680_bsec
|
|
iaq_accuracy:
|
|
# IAQ accuracy as a text value of Stabilizing, Uncertain, Calibrating, Calibrated
|
|
name: "Z1 BME680 IAQ Accuracy"
|
|
|
|
|
|
|
|
# RCWL-0516 Microwave Radar Motion Sensor
|
|
#binary_sensor:
|
|
# - platform: gpio
|
|
# pin: D5
|
|
# name: "Z1 Motion"
|
|
# device_class: motion
|
|
|