67 lines
1.2 KiB
YAML
67 lines
1.2 KiB
YAML
esphome:
|
|
name: sensor-1
|
|
platform: ESP8266
|
|
board: nodemcuv2
|
|
|
|
# Enable logging
|
|
logger:
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
|
|
ota:
|
|
platform: esphome
|
|
password: "bd2cc7a3c3bce9d1d088a52a3e730d4a"
|
|
|
|
wifi:
|
|
ssid: !secret wifi_ssid
|
|
password: !secret wifi_password
|
|
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
ap:
|
|
ssid: "Sensor-1 Fallback Hotspot"
|
|
password: "S3h9aKPjGBH4"
|
|
|
|
# Enable MQTT Broker communications
|
|
mqtt:
|
|
broker: !secret mqtt_broker
|
|
username: !secret mqtt_username
|
|
password: !secret mqtt_password
|
|
topic_prefix: frankensystem
|
|
discovery: true
|
|
|
|
captive_portal:
|
|
|
|
sensor:
|
|
|
|
- platform: dht
|
|
pin: D1
|
|
temperature:
|
|
name: "Post Coil Temperature"
|
|
humidity:
|
|
name: "Post Coil Humidity"
|
|
update_interval: 5s
|
|
|
|
- platform: dht
|
|
pin: D2
|
|
temperature:
|
|
name: "Return Temperature"
|
|
humidity:
|
|
name: "Return Humidity"
|
|
update_interval: 5s
|
|
|
|
- platform: dht
|
|
pin: D3
|
|
temperature:
|
|
name: "Mixed Air Temperature"
|
|
humidity:
|
|
name: "Mixed Air Humidity"
|
|
update_interval: 5s
|
|
|
|
- platform: dht
|
|
pin: D0
|
|
temperature:
|
|
name: "Supply Temperature"
|
|
humidity:
|
|
name: "Supply Humidity"
|
|
update_interval: 5s |