79 lines
1.5 KiB
YAML
79 lines
1.5 KiB
YAML
esphome:
|
|
name: thermostat-bedroom
|
|
friendly_name: thermostat-bedroom
|
|
platform: ESP8266
|
|
board: esp12e
|
|
#board: nodemcuv2
|
|
|
|
# Enable logging
|
|
logger:
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
encryption:
|
|
key: "FwV4CMZTQlJAV/tX/ga3sBJ84LgwX8Y94+rUIJAZ7UQ="
|
|
|
|
ota:
|
|
password: "b85f91e578339455d1eb6f4c91a0c413"
|
|
|
|
wifi:
|
|
ssid: "Saints&Strangers_"
|
|
password: "xYhnac-5mixdu"
|
|
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
ap:
|
|
ssid: "Thermostat-Bedroom"
|
|
password: "yUHEnZm3ZARc"
|
|
|
|
captive_portal:
|
|
|
|
number:
|
|
- platform: template
|
|
name: "ac_target_temp_slider"
|
|
id: "ac_target_temp_slider"
|
|
step: 1
|
|
min_value: 50
|
|
max_value: 80
|
|
mode: slider
|
|
|
|
binary_sensor:
|
|
- platform: gpio
|
|
pin: GPIO14
|
|
name: "Target Temp Increment"
|
|
device_class: button
|
|
|
|
button:
|
|
- platform: template
|
|
name: "Target Temp Increment"
|
|
id: increment_target_temp
|
|
on_press:
|
|
- number.increment:
|
|
id: ac_target_temp_slider
|
|
cycle: false
|
|
|
|
sensor:
|
|
- platform: homeassistant
|
|
name: "House Temperature"
|
|
id: house_temp
|
|
entity_id: sensor.house_temperature_avg
|
|
|
|
font:
|
|
- file: 'fonts/Roboto-Thin.ttf'
|
|
id: font1
|
|
size: 15
|
|
|
|
i2c:
|
|
sda: GPIO4
|
|
scl: GPIO5
|
|
|
|
display:
|
|
- platform: ssd1306_i2c
|
|
model: "SSD1306 128x64"
|
|
address: 0x3D
|
|
lambda: |-
|
|
it.printf(0, 0, id(font1), "Set Temp:");
|
|
it.printf(5, 22, id(font), "%.1f%°F", id(ac_target_temp).state);
|
|
it.printf(0, 0, id(font1), "Current Temp:");
|
|
it.printf(5, 22, id(font), "%.1f%°F", id(house_temp).state);
|
|
|