Add initial configuration files and monitoring script for ESP32 integration

This commit is contained in:
Space-Banane
2026-01-31 14:23:37 +01:00
parent b75a69caef
commit 17dc69ce4c
6 changed files with 357 additions and 0 deletions

View File

@@ -32,6 +32,11 @@ wifi:
password: "fallback_password"
captive_portal:
# Time component for scheduling
time:
- platform: sntp
id: sntp_time
output:
- platform: ledc
@@ -49,6 +54,23 @@ light:
restore_mode: ALWAYS_OFF
on_turn_on:
- light.turn_off: led_green
effects:
- strobe:
name: "Fast Heartbeat"
colors:
- state: true
brightness: 100%
duration: 200ms
- state: false
duration: 200ms
- strobe:
name: "Slow Pulse"
colors:
- state: true
brightness: 100%
duration: 1s
- state: false
duration: 1s
- platform: monochromatic
name: "Grüne LED"
@@ -57,3 +79,55 @@ light:
restore_mode: ALWAYS_OFF
on_turn_on:
- light.turn_off: led_red
effects:
- pulse:
name: "Breathing"
transition_length: 1s
update_interval: 1s
min_brightness: 30%
max_brightness: 100%
# Switches for Home Assistant control
switch:
- platform: template
name: "Monitoring Enabled"
id: monitoring_enabled
restore_mode: RESTORE_DEFAULT_ON
optimistic: true
icon: "mdi:monitor-eye"
- platform: template
name: "Force Red LED"
id: force_red
restore_mode: RESTORE_DEFAULT_OFF
optimistic: true
icon: "mdi:alert-circle"
turn_on_action:
- switch.turn_off: force_green
- light.turn_off: led_green
- light.turn_on: led_red
turn_off_action:
- light.turn_off: led_red
- platform: template
name: "Force Green LED"
id: force_green
restore_mode: RESTORE_DEFAULT_OFF
optimistic: true
icon: "mdi:check-circle"
turn_on_action:
- switch.turn_off: force_red
- light.turn_off: led_red
- light.turn_on: led_green
turn_off_action:
- light.turn_off: led_green
- platform: template
name: "Quiet Hours Active"
id: quiet_hours
restore_mode: RESTORE_DEFAULT_OFF
optimistic: true
icon: "mdi:sleep"
turn_on_action:
- light.turn_off: led_red
- light.turn_off: led_green