first commit

This commit is contained in:
fototeddy
2026-09-04 21:30:51 +02:00
commit da64b1b6bd
160 changed files with 20664 additions and 0 deletions
@@ -0,0 +1,63 @@
esphome:
name: dual-net-webble
esp32:
board: esp32-s3-devkitc-1
framework:
type: esp-idf
logger:
baud_rate: 0
level: WARN
wifi:
ssid: "DEIN_SSID"
password: "DEIN_PASSWORT"
enable_on_boot: false
api:
web_server:
port: 80
# ota: true <-- entfernen!
ota:
- platform: esphome # klassisches OTA (benötigt 'api:')
- platform: web_server # OTA im Web-Interface
# BLE-Stack nur für eigenen GATT-Server
esp32_ble:
enable_on_boot: false
esp32_ble_server:
manufacturer: "MyLab"
model: "WebBLE"
services:
- uuid: "12345678-1234-5678-1234-56789abcdef0"
characteristics:
# Write "1" -> WLAN-Fenster starten/verlängern
- uuid: "12345678-1234-5678-1234-56789abcdef1"
name: "StartMaintenance"
value: "0"
on_write:
then:
- lambda: |-
if (x.get_value().find("1") != std::string::npos) {
id(start_wifi_window).execute();
}
# Status bei Bedarf lesbar (z. B. "WIFI,14" oder "BLE,0")
- uuid: "12345678-1234-5678-1234-56789abcdef2"
name: "Status"
value: "BLE,0"
on_read:
then:
- lambda: |-
char buf[16];
snprintf(buf, sizeof(buf), "%s,%d",
id(_netmode_is_wifi) ? "WIFI" : "BLE",
(int) id(_wifi_minutes_left));
x.set_value(std::string(buf));
number:
- platform: template
id: wifi_window_minu