Skip to content

Commit 62db815

Browse files
committed
Fix markdown
1 parent 31d363c commit 62db815

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed
Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,30 @@
1-
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.
2-
It will only work if you are using nmap or similar component.
3-
I am using the ddwrt component to get a list of connected devices on my network.
1+
---
2+
layout: page
3+
title: "Examples sending notification depending of the presence"
4+
description: "Examples sending notification depending of the presence"
5+
date: 2017-02-12 19:05
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
ha_category: Automation Examples
11+
---
412

5-
follow these isntructions to get api_key and chat_id
6-
https://home-assistant.io/components/notify.telegram/
13+
This will send a message when someone in your known devices list connects to your local network. In other words, when someone arrives home. It will only work if you are using the [nmap](/components/device_tracker.nmap_tracker/) device tracker or a similar component.
714

8-
// Add the telegram component
15+
This example uses [/components/notify.telegram/](Telegram) to send the notification.
16+
17+
```yaml
918
notify:
1019
- name: Telegram
1120
platform: telegram
1221
api_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1322
chat_id: xxxxxxxxx
14-
15-
//add the automation component
16-
//Note: device_name_here should be whatever the device is named in known devices file.
23+
```
24+
25+
Add the automation rule. Change `device_name_here` to match the device you want to track.
1726

27+
```yaml
1828
automation:
1929
trigger:
2030
platform: state
@@ -24,4 +34,5 @@ automation:
2434
action:
2535
service: notify.Telegram
2636
data:
27-
message: "Person is now home"
37+
message: 'Person is now home'
38+
```

0 commit comments

Comments
 (0)