Add extension

This commit is contained in:
Fabian Affolter 2017-02-13 12:16:54 +01:00
parent cd3427f422
commit 31d363c2c9
No known key found for this signature in database
GPG key ID: DDF3D6F44AAB1336

View file

@ -0,0 +1,27 @@
This will send an alert when someone in your known devices list connects to the networt via wifi. In other words, when someone arrives home.
It will only work if you are using nmap or similar component.
I am using the ddwrt component to get a list of connected devices on my network.
follow these isntructions to get api_key and chat_id
https://home-assistant.io/components/notify.telegram/
// Add the telegram component
notify:
- name: Telegram
platform: telegram
api_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
chat_id: xxxxxxxxx
//add the automation component
//Note: device_name_here should be whatever the device is named in known devices file.
automation:
trigger:
platform: state
entity_id: device_tracker.device_name_here
from: 'not_home'
to: 'home'
action:
service: notify.Telegram
data:
message: "Person is now home"