fix labels
This commit is contained in:
108
snippets/badesee03-1.yaml
Normal file
108
snippets/badesee03-1.yaml
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
|
||||||
|
esphome:
|
||||||
|
name: badesee01
|
||||||
|
platform: ESP32
|
||||||
|
board: heltec_wifi_lora_32_V2
|
||||||
|
|
||||||
|
#Sensoren Einbindung
|
||||||
|
dallas:
|
||||||
|
- pin: GPIO17
|
||||||
|
|
||||||
|
#Wassertemperaturen 1-4
|
||||||
|
sensor:
|
||||||
|
- platform: dallas
|
||||||
|
address: 0xC400000D09BE3328
|
||||||
|
name: "Wasser 0,5m: #1"
|
||||||
|
id: m1
|
||||||
|
- platform: dallas
|
||||||
|
address: 0x9400000D6A4F8C28
|
||||||
|
name: "Wasser 3,0m: #3"
|
||||||
|
id: m3
|
||||||
|
- platform: dallas
|
||||||
|
address: 0xB400000D0AC31928
|
||||||
|
name: "Wasser 2,0m: #2"
|
||||||
|
id: m2
|
||||||
|
- platform: dallas
|
||||||
|
address: 0xD400000D6A863528
|
||||||
|
name: "Wasser 4,0m: #4"
|
||||||
|
id: m4
|
||||||
|
|
||||||
|
#Luftwerte - Temperatur und Feuchtigkeit
|
||||||
|
- platform: dht
|
||||||
|
model: AM2302
|
||||||
|
pin: GPIO23
|
||||||
|
temperature:
|
||||||
|
name: "Schaltschrank Temperatur"
|
||||||
|
id: m5
|
||||||
|
humidity:
|
||||||
|
name: "Luftfeuchtigkeit"
|
||||||
|
id: m6
|
||||||
|
update_interval: 10s
|
||||||
|
|
||||||
|
# kleines Display im Schaltkasten Ansteuerung
|
||||||
|
font:
|
||||||
|
- file: "fonts/Calibri Bold.ttf"
|
||||||
|
id: font_cb
|
||||||
|
size: 15
|
||||||
|
|
||||||
|
i2c:
|
||||||
|
sda: GPIO4
|
||||||
|
scl: GPIO15
|
||||||
|
|
||||||
|
display:
|
||||||
|
- platform: ssd1306_i2c
|
||||||
|
model: "SSD1306 128x64"
|
||||||
|
reset_pin: GPIO16
|
||||||
|
address: 0x3C
|
||||||
|
|
||||||
|
lambda: |-
|
||||||
|
char displayString[30] = "";
|
||||||
|
it.printf(0, 0, id(font_cb), "Wasser 0,5m: %1.1f°C", id(m1).state);
|
||||||
|
it.printf(0, 12, id(font_cb), "Wasser 2,0m: %1.1f°C", id(m2).state);
|
||||||
|
it.printf(0, 24, id(font_cb), "Wasser 3,0m: %1.1f°C", id(m3).state);
|
||||||
|
it.printf(0, 36, id(font_cb), "Wasser 4,0m: %1.1f°C", id(m4).state);
|
||||||
|
# it.printf(0, 48, id(font_cb), "Luft auf Steg: 15°C");
|
||||||
|
# it.printf(0, 48, id(font_cb), "Luftfeuchtigkeit: 15°C");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Anschlüsse vom ESP32 in die weite Welt ab hier
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
networks:
|
||||||
|
- ssid: "BadeseeFritz"
|
||||||
|
password: "16746209631486215958"
|
||||||
|
- ssid: "1725-WLAN"
|
||||||
|
password: "2699233687601022"
|
||||||
|
|
||||||
|
|
||||||
|
# Enable logging
|
||||||
|
logger:
|
||||||
|
|
||||||
|
# Enable Home Assistant API
|
||||||
|
api:
|
||||||
|
password: ""
|
||||||
|
|
||||||
|
ota:
|
||||||
|
password: ""
|
||||||
|
|
||||||
|
#LoRaWan?????:
|
||||||
|
|
||||||
|
#mqtt:
|
||||||
|
# broker: !secret mqtt_broker
|
||||||
|
# username: !secret mqtt_username
|
||||||
|
# password: !secret mqtt_password
|
||||||
|
# port: !secret mqtt_port
|
||||||
|
# # Set to true when finished testing to set MQTT retain flag
|
||||||
|
# discovery_retain: false
|
||||||
|
|
||||||
|
|
||||||
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||||
|
# ap:
|
||||||
|
# ssid: "Badesee01 Fallback Hotspot"
|
||||||
|
# password: "CP8YLG1i7cOF"
|
||||||
|
|
||||||
|
switch:
|
||||||
|
- platform: restart
|
||||||
|
name: "Example Device Restart"
|
||||||
|
|
@ -49,14 +49,14 @@ typedef struct {
|
|||||||
} __attribute__((packed)) sensor_t;
|
} __attribute__((packed)) sensor_t;
|
||||||
|
|
||||||
28 8C 4F 6A 0D 00 00 94
|
28 8C 4F 6A 0D 00 00 94
|
||||||
03
|
|
||||||
53 45 4E 53 30 00
|
|
||||||
28 19 C3 0A 0D 00 00 B4
|
|
||||||
02
|
02
|
||||||
53 45 4E 53 31 00
|
33 2C 30 6D 3A 00
|
||||||
28 35 86 6A 0D 00 00 D4
|
28 19 C3 0A 0D 00 00 B4
|
||||||
01
|
01
|
||||||
53 45 4E 53 32 00
|
32 2C 30 6d 3A 00
|
||||||
|
28 35 86 6A 0D 00 00 D4
|
||||||
|
03
|
||||||
|
34 2C 30 6D 3A 00
|
||||||
28 C7 11 F6 62 20 01 B8
|
28 C7 11 F6 62 20 01 B8
|
||||||
00
|
00
|
||||||
53 45 4E 53 33 00
|
30 2C 35 6D 3A 00
|
||||||
|
Reference in New Issue
Block a user