93 lines
1.7 KiB
YAML
93 lines
1.7 KiB
YAML
esphome:
|
|
name: sensor-1
|
|
platform: ESP8266
|
|
board: nodemcuv2
|
|
libraries:
|
|
- ESP8266WiFi
|
|
- https://github.com/akaJes/AsyncPing#95ac7e4
|
|
|
|
external_components:
|
|
- source:
|
|
type: git
|
|
url: https://github.com/trombik/esphome-component-ping
|
|
ref: main
|
|
|
|
# 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: false
|
|
will_message:
|
|
|
|
|
|
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
|
|
|
|
- platform: ping
|
|
ip_address: 192.168.1.1 ## Router IP
|
|
num_attempts: 5
|
|
timeout: 1sec
|
|
loss:
|
|
name: Packet loss
|
|
latency:
|
|
name: Latency
|
|
accuracy_decimals: 3
|
|
update_interval: 30s
|
|
|
|
switch:
|
|
- platform: restart
|
|
name: "FrankenSystem Sensors Restart" |