This commit is contained in:
Florian Brinker 2019-02-16 23:15:11 +01:00
parent e81a4f0b9d
commit 80ebaa8e55
6 changed files with 20 additions and 56 deletions

View File

@ -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... :)'

View File

@ -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

View File

@ -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."

View File

@ -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.'

View File

@ -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:

View File

@ -8,6 +8,7 @@ cards:
show_name: true
show_state: true
entities:
- sensor.bathroom_hygrometer_humidity
- sensor.attic_humidity
- type: vertical-stack
cards: