IKEA blueprint, replaced bathroom sensor with ESPHome.
This commit is contained in:
57
esphome/badezimmer-luft.yaml
Normal file
57
esphome/badezimmer-luft.yaml
Normal file
@@ -0,0 +1,57 @@
|
||||
substitutions:
|
||||
name: "bathroom"
|
||||
friendly_name: "Bad"
|
||||
|
||||
esphome:
|
||||
name: ${name}
|
||||
friendly_name: ${friendly_name}
|
||||
name_add_mac_suffix: false
|
||||
project:
|
||||
name: sensor.outdoor
|
||||
version: "0.8"
|
||||
min_version: 2022.1.0
|
||||
|
||||
esp32:
|
||||
board: esp32-c3-devkitm-1
|
||||
framework:
|
||||
type: arduino
|
||||
|
||||
wifi:
|
||||
ssid: "Voltage-legacy"
|
||||
password: !secret voltage_legacy_psk
|
||||
use_address: bathroom.home
|
||||
power_save_mode: high
|
||||
fast_connect: on
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Bad Fallback Hotspot"
|
||||
password: !secret fallback_psk
|
||||
|
||||
captive_portal:
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
encryption:
|
||||
key: !secret apikey
|
||||
|
||||
ota:
|
||||
password: !secret ota
|
||||
|
||||
# DHT22 sensor
|
||||
sensor:
|
||||
- platform: dht
|
||||
model: dht22
|
||||
pin: 4
|
||||
temperature:
|
||||
name: "Badezimmer Temperatur"
|
||||
humidity:
|
||||
name: "Badezimmer Luftfeuchtigkeit"
|
||||
update_interval: 60s
|
||||
# WiFi signal strength
|
||||
- platform: wifi_signal
|
||||
name: "WiFi Signalstärke"
|
||||
update_interval: 60s
|
@@ -460,7 +460,7 @@ display:
|
||||
it.print(357, 130, id(sub_sensor_font), TextAlign::BASELINE_RIGHT, " - %");
|
||||
}
|
||||
|
||||
if(air_pressure < 1200 && air_pressure >=800) {
|
||||
if(air_pressure < 1200 && air_pressure >=700) {
|
||||
it.printf(220, 130, id(big_sensor_font), TextAlign::BASELINE_RIGHT, "%4.1f", air_pressure);
|
||||
it.print(225, 130, id(sensor_unit), TextAlign::BASELINE_LEFT, "hPa");
|
||||
}
|
||||
|
Reference in New Issue
Block a user