ha:raderbroich:logik:automationen_system
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| ha:raderbroich:logik:automationen_system [2026/09/27 05:00] – Abgleich lokal <-> online nbadm | ha:raderbroich:logik:automationen_system [2026/10/20 05:00] (aktuell) – Abgleich lokal <-> online nbadm | ||
|---|---|---|---|
| Zeile 3: | Zeile 3: | ||
| [[ha: | [[ha: | ||
| - | Stand: **25.09.2026**. YAML wie in HA unter ⋮ → „In YAML bearbeiten“. | + | Stand: **19.10.2026** |
| ===== System: Alarmstatus nach Neustart wiederherstellen ===== | ===== System: Alarmstatus nach Neustart wiederherstellen ===== | ||
| Zeile 95: | Zeile 95: | ||
| ===== System: Internet-Ausfall überwachen ===== | ===== System: Internet-Ausfall überwachen ===== | ||
| + | |||
| + | Geändert am **19.10.2026**: | ||
| <code yaml> | <code yaml> | ||
| Zeile 100: | Zeile 102: | ||
| alias: " | alias: " | ||
| description: | description: | ||
| - | | + | |
| - | | + | getrennt |
| - | | + | FRITZ!Box in HA nur nicht erreichbar (unavailable), aber das Internet antwortet per Ping, gilt |
| - | internet_ausfall_laeuft ausgeschaltet | + | |
| - | | + | |
| + | | ||
| + | | ||
| + | | ||
| triggers: | triggers: | ||
| - trigger: state | - trigger: state | ||
| entity_id: binary_sensor.fritz_box_6591_cable_verbindung | entity_id: binary_sensor.fritz_box_6591_cable_verbindung | ||
| - | to: | + | to: " |
| - | - " | + | |
| - | - unavailable | + | |
| for: | for: | ||
| minutes: 15 | minutes: 15 | ||
| id: weg | id: weg | ||
| + | - trigger: template | ||
| + | value_template: | ||
| + | for: | ||
| + | minutes: 15 | ||
| + | id: weg | ||
| + | - trigger: state | ||
| + | entity_id: | ||
| + | - binary_sensor.1_1_1_1 | ||
| + | - binary_sensor.8_8_8_8 | ||
| + | to: " | ||
| + | for: | ||
| + | minutes: 1 | ||
| + | id: zurueck | ||
| - trigger: state | - trigger: state | ||
| entity_id: binary_sensor.fritz_box_6591_cable_verbindung | entity_id: binary_sensor.fritz_box_6591_cable_verbindung | ||
| to: " | to: " | ||
| + | for: | ||
| + | minutes: 1 | ||
| + | id: zurueck | ||
| + | - trigger: homeassistant | ||
| + | event: start | ||
| id: zurueck | id: zurueck | ||
| actions: | actions: | ||
| Zeile 123: | Zeile 144: | ||
| - condition: trigger | - condition: trigger | ||
| id: weg | id: weg | ||
| + | - condition: state | ||
| + | entity_id: input_boolean.internet_ausfall_laeuft | ||
| + | state: " | ||
| + | - condition: template | ||
| + | value_template: | ||
| + | note: Unterdrueckt Fehlalarm waehrend des geplanten FRITZ!Box-Neustarts um 00:15 Uhr inkl. 10 Min Sicherheitspuffer (Cable-Wiederverbindung dauert ca. 5 Min). Ausfallbeginn = jetzt minus 15 Min. | ||
| sequence: | sequence: | ||
| - action: input_datetime.set_datetime | - action: input_datetime.set_datetime | ||
| Zeile 128: | Zeile 155: | ||
| entity_id: input_datetime.internet_ausfall_beginn | entity_id: input_datetime.internet_ausfall_beginn | ||
| data: | data: | ||
| - | timestamp: " | + | timestamp: "{{ (now() - timedelta(minutes=15)).timestamp() | int }}" |
| - action: input_boolean.turn_on | - action: input_boolean.turn_on | ||
| target: | target: | ||
| Zeile 139: | Zeile 166: | ||
| entity_id: input_boolean.internet_ausfall_laeuft | entity_id: input_boolean.internet_ausfall_laeuft | ||
| state: " | state: " | ||
| + | - condition: or | ||
| + | conditions: | ||
| + | - condition: state | ||
| + | entity_id: binary_sensor.1_1_1_1 | ||
| + | state: " | ||
| + | - condition: state | ||
| + | entity_id: binary_sensor.8_8_8_8 | ||
| + | state: " | ||
| + | - condition: not | ||
| + | conditions: | ||
| + | - condition: state | ||
| + | entity_id: binary_sensor.fritz_box_6591_cable_verbindung | ||
| + | state: " | ||
| sequence: | sequence: | ||
| - action: input_datetime.set_datetime | - action: input_datetime.set_datetime | ||
ha/raderbroich/logik/automationen_system.1790478011.txt.gz · Zuletzt geändert: von nbadm
