Created
January 15, 2024 11:05
-
-
Save lijon/ba63d062b4c11b4301159730574f2be3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# (insert all the standard stuff here for esphome, wifi, api, etc...) | |
# https://www.az-delivery.de/en/products/d1-mini-v3 | |
esp8266: | |
board: d1_mini | |
sensor: | |
- platform: wifi_signal # Reports the WiFi signal strength/RSSI in dB | |
name: "WiFi Signal dB" | |
id: wifi_signal_db | |
update_interval: 30s | |
entity_category: "diagnostic" | |
- platform: dht | |
model: AM2302 | |
pin: D7 | |
temperature: | |
name: "Temperature" | |
id: temp | |
accuracy_decimals: 1 | |
humidity: | |
name: "Humidity" | |
id: hum | |
accuracy_decimals: 1 | |
update_interval: 30s | |
# import sensor data from home assistant. this is for my heatpump connected via Husdata H66 | |
- platform: homeassistant | |
id: out_temp | |
entity_id: sensor.hp_outdoor | |
- platform: homeassistant | |
id: fram_temp | |
entity_id: sensor.hp_radiator_forward | |
- platform: homeassistant | |
id: fram_set_temp | |
entity_id: sensor.hp_heating_setpoint | |
- platform: homeassistant | |
id: vp_speed | |
entity_id: sensor.hp_compressor_speed | |
- platform: homeassistant | |
id: vp_elpat | |
entity_id: sensor.hp_add_heat_status | |
binary_sensor: | |
- platform: homeassistant | |
id: vp_vv | |
entity_id: binary_sensor.hp_switch_valve_1 | |
- platform: homeassistant | |
id: vp_frost | |
entity_id: binary_sensor.vp_avfrostning | |
i2c: | |
sda: D2 | |
scl: D1 | |
scan: false | |
frequency: 200kHz | |
# https://github.com/fcambus/spleen | |
font: | |
- file: "fonts/spleen-6x12.bdf" | |
id: font1 | |
- file: "fonts/spleen-5x8.bdf" | |
id: font2 | |
# https://wiki.seeedstudio.com/Grove-OLED-Display-0.66-SSD1306_v1.0/ | |
display: | |
- platform: ssd1306_i2c | |
model: "SSD1306 64x48" | |
address: 0x3C | |
update_interval: 2s | |
#invert: true | |
contrast: 50% | |
lambda: |- | |
it.printf(28,0,id(font1),"%.1f°C",id(temp).state); | |
it.printf(0,0,id(font1),"%.0f%%",id(hum).state); | |
it.print(0,14,id(font2),"UTE"); | |
it.printf(22,12,id(font1),"%+5.1f°C",id(out_temp).state); | |
it.printf(0,48-8*2,id(font2),"GOLV %.0f (%.0f)",id(fram_temp).state,id(fram_set_temp).state); | |
it.printf(0,48-8,id(font2),"VP %02.0f%% %s %s",id(vp_speed).state,id(vp_elpat).state>0?"EL":" ",id(vp_vv).state?"VV":(id(vp_frost).state?"**":" ")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment