Just a copy & past of some of snips may others wanna setup too.
Enjoy and hack on!
create a custome binary sensor in you 'configuration.yaml'
# Custom binary Sensors
binary_sensor:
- platform: template
sensors:
< homematic_ip_id >_sabotage:
value_template: "{{ state_attr('binary_sensor.< homematic ip id >_state', 'sabotage') }}"
friendly_name: Sabotage < friendly_name >
create a yaml file with the notification
---
- alias: "HmIP Sabotage Notification"
initial_state: true
description: ''
trigger:
- entity_id:
- binary_sensor.< homematic_ip_id >_sabotage
platform: state
from: 'off'
to: 'on'
condition: []
action:
- service: telegram_bot.send_message
data_template:
title: "🚨"
message: "{{ trigger.to_state.attributes.friendly_name }} is manipuleted!"