From 80ebaa8e55d32cc35430ff8b85d8adf5ae79ded9 Mon Sep 17 00:00:00 2001 From: Florian Brinker Date: Sat, 16 Feb 2019 23:15:11 +0100 Subject: [PATCH] update --- automations/alarm.yaml | 19 ------------------- automations/backups.yaml | 35 ----------------------------------- automations/hassio.yaml | 4 ++-- automations/humidity.yaml | 14 ++++++++++++++ configuration.yaml | 3 +++ lovelace-views/overview.yaml | 1 + 6 files changed, 20 insertions(+), 56 deletions(-) delete mode 100644 automations/alarm.yaml delete mode 100644 automations/backups.yaml diff --git a/automations/alarm.yaml b/automations/alarm.yaml deleted file mode 100644 index 356124f..0000000 --- a/automations/alarm.yaml +++ /dev/null @@ -1,19 +0,0 @@ -- id: bedroom_alarm_clock - alias: bedroom alarm clock - trigger: - platform: template - value_template: "{{ states('sensor.time') == (states.input_datetime.bedroom_alarm_clock_time.attributes.timestamp | int | timestamp_custom('%H:%M', False)) }}" - condition: - condition: and - conditions: - - condition: state - entity_id: binary_sensor.workday_sensor - state: 'on' - - condition: sun - before: sunrise - action: - - service: notify.telegram_group - data: - title: 'Guten Morgen!' - message: 'Langsam dürft ihr wach werden. Es wird bald Zeit aufzustehen... :)' - diff --git a/automations/backups.yaml b/automations/backups.yaml deleted file mode 100644 index 38ec24b..0000000 --- a/automations/backups.yaml +++ /dev/null @@ -1,35 +0,0 @@ -- alias: Backup Error - trigger: - - platform: state - entity_id: binary_sensor.backup_error_occured - to: 'on' - action: - - service: notify.telegram_group - data: - title: '*Backup-Problem:*' - message: 'Es gab Fehler beim *Erstellen* des Backups. Bitte prüfen!' - - service: notify.telegram_group - data: - message: 'Anbei die Log-Datei :)' - data: - document: - file: /backuplogs/run.err.log - caption: Backup Creation Log - -- alias: Backup Sync Error - trigger: - - platform: state - entity_id: binary_sensor.backup_sync_error_occured - to: 'on' - action: - - service: notify.telegram_group - data: - title: '*Backup-Problem:*' - message: 'Es gab Fehler beim *Synchronisieren* des Backups. Bitte prüfen!' - - service: notify.telegram_group - data: - message: 'Anbei die Log-Datei :)' - data: - document: - file: /backuplogs/sync.out.log - caption: Backup Sync Log \ No newline at end of file diff --git a/automations/hassio.yaml b/automations/hassio.yaml index 96c726e..a42978f 100644 --- a/automations/hassio.yaml +++ b/automations/hassio.yaml @@ -3,7 +3,7 @@ - platform: state entity_id: updater.updater action: - service: notify.telegram_group - data_template: + service: notify.telegram_fb + data_template: title: 'Neuer Home Assistant Release' message: "Home Assistant {{ states.updater.updater.state }} ist nun verfügbar." diff --git a/automations/humidity.yaml b/automations/humidity.yaml index 8bebffb..be91d76 100644 --- a/automations/humidity.yaml +++ b/automations/humidity.yaml @@ -11,3 +11,17 @@ data: title: 'Bitte den Dachboden lüften!' message: 'Die Luftfeuchtigkeit liegt mit {{ states.sensor.livingroom_humidity.state }}% außerhalb des Grenzbereichs.' + +- alias: Badezimmer Luftfeuchtigkeit + trigger: + platform: numeric_state + entity_id: sensor.bathroom_hygrometer_humidity + below: 35 + above: 70 + for: + minutes: 3 + action: + service: notify.telegram_group + data: + title: 'Bitte das Badezimmer lüften!' + message: 'Die Luftfeuchtigkeit liegt mit {{ states.sensor.bathroom_hygrometer_humidity.state }}% außerhalb des Grenzbereichs.' diff --git a/configuration.yaml b/configuration.yaml index fe9a7a3..2902676 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -125,6 +125,9 @@ notify: - name: telegram_group platform: telegram chat_id: !secret telegram_chat_group + - name: telegram_fb + platform: telegram + chat_id: !secret telegram_chat_fb device_tracker: diff --git a/lovelace-views/overview.yaml b/lovelace-views/overview.yaml index bb32e4c..e3d67d8 100644 --- a/lovelace-views/overview.yaml +++ b/lovelace-views/overview.yaml @@ -8,6 +8,7 @@ cards: show_name: true show_state: true entities: + - sensor.bathroom_hygrometer_humidity - sensor.attic_humidity - type: vertical-stack cards: