Call notification
Automation to get a notification when we missed a call or somebody speaks to the answering machine.
yaml
---
# Festnetzbenachrichtigung
alias: Festnetzbenachrichtigung
id: <id>
description: "Benachrichtigen bei verpassten anrufen"
trigger:
- platform: state
entity_id: sensor.fritz_box_7590_ax_anrufmonitor_telefonbuch
from: ringing
condition: []
action:
- if:
- condition: template
value_template: "{{ trigger.to_state.state == 'idle' }}"
then:
- service: script.notify_engine
data:
title: |
📞 Verpasster Anruf 📞
value1: |
{{ states.var.callmon_name.state }} ({{
states.var.callmon_number.state }}) hat am {{
states.var.callmon_date.state }} um {{ states.var.callmon_time.state
}} Uhr angerufen.
who: "home"
tag_id: "information"
group: "Telephone"
- if:
- condition: template
value_template: "{{ trigger.to_state.state == 'talking' }}"
- condition: template
value_template: "{{ trigger.to_state.attributes.device == '40' }}"
then:
- service: script.notify_engine
data:
title: |
📞 Verpasster Anruf - Weiterleitung AB 📞
value1: |
{{ states.var.callmon_name.state }} ({{
states.var.callmon_number.state }}) hat am {{
states.var.callmon_date.state }} um {{ states.var.callmon_time.state
}} Uhr angerufen und wird jetzt auf den AB umgeleitet.
who: "home"
tag_id: "information"
group: "Telephone"
mode: single