51 lines
960 B
YAML
51 lines
960 B
YAML
esphome:
|
|
name: "${node_name}"
|
|
|
|
# Enable logging
|
|
logger:
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
encryption:
|
|
key: !secret api_key
|
|
|
|
ota:
|
|
platform: esphome
|
|
password: !secret ota_password
|
|
|
|
web_server:
|
|
port: 80
|
|
auth:
|
|
username: !secret web_server_username
|
|
password: !secret web_server_password
|
|
|
|
wifi:
|
|
ssid: "CMS-HVAC"
|
|
password: !secret wifi_password
|
|
domain: .hvac.claremontmakerspace.org
|
|
|
|
# Sync time with Home Assistant.
|
|
time:
|
|
- platform: homeassistant
|
|
id: homeassistant_time
|
|
|
|
# Text sensors with general information.
|
|
text_sensor:
|
|
# Expose ESPHome version as sensor.
|
|
- platform: version
|
|
name: ${node_name} ESPHome Version
|
|
# Expose WiFi information as sensors.
|
|
- platform: wifi_info
|
|
ip_address:
|
|
name: ${node_name} IP
|
|
ssid:
|
|
name: ${node_name} SSID
|
|
bssid:
|
|
name: ${node_name} BSSID
|
|
|
|
# Sensors with general information.
|
|
sensor:
|
|
# Uptime sensor.
|
|
- platform: uptime
|
|
name: ${node_name} Uptime
|