Pitfalls: /etc/hosts verboten, Split-Horizon-DNS bei UCS, Proxmox VMID-Wechsel
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
62
plans/eager-rolling-dove.md
Normal file
62
plans/eager-rolling-dove.md
Normal file
@@ -0,0 +1,62 @@
|
||||
# Fix: Garagentor-Automation & Script Robustheit
|
||||
|
||||
## Problem
|
||||
|
||||
Das Garagentor ging nicht zu, weil:
|
||||
1. `automation.garagentor` (Sicherheits-Automation) seit 24.01. `unavailable` ist (`trigger:device` Format)
|
||||
2. `garage_button_pulse` Script keinen Stuck-ON-Schutz hat → `turn_on` war No-Op weil Switch schon ON war
|
||||
|
||||
## Änderungen
|
||||
|
||||
### 1. `scripts.yaml` — `garage_button_pulse` robuster machen (Zeilen 23-34)
|
||||
|
||||
Neues Script mit 3 Schichten:
|
||||
- **Pre-Check:** Erst `switch.turn_off` senden (falls stuck ON), 2s warten
|
||||
- **Puls:** Normal ON → 1s → OFF
|
||||
- **Post-Check:** Nach 4s prüfen ob Switch wirklich OFF ist, bei Bedarf retry
|
||||
|
||||
Gesamtdauer: ~7s statt ~1s. Alle 7 aufrufenden Automationen profitieren automatisch.
|
||||
|
||||
### 2. `automations.yaml` — Sicherheits-Automation reparieren (Zeilen 426-446)
|
||||
|
||||
`trigger:device` → `trigger:state` umschreiben:
|
||||
- `entity_id: switch.garagentor` statt UUID-Referenzen
|
||||
- `for: seconds: 3` Verzögerung (Script hat nach 3s bereits OFF gesendet)
|
||||
- `action: switch.turn_off` statt device-action Format
|
||||
- Logbook-Eintrag wenn die Automation feuert
|
||||
|
||||
**Timing:** Script-OFF bei T=3s → Safety bei T=5s → Post-Check bei T=7s. Drei Verteidigungslinien.
|
||||
|
||||
### 3. `automations.yaml` — Disabled legacy device-actions aufräumen
|
||||
|
||||
Entfernen von 3 deaktivierten `type: turn_on` device-action Blöcken:
|
||||
- Zeilen ~464-468 in `Garagentoröffner-Auto`
|
||||
- Zeilen ~1167-1170 in `Garage Zu wenn Niemand da`
|
||||
- Zeilen ~1207-1211 in `Garage Zu wenn Niemand da`
|
||||
|
||||
### 4. `.github/copilot-instructions.md` — Dokumentation aktualisieren
|
||||
|
||||
- Schutz-Automation Doku aktualisieren (trigger:state, 3s Delay)
|
||||
- Verbessertes Script dokumentieren
|
||||
- Vorfall 2026-01-29 als Pitfall dokumentieren
|
||||
- Toter Z-Wave Node (`Garagenlichtschalter Garagentorseite`) dokumentieren
|
||||
|
||||
## Deployment
|
||||
|
||||
1. Dateien lokal editieren
|
||||
2. Per SSH auf HA-Server deployen (`scp` oder `ssh + git pull`)
|
||||
3. Automationen + Scripts per HA API reloaden
|
||||
4. Verifizieren:
|
||||
- `automation.garagentor` ist nicht mehr `unavailable`
|
||||
- Script-Test: Tor öffnet/schließt korrekt
|
||||
- Safety-Test: Switch manuell ON → nach 3s automatisch OFF
|
||||
5. Git commit + push
|
||||
|
||||
## Dateien
|
||||
|
||||
| Datei | Änderung |
|
||||
|-------|----------|
|
||||
| `scripts.yaml:23-34` | Script mit Pre-/Post-Check |
|
||||
| `automations.yaml:426-446` | Safety-Automation trigger:state |
|
||||
| `automations.yaml:~464,~1167,~1207` | Disabled blocks entfernen |
|
||||
| `.github/copilot-instructions.md:~309-322` | Doku aktualisieren |
|
||||
Reference in New Issue
Block a user