39 lines
1.3 KiB
YAML
39 lines
1.3 KiB
YAML
description: "Racumelder Ereignisse bearbeiten"
|
|
fields: # https://www.home-assistant.io/integrations/script/#passing-variables-to-scripts
|
|
param_entity_id: # https://www.home-assistant.io/integrations/script/#fields
|
|
description: "entity_id des meldenden Gerätes"
|
|
example: "binary_sensor.rauchmelder_buro_christian_smoke_detected"
|
|
required: "true"
|
|
param_test_alert:
|
|
description: "probealarm ja/nein"
|
|
required: "true"
|
|
param_state:
|
|
description: "Status des Ereignisses"
|
|
example: "on"
|
|
required: "true"
|
|
default: "off"
|
|
sequence:
|
|
- service: system_log.write
|
|
data:
|
|
level: info
|
|
message: "Skript Feueralarm für Entity '{{param_entity_id}}' gestartet. (State: {{param_state}}) | Probealarm: {{param_test_alert}} Starte Aktionen..."
|
|
|
|
# send critical notifications https://companion.home-assistant.io/docs/notifications/critical-notifications
|
|
- service: notify.iPHONES
|
|
data:
|
|
title: "FEUERALARM"
|
|
message: "Feueralarm für '{{param_entity_id}}'"
|
|
data:
|
|
push:
|
|
sound:
|
|
name: "default"
|
|
critical: 1
|
|
volume: 1.0
|
|
|
|
- service: notify.dev_telegram
|
|
data:
|
|
message: >
|
|
Feueralarm für Entity '{{param_entity_id}}'!!! (State: {{param_state}}) | Probealarm: {{param_test_alert}}
|
|
|
|
|