diff --git a/boiler.yaml b/boiler.yaml index db443ca..9d51c10 100644 --- a/boiler.yaml +++ b/boiler.yaml @@ -10,6 +10,32 @@ esp8266: 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: broker: homeassistant username: esphome @@ -21,6 +47,7 @@ dallas: sensor: - platform: dallas address: 0x133c2cf648f40728 + id: boiler_temperature name: "Boiler Temperature" filters: - offset: 3.3 @@ -33,6 +60,7 @@ sensor: binary_sensor: - platform: analog_threshold + id: furnace_burning name: "Furnace Burning" sensor_id: furnace_led_brightness threshold: 0.7 diff --git a/fonts/DejaVuSans.ttf b/fonts/DejaVuSans.ttf new file mode 100644 index 0000000..e5f7eec Binary files /dev/null and b/fonts/DejaVuSans.ttf differ