Add all humidity alerts, alert view in frontend, add auto-entities card
This commit is contained in:
104
config/alerts/humidity.yaml
Normal file
104
config/alerts/humidity.yaml
Normal file
@@ -0,0 +1,104 @@
|
||||
# Elternbad
|
||||
humidity_too_high_bathroom:
|
||||
name: Elternbad Luftfeuchtigkeit zu hoch
|
||||
message: "Zur Info: Die *Luftfeuchtigkeit* im *Elternbad* hat den Grenzwert überschritten ({{ states('sensor.hygro_bathroom_parents_humidity') }}%)!"
|
||||
done_message: "Zur Info: Die *Luftfeuchtigkeit* im *Elternbad* ist wieder in Ordnung ({{ states('sensor.hygro_bathroom_parents_humidity') }}%)."
|
||||
entity_id: binary_sensor.humidity_too_high_bathroom
|
||||
state: "on"
|
||||
repeat:
|
||||
- 30
|
||||
- 180
|
||||
can_acknowledge: true
|
||||
skip_first: true
|
||||
notifiers:
|
||||
- telegram_group
|
||||
|
||||
# Kinderbad
|
||||
humidity_too_high_bathroom_kids:
|
||||
name: Kinderbad Luftfeuchtigkeit zu hoch
|
||||
message: "Zur Info: Die *Luftfeuchtigkeit* im *Kinderbad* hat den Grenzwert überschritten ({{ states('sensor.hygro_bathroom_kids_humidity') }}%)!"
|
||||
done_message: "Zur Info: Die *Luftfeuchtigkeit* im *Kinderbad* ist wieder in Ordnung ({{ states('sensor.hygro_bathroom_kids_humidity') }}%)."
|
||||
entity_id: binary_sensor.humidity_too_high_bathroom_kids
|
||||
state: "on"
|
||||
repeat:
|
||||
- 30
|
||||
- 180
|
||||
can_acknowledge: true
|
||||
skip_first: true
|
||||
notifiers:
|
||||
- telegram_group
|
||||
|
||||
# Schlafzimmer
|
||||
humidity_too_high_bedroom:
|
||||
name: Schlafzimmer Luftfeuchtigkeit zu hoch
|
||||
message: "Zur Info: Die *Luftfeuchtigkeit* im *Schlafzimmer* hat den Grenzwert überschritten ({{ states('sensor.lumi_bedroom_humidity') }}%)!"
|
||||
done_message: "Zur Info: Die *Luftfeuchtigkeit* im *Schlafzimmer* ist wieder in Ordnung ({{ states('sensor.lumi_bedroom_humidity') }}%)."
|
||||
entity_id: binary_sensor.humidity_too_high_bedroom
|
||||
state: "on"
|
||||
repeat:
|
||||
- 30
|
||||
- 180
|
||||
can_acknowledge: true
|
||||
skip_first: true
|
||||
notifiers:
|
||||
- telegram_group
|
||||
|
||||
# Wohnzimmer
|
||||
humidity_too_high_livingroom:
|
||||
name: Wohnzimmer Luftfeuchtigkeit zu hoch
|
||||
message: "Zur Info: Die *Luftfeuchtigkeit* im *Wohnzimmer* hat den Grenzwert überschritten ({{ states('sensor.humidity_4') }}%)!"
|
||||
done_message: "Zur Info: Die *Luftfeuchtigkeit* im *Wohnzimmer* ist wieder in Ordnung ({{ states('sensor.humidity_4') }}%)."
|
||||
entity_id: binary_sensor.humidity_too_high_livingroom
|
||||
state: "on"
|
||||
repeat:
|
||||
- 30
|
||||
- 180
|
||||
can_acknowledge: true
|
||||
skip_first: true
|
||||
notifiers:
|
||||
- telegram_group
|
||||
|
||||
# Gästezimmer
|
||||
humidity_too_high_guestroom:
|
||||
name: Gästezimmer Luftfeuchtigkeit zu hoch
|
||||
message: "Zur Info: Die *Luftfeuchtigkeit* im *Gästezimmer* hat den Grenzwert überschritten ({{ states('sensor.lumi_guestroom_humidity') }}%)!"
|
||||
done_message: "Zur Info: Die *Luftfeuchtigkeit* im *Gästezimmer* ist wieder in Ordnung ({{ states('sensor.lumi_guestroom_humidity') }}%)."
|
||||
entity_id: binary_sensor.humidity_too_high_guestroom
|
||||
state: "on"
|
||||
repeat:
|
||||
- 30
|
||||
- 180
|
||||
can_acknowledge: true
|
||||
skip_first: true
|
||||
notifiers:
|
||||
- telegram_group
|
||||
|
||||
# Büro
|
||||
humidity_too_high_office:
|
||||
name: Büro Luftfeuchtigkeit zu hoch
|
||||
message: "Zur Info: Die *Luftfeuchtigkeit* im *Büro* hat den Grenzwert überschritten ({{ states('sensor.lumi_office_humidity') }}%)!"
|
||||
done_message: "Zur Info: Die *Luftfeuchtigkeit* im *Büro* ist wieder in Ordnung ({{ states('sensor.lumi_office_humidity') }}%)."
|
||||
entity_id: binary_sensor.humidity_too_high_office
|
||||
state: "on"
|
||||
repeat:
|
||||
- 30
|
||||
- 180
|
||||
can_acknowledge: true
|
||||
skip_first: true
|
||||
notifiers:
|
||||
- telegram_group
|
||||
|
||||
# Dachboden
|
||||
humidity_too_high_attic:
|
||||
name: Dachboden Luftfeuchtigkeit zu hoch
|
||||
message: "Zur Info: Die *Luftfeuchtigkeit* im *Dachboden* hat den Grenzwert überschritten ({{ states('sensor.attic_humidity_2') }}%)!"
|
||||
done_message: "Zur Info: Die *Luftfeuchtigkeit* im *Dachboden* ist wieder in Ordnung ({{ states('sensor.attic_humidity_2') }}%)."
|
||||
entity_id: binary_sensor.humidity_too_high_attic
|
||||
state: "on"
|
||||
repeat:
|
||||
- 30
|
||||
- 180
|
||||
can_acknowledge: true
|
||||
skip_first: true
|
||||
notifiers:
|
||||
- telegram_group
|
||||
@@ -4,8 +4,11 @@ bathroom_window_open:
|
||||
done_message: "Zur Info: Das *Badezimmer-Fenster* ist wieder *geschlossen*."
|
||||
entity_id: binary_sensor.lumi_bathroom_window_magnet
|
||||
state: "on"
|
||||
repeat: 10
|
||||
can_acknowledge: false
|
||||
repeat:
|
||||
- 15
|
||||
- 10
|
||||
- 30
|
||||
can_acknowledge: true
|
||||
skip_first: true
|
||||
notifiers:
|
||||
- telegram_group
|
||||
|
||||
22
config/sensors_binary/humidity.yaml
Normal file
22
config/sensors_binary/humidity.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
- platform: template
|
||||
sensors:
|
||||
humidity_too_high_bathroom:
|
||||
value_template: "{{ states('sensor.hygro_bathroom_parents_humidity') | float > 68 }}"
|
||||
|
||||
humidity_too_high_bathroom_kids:
|
||||
value_template: "{{ states('sensor.hygro_bathroom_kids_humidity') | float > 68 }}"
|
||||
|
||||
humidity_too_high_bedroom:
|
||||
value_template: "{{ states('sensor.lumi_bedroom_humidity') | float > 68 }}"
|
||||
|
||||
humidity_too_high_livingroom:
|
||||
value_template: "{{ states('.sensor.humidity_4') | float > 68 }}"
|
||||
|
||||
humidity_too_high_guestroom:
|
||||
value_template: "{{ states('sensor.lumi_guestroom_humidity') | float > 68 }}"
|
||||
|
||||
humidity_too_high_office:
|
||||
value_template: "{{ states('sensor.lumi_office_humidity') | float > 68 }}"
|
||||
|
||||
humidity_too_high_attic:
|
||||
value_template: "{{ states('sensor.attic_humidity_2') | float > 68 }}"
|
||||
@@ -2,15 +2,18 @@
|
||||
country: DE
|
||||
province: NW
|
||||
workdays: [ mon, tue, wed, thu, fri ]
|
||||
|
||||
- platform: tod
|
||||
name: Morning
|
||||
after: '05:00'
|
||||
before: '11:00'
|
||||
|
||||
- platform: ping
|
||||
name: desktop_ping
|
||||
host: !secret desktop_ip
|
||||
count: 2
|
||||
scan_interval: 15
|
||||
|
||||
- platform: template
|
||||
sensors:
|
||||
anyone_home:
|
||||
|
||||
25
config/views/alerts.yaml
Normal file
25
config/views/alerts.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
icon: mdi:bell
|
||||
path: alerts
|
||||
cards:
|
||||
- type: custom:auto-entities
|
||||
show_empty: false
|
||||
card:
|
||||
type: entities
|
||||
title: Active Alerts
|
||||
show_header_toggle: false
|
||||
filter:
|
||||
include:
|
||||
- domain: alert
|
||||
exclude:
|
||||
- state: "idle"
|
||||
- type: custom:auto-entities
|
||||
show_empty: false
|
||||
card:
|
||||
type: entities
|
||||
title: Inactive Alerts
|
||||
show_header_toggle: false
|
||||
filter:
|
||||
include:
|
||||
- domain: alert
|
||||
exclude:
|
||||
- state: "on"
|
||||
مرجع در شماره جدید
Block a user