diff --git a/automations.yaml b/automations.yaml index fe51488..1d2397b 100644 --- a/automations.yaml +++ b/automations.yaml @@ -1 +1,32 @@ -[] +- id: '1705690241808' + alias: test1 + description: test + trigger: + - platform: time + at: '20:00:00' + id: id_20 + - platform: time + at: '23:00:00' + id: id_2 + condition: [] + action: + - choose: + - conditions: + - condition: trigger + id: + - id_20 + sequence: + - service: notify.dev_telegram + metadata: {} + data: + message: test 2000 dev + - conditions: + - condition: trigger + id: + - id_2 + sequence: + - service: notify.dev_telegram + metadata: {} + data: + message: m2 + mode: single diff --git a/automations/circulation.yaml b/automations/circulation.yaml new file mode 100644 index 0000000..c4a4275 --- /dev/null +++ b/automations/circulation.yaml @@ -0,0 +1,48 @@ +alias: Zirkulation V5 +id: "2d05fdae-3d55-4383-9792-d3ef8b7ffa2a" +description: Uhrzeit Zirkulationspumpe schalten +trigger: + - platform: time + at: "11:00:00" + id: id_stop + - platform: time + at: "15:00:00" + id: id_start + - platform: time + at: "22:00:00" + id: id_stop + - platform: time + at: "05:00:00" + id: id_start +condition: [] +action: + - choose: + - conditions: + - condition: trigger + id: + - id_start + sequence: + - service: notify.dev_telegram + metadata: {} + data: + message: Zirkulation wird gestartet + - service: switch.turn_on + data: {} + target: + entity_id: switch.smart_switch_7_zirkulationspumpe_2 + + - conditions: + - condition: trigger + id: + - id_stop + sequence: + - service: notify.dev_telegram + metadata: {} + data: + message: Zirkulation wird gestoppe + - service: switch.turn_off + data: {} + target: + entity_id: switch.smart_switch_7_zirkulationspumpe_2 + +mode: single diff --git a/automations/doorbell_frontdoor.yaml b/automations/doorbell_frontdoor.yaml new file mode 100644 index 0000000..011edf4 --- /dev/null +++ b/automations/doorbell_frontdoor.yaml @@ -0,0 +1,25 @@ +alias: Haustürklingel +description: "Klingel Haustür wurde ausgelöst" +id: 21901492-6a7a-4607-ac18-4fe890de1968 +mode: single +trigger: + - platform: device + device_id: 1776e00221814a02feb84e9c851c74a9 + domain: homekit_controller + type: button1 + subtype: single_press +condition: [] +action: + - variables: + param_entity: "{{trigger.to_state.entity_id}}" + - service: system_log.write + data: + level: info + message: "Automation Haustürklingel erkannt!! | Entity: {{param_entity}}" + - service: notify.dev_telegram + data: + message: > + Automation Haustürklingel erkannt + {{ trigger.entity_id }} + from {{ trigger.from_state.state }} to {{ trigger.to_state.state }} + starting "door_bell_script (TBD)"... diff --git a/automations/smoke_sensor.yaml b/automations/smoke_sensor.yaml index ed7dc94..4759160 100644 --- a/automations/smoke_sensor.yaml +++ b/automations/smoke_sensor.yaml @@ -1,13 +1,13 @@ description: Rauchmelder-Alarm alias: Rauchmelder-Alarm id: 8ce59ed4-f7dd-47a5-a1ab-ada15310fc2d - +mode: single trigger: - platform: state entity_id: - binary_sensor.rauchmelder_buro_christian_smoke_detected - binary_sensor.rauchmelder_buro_christian_smoke_alarm_test - - binary_sensor.feueralarm_dummy + # - binary_sensor.feueralarm_dummy - binary_sensor.rauchmelder_heizungskeller_smoke_detected - binary_sensor.rauchmelder_heizungskeller_smoke_alarm_test to: @@ -21,17 +21,15 @@ action: data: level: info message: "Automation Feuer erkannt!! | Entity: {{param_entity}} | Test-Alert: {{param_test_alert}} Starte Skript für Feueralarm..." - # - service: notify.dev_telegram - # data: - # message: > - # rauchmelder_buro_christian_smoke_detected changed - # {{ trigger.entity_id }} - # from {{ trigger.from_state.state }} to {{ trigger.to_state.state }} - # starting "smoke_sensor_script"... + - service: notify.dev_telegram + data: + message: > + rauchmelder_buro_christian_smoke_detected changed + {{ trigger.entity_id }} + from {{ trigger.from_state.state }} to {{ trigger.to_state.state }} + starting "smoke_sensor_script"... - service: script.smoke_sensor_script data: param_state: "{{trigger.to_state.state}}" param_entity_id: "{{param_entity}}" param_test_alert: "{{param_test_alert}}" - -mode: single diff --git a/automations/zirkulationspumpe.yaml b/automations/zirkulationspumpe.yaml deleted file mode 100644 index 84fcd22..0000000 --- a/automations/zirkulationspumpe.yaml +++ /dev/null @@ -1,34 +0,0 @@ -mode: single -id: 61dfcad1-b4e2-4b03-afe5-37e08a11466c -desciption: Zeitsteuerung Zirkulationspumpe -alias: Event Zirkulationspumpe schalten -trigger: - - platform: time - at: "11:00:00" - id: stop - - platform: time - at: "15:00:00" - id: start - - platform: time - at: "22:00:00" - id: stop - - platform: time - at: "05:00:00" - id: start -condition: [] -action: - - choose: - - conditions: - - condition: trigger - id: start - sequence: - - service: notify.dev_telegram - data: - message: Zirkulation wird gestartet - - conditions: - - condition: trigger - id: stop - sequence: - - service: notify.dev_telegram - data: - message: Zirkulation wird gestoppe diff --git a/scripts/smoke_sensor_script.yaml b/scripts/smoke_sensor_script.yaml index e90286a..390981a 100644 --- a/scripts/smoke_sensor_script.yaml +++ b/scripts/smoke_sensor_script.yaml @@ -19,7 +19,7 @@ sequence: 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 + - service: notify.iphones data: title: "FEUERALARM" message: "Feueralarm für '{{param_entity_id}}'" @@ -33,6 +33,4 @@ sequence: - service: notify.dev_telegram data: message: > - Feueralarm für Entity '{{param_entity_id}}'!!! (State: {{param_state}}) | Probealarm: {{param_test_alert}} - - + Feueralarm für Entity '{{param_entity_id}}'!!! (State: {{param_state}}) | Probealarm: {{param_test_alert}}