Add temperature/status display to boiler
This commit is contained in:
+28
@@ -10,6 +10,32 @@ esp8266:
|
|||||||
|
|
||||||
logger:
|
logger:
|
||||||
|
|
||||||
|
i2c:
|
||||||
|
sda: D3
|
||||||
|
scl: D4
|
||||||
|
|
||||||
|
font:
|
||||||
|
- file: "fonts/DejaVuSans.ttf"
|
||||||
|
id: font_sans
|
||||||
|
size: 20
|
||||||
|
|
||||||
|
display:
|
||||||
|
- platform: ssd1306_i2c
|
||||||
|
model: "SSD1306 128x32"
|
||||||
|
id: oled_display
|
||||||
|
lambda: |-
|
||||||
|
it.printf(
|
||||||
|
4, 6,
|
||||||
|
id(font_sans),
|
||||||
|
"%.2f C",
|
||||||
|
id(boiler_temperature).state);
|
||||||
|
|
||||||
|
if (id(furnace_burning).state) {
|
||||||
|
it.filled_circle(112, 16, 12);
|
||||||
|
} else {
|
||||||
|
it.circle(112, 16, 12);
|
||||||
|
}
|
||||||
|
|
||||||
mqtt:
|
mqtt:
|
||||||
broker: homeassistant
|
broker: homeassistant
|
||||||
username: esphome
|
username: esphome
|
||||||
@@ -21,6 +47,7 @@ dallas:
|
|||||||
sensor:
|
sensor:
|
||||||
- platform: dallas
|
- platform: dallas
|
||||||
address: 0x133c2cf648f40728
|
address: 0x133c2cf648f40728
|
||||||
|
id: boiler_temperature
|
||||||
name: "Boiler Temperature"
|
name: "Boiler Temperature"
|
||||||
filters:
|
filters:
|
||||||
- offset: 3.3
|
- offset: 3.3
|
||||||
@@ -33,6 +60,7 @@ sensor:
|
|||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
- platform: analog_threshold
|
- platform: analog_threshold
|
||||||
|
id: furnace_burning
|
||||||
name: "Furnace Burning"
|
name: "Furnace Burning"
|
||||||
sensor_id: furnace_led_brightness
|
sensor_id: furnace_led_brightness
|
||||||
threshold: 0.7
|
threshold: 0.7
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user