Site updated at 2017-02-13 11:22:49 UTC

This commit is contained in:
Travis CI 2017-02-13 11:22:49 +00:00
parent eab8d82693
commit ba0150f98d
42 changed files with 320 additions and 64 deletions

View file

@ -4,7 +4,7 @@
<title><![CDATA[Home Assistant]]></title> <title><![CDATA[Home Assistant]]></title>
<link href="https://home-assistant.io/atom.xml" rel="self"/> <link href="https://home-assistant.io/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-02-13T11:01:45+00:00</updated> <updated>2017-02-13T11:20:03+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: community | Home Assistant]]></title> <title><![CDATA[Category: community | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/community/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/community/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-02-13T11:01:45+00:00</updated> <updated>2017-02-13T11:20:03+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Device-Tracking | Home Assistant]]></title> <title><![CDATA[Category: Device-Tracking | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/device-tracking/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/device-tracking/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-02-13T11:01:45+00:00</updated> <updated>2017-02-13T11:20:03+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: ESP8266 | Home Assistant]]></title> <title><![CDATA[Category: ESP8266 | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/esp8266/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/esp8266/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-02-13T11:01:45+00:00</updated> <updated>2017-02-13T11:20:03+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: How-To | Home Assistant]]></title> <title><![CDATA[Category: How-To | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/how-to/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/how-to/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-02-13T11:01:45+00:00</updated> <updated>2017-02-13T11:20:03+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: iBeacons | Home Assistant]]></title> <title><![CDATA[Category: iBeacons | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/ibeacons/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/ibeacons/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-02-13T11:01:45+00:00</updated> <updated>2017-02-13T11:20:03+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Internet-of-Things | Home Assistant]]></title> <title><![CDATA[Category: Internet-of-Things | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/internet-of-things/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/internet-of-things/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-02-13T11:01:45+00:00</updated> <updated>2017-02-13T11:20:03+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: IoT-Data | Home Assistant]]></title> <title><![CDATA[Category: IoT-Data | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/iot-data/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/iot-data/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-02-13T11:01:45+00:00</updated> <updated>2017-02-13T11:20:03+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Micropython | Home Assistant]]></title> <title><![CDATA[Category: Micropython | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/micropython/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/micropython/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-02-13T11:01:45+00:00</updated> <updated>2017-02-13T11:20:03+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: MQTT | Home Assistant]]></title> <title><![CDATA[Category: MQTT | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/mqtt/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/mqtt/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-02-13T11:01:45+00:00</updated> <updated>2017-02-13T11:20:03+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Organisation | Home Assistant]]></title> <title><![CDATA[Category: Organisation | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/organisation/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/organisation/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-02-13T11:01:45+00:00</updated> <updated>2017-02-13T11:20:03+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: OwnTracks | Home Assistant]]></title> <title><![CDATA[Category: OwnTracks | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/owntracks/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/owntracks/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-02-13T11:01:45+00:00</updated> <updated>2017-02-13T11:20:03+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Presence-Detection | Home Assistant]]></title> <title><![CDATA[Category: Presence-Detection | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/presence-detection/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/presence-detection/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-02-13T11:01:45+00:00</updated> <updated>2017-02-13T11:20:03+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Public-Service-Announcement | Home Assistant]]></title> <title><![CDATA[Category: Public-Service-Announcement | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/public-service-announcement/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/public-service-announcement/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-02-13T11:01:45+00:00</updated> <updated>2017-02-13T11:20:03+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Release-Notes | Home Assistant]]></title> <title><![CDATA[Category: Release-Notes | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/release-notes/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/release-notes/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-02-13T11:01:45+00:00</updated> <updated>2017-02-13T11:20:03+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Survey | Home Assistant]]></title> <title><![CDATA[Category: Survey | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/survey/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/survey/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-02-13T11:01:45+00:00</updated> <updated>2017-02-13T11:20:03+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Talks | Home Assistant]]></title> <title><![CDATA[Category: Talks | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/talks/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/talks/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-02-13T11:01:45+00:00</updated> <updated>2017-02-13T11:20:03+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Technology | Home Assistant]]></title> <title><![CDATA[Category: Technology | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/technology/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/technology/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-02-13T11:01:45+00:00</updated> <updated>2017-02-13T11:20:03+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: User-Stories | Home Assistant]]></title> <title><![CDATA[Category: User-Stories | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/user-stories/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/user-stories/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-02-13T11:01:45+00:00</updated> <updated>2017-02-13T11:20:03+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Video | Home Assistant]]></title> <title><![CDATA[Category: Video | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/video/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/video/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-02-13T11:01:45+00:00</updated> <updated>2017-02-13T11:20:03+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: Website | Home Assistant]]></title> <title><![CDATA[Category: Website | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/website/atom.xml" rel="self"/> <link href="https://home-assistant.io/blog/categories/website/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/> <link href="https://home-assistant.io/"/>
<updated>2017-02-13T11:01:45+00:00</updated> <updated>2017-02-13T11:20:03+00:00</updated>
<id>https://home-assistant.io/</id> <id>https://home-assistant.io/</id>
<author> <author>
<name><![CDATA[Home Assistant]]></name> <name><![CDATA[Home Assistant]]></name>

View file

@ -90,7 +90,7 @@
<hr class="divider"> <hr class="divider">
<p><img src="/images/screenshots/logbook.png" style="margin-left:10px; float: right;" height="100" /> The logbook component provides a different perspective on the history of your house by showing all the changes that happened to your house in reverse chronological order. <a href="/demo/">See the demo for a live example</a>. It depends on the <code class="highlighter-rouge">recorder</code> component for storing the data. This means that if the <code class="highlighter-rouge">recorder</code> component is set up to use e.g. mySQL as data store, the <code class="highlighter-rouge">logbook</code> component does not use the default SQLite database to store data.</p> <p><img src="/images/screenshots/logbook.png" style="margin-left:10px; float: right;" height="100" /> The logbook component provides a different perspective on the history of your house by showing all the changes that happened to your house in reverse chronological order. <a href="/demo/">See the demo for a live example</a>. It depends on the <code class="highlighter-rouge">recorder</code> component for storing the data. This means that if the <a href="/components/recorder/"><code class="highlighter-rouge">recorder</code></a> component is set up to use e.g. MySQL or PostgreSQL as data store, the <code class="highlighter-rouge">logbook</code> component does not use the default SQLite database to store data.</p>
<p>To enable the logbook in your installation, add the following to your <code class="highlighter-rouge">configuration.yaml</code> file:</p> <p>To enable the logbook in your installation, add the following to your <code class="highlighter-rouge">configuration.yaml</code> file:</p>

View file

@ -1,27 +0,0 @@
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"

View file

@ -163,6 +163,9 @@
<li> <li>
<a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a> <a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a>
</li> </li>
<li>
<a href='/cookbook/automation_telegram_presence_alert/'>Examples sending notification depending of the presence</a>
</li>
<li> <li>
<a href='/cookbook/automation_first_light/'>Examples using first light</a> <a href='/cookbook/automation_first_light/'>Examples using first light</a>
</li> </li>

View file

@ -228,6 +228,9 @@
<li> <li>
<a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a> <a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a>
</li> </li>
<li>
<a href='/cookbook/automation_telegram_presence_alert/'>Examples sending notification depending of the presence</a>
</li>
<li> <li>
Examples using first light Examples using first light
</li> </li>

View file

@ -215,6 +215,9 @@
<li> <li>
Examples for flashing lights Examples for flashing lights
</li> </li>
<li>
<a href='/cookbook/automation_telegram_presence_alert/'>Examples sending notification depending of the presence</a>
</li>
<li> <li>
<a href='/cookbook/automation_first_light/'>Examples using first light</a> <a href='/cookbook/automation_first_light/'>Examples using first light</a>
</li> </li>

View file

@ -164,6 +164,9 @@
<li> <li>
<a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a> <a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a>
</li> </li>
<li>
<a href='/cookbook/automation_telegram_presence_alert/'>Examples sending notification depending of the presence</a>
</li>
<li> <li>
<a href='/cookbook/automation_first_light/'>Examples using first light</a> <a href='/cookbook/automation_first_light/'>Examples using first light</a>
</li> </li>

View file

@ -215,6 +215,9 @@
<li> <li>
<a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a> <a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a>
</li> </li>
<li>
<a href='/cookbook/automation_telegram_presence_alert/'>Examples sending notification depending of the presence</a>
</li>
<li> <li>
<a href='/cookbook/automation_first_light/'>Examples using first light</a> <a href='/cookbook/automation_first_light/'>Examples using first light</a>
</li> </li>

View file

@ -0,0 +1,229 @@
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Examples sending notification depending of the presence - Home Assistant</title>
<meta name="author" content="Home Assistant">
<meta name="description" content="Examples sending notification depending of the presence">
<meta name="viewport" content="width=device-width">
<link rel="canonical" href="https://home-assistant.io/cookbook/automation_telegram_presence_alert/">
<meta property="fb:app_id" content="338291289691179">
<meta property="og:title" content="Examples sending notification depending of the presence">
<meta property="og:site_name" content="Home Assistant">
<meta property="og:url" content="https://home-assistant.io/cookbook/automation_telegram_presence_alert/">
<meta property="og:type" content="article">
<meta property="og:description" content="Examples sending notification depending of the presence">
<meta property="og:image" content="https://home-assistant.io/images/default-social.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@home_assistant">
<meta name="twitter:title" content="Examples sending notification depending of the presence">
<meta name="twitter:description" content="Examples sending notification depending of the presence">
<meta name="twitter:image" content="https://home-assistant.io/images/default-social.png">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet">
<link href="/atom.xml" rel="alternate" title="Home Assistant" type="application/atom+xml">
<link rel='shortcut icon' href='/images/favicon.ico' />
<link rel='icon' type='image/png' href='/images/favicon-192x192.png' sizes='192x192' />
</head>
<body >
<header>
<div class="grid-wrapper">
<div class="grid">
<div class="grid__item three-tenths lap-two-sixths palm-one-whole ha-title">
<a href="/" class="site-title">
<img width='40' src='/demo/favicon-192x192.png'>
<span>Home Assistant</span>
</a>
</div>
<div class="grid__item seven-tenths lap-four-sixths palm-one-whole">
<nav>
<input type="checkbox" id="toggle">
<label for="toggle" class="toggle" data-open="Main Menu" data-close="Close Menu"></label>
<ul class="menu pull-right">
<li><a href="/getting-started/">Getting started</a></li>
<li><a href="/components/">Components</a></li>
<li><a href="/ecosystem/">Ecosystem</a></li>
<li><a href="/cookbook/">Examples</a></li>
<li><a href="/developers/">Developers</a></li>
<li><a href="/blog/">Blog</a></li>
<li><a href="/help/">Need help?</a></li>
</ul>
</nav>
</div>
</div>
</div>
</header>
<div class="grid-wrapper">
<div class="grid grid-center">
<div class="grid__item two-thirds lap-one-whole palm-one-whole">
<article class="page">
<header>
<h1 class="title indent">
Examples Sending Notification Depending of the Presence
</h1>
</header>
<hr class="divider">
<p>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 <a href="/components/device_tracker.nmap_tracker/">nmap</a> device tracker or a similar component.</p>
<p>This example uses <a href="Telegram">/components/notify.telegram/</a> to send the notification.</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">notify</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">name</span><span class="pi">:</span> <span class="s">Telegram</span>
<span class="s">platform</span><span class="pi">:</span> <span class="s">telegram</span>
<span class="s">api_key</span><span class="pi">:</span> <span class="s">xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</span>
<span class="s">chat_id</span><span class="pi">:</span> <span class="s">xxxxxxxxx</span>
</code></pre>
</div>
<p>Add the automation rule. Change <code class="highlighter-rouge">device_name_here</code> to match the device you want to track.</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">automation</span><span class="pi">:</span>
<span class="s">trigger</span><span class="pi">:</span>
<span class="s">platform</span><span class="pi">:</span> <span class="s">state</span>
<span class="s">entity_id</span><span class="pi">:</span> <span class="s">device_tracker.device_name_here</span>
<span class="s">from</span><span class="pi">:</span> <span class="s1">'</span><span class="s">not_home'</span>
<span class="s">to</span><span class="pi">:</span> <span class="s1">'</span><span class="s">home'</span>
<span class="s">action</span><span class="pi">:</span>
<span class="s">service</span><span class="pi">:</span> <span class="s">notify.Telegram</span>
<span class="s">data</span><span class="pi">:</span>
<span class="s">message</span><span class="pi">:</span> <span class="s1">'</span><span class="s">Person</span><span class="nv"> </span><span class="s">is</span><span class="nv"> </span><span class="s">now</span><span class="nv"> </span><span class="s">home'</span>
</code></pre>
</div>
</article>
</div>
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">
<div class="grid">
<section class="aside-module grid__item one-whole lap-one-half">
<div class='edit-github'><a href='https://github.com/home-assistant/home-assistant.github.io/tree/current/source/_cookbook/automation_telegram_presence_alert.markdown'>Edit this page on GitHub</a></div>
<div class='section'>
<a href='/cookbook'>Back to the cookbook</a>
</div>
<div class='section'>
<h1 class="title delta">Automation Examples</h1>
<ul class='divided'>
<li>
<a href='/cookbook/automation_for_rainy_days/'>Automation for rainy days</a>
</li>
<li>
<a href='/cookbook/dim_lights_when_playing_media/'>Dim lights when playing media</a>
</li>
<li>
<a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a>
</li>
<li>
Examples sending notification depending of the presence
</li>
<li>
<a href='/cookbook/automation_first_light/'>Examples using first light</a>
</li>
<li>
<a href='/cookbook/automation_sun/'>Examples using the sun</a>
</li>
<li>
<a href='/cookbook/foscam_away_mode_PTZ/'>Foscam Recording during Away Mode Only using Pan/Tilt/Zoom Control and Motion Detection</a>
</li>
<li>
<a href='/cookbook/perform_actions_based_on_input_select/'>Perform actions based on input select</a>
</li>
<li>
<a href='/cookbook/restart_ha_if_wemo_switch_is_not_detected/'>Restart Home Assistant if Wemo Switch is not detected</a>
</li>
<li>
<a href='/cookbook/send_a_reminder/'>Send a reminder</a>
</li>
<li>
<a href='/cookbook/notify_if_over_threshold/'>Send notification based on sensor</a>
</li>
<li>
<a href='/cookbook/notify_if__new_ha_release/'>Send notification if new Home Assistant release</a>
</li>
<li>
<a href='/cookbook/sonos_say/'>Sonos say script to speak with text-to-speech</a>
</li>
<li>
<a href='/cookbook/automation_enocean_phue/'>Switch Philips Hue with enocean</a>
</li>
<li>
<a href='/cookbook/track_battery_level/'>Track your battery level</a>
</li>
<li>
<a href='/cookbook/turn_on_light_for_10_minutes_when_motion_detected/'>Turn on lights for 10 minutes after motion detected</a>
</li>
<li>
<a href='/cookbook/automation_using_timeinterval_inputboolean/'>Using time interval and input boolean</a>
</li>
</ul>
</div>
</section>
</div>
</aside>
</div>
</div>
<footer>
<div class="grid-wrapper">
<div class="grid">
<div class="grid__item">
<div class="copyright">
<a rel="me" href='https://twitter.com/home_assistant'><i class="icon-twitter"></i></a>
<a rel="me" href='https://facebook.com/homeassistantio'><i class="icon-facebook"></i></a>
<a rel="me" href='https://plus.google.com/110560654828510104551'><i class="icon-google-plus"></i></a>
<a rel="me" href='https://github.com/home-assistant/home-assistant'><i class="icon-github"></i></a>
<div class="credit">
Contact us at <a href='mailto:hello@home-assistant.io'>hello@home-assistant.io</a>.<br>
Website powered by <a href='http://jekyllrb.com/'>Jekyll</a> and the <a href='https://github.com/coogie/oscailte'>Oscalite theme</a>.<br />
Hosted by <a href='https://pages.github.com/'>GitHub</a> and served by <a href='https://cloudflare.com'>CloudFlare</a>.
</div>
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">home-assistant.io</span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.
</div>
</div>
</div>
</div>
</footer>
<script>
var _gaq=[['_setAccount','UA-57927901-1'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
</body>
</html>

View file

@ -149,6 +149,9 @@
<li> <li>
<a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a> <a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a>
</li> </li>
<li>
<a href='/cookbook/automation_telegram_presence_alert/'>Examples sending notification depending of the presence</a>
</li>
<li> <li>
<a href='/cookbook/automation_first_light/'>Examples using first light</a> <a href='/cookbook/automation_first_light/'>Examples using first light</a>
</li> </li>

View file

@ -188,6 +188,9 @@
<li> <li>
<a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a> <a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a>
</li> </li>
<li>
<a href='/cookbook/automation_telegram_presence_alert/'>Examples sending notification depending of the presence</a>
</li>
<li> <li>
<a href='/cookbook/automation_first_light/'>Examples using first light</a> <a href='/cookbook/automation_first_light/'>Examples using first light</a>
</li> </li>

View file

@ -191,6 +191,9 @@ The following outlines examples of the switch, services, and scripts required to
<li> <li>
<a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a> <a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a>
</li> </li>
<li>
<a href='/cookbook/automation_telegram_presence_alert/'>Examples sending notification depending of the presence</a>
</li>
<li> <li>
<a href='/cookbook/automation_first_light/'>Examples using first light</a> <a href='/cookbook/automation_first_light/'>Examples using first light</a>
</li> </li>

View file

@ -110,6 +110,9 @@ A great place to find popular configurations is on this <a href="https://github.
<li> <li>
<p><a href="/cookbook/automation_flashing_lights/">Examples for flashing lights</a></p> <p><a href="/cookbook/automation_flashing_lights/">Examples for flashing lights</a></p>
</li> </li>
<li>
<p><a href="/cookbook/automation_telegram_presence_alert/">Examples sending notification depending of the presence</a></p>
</li>
<li> <li>
<p><a href="/cookbook/automation_first_light/">Examples using first light</a></p> <p><a href="/cookbook/automation_first_light/">Examples using first light</a></p>
</li> </li>

View file

@ -161,6 +161,9 @@
<li> <li>
<a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a> <a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a>
</li> </li>
<li>
<a href='/cookbook/automation_telegram_presence_alert/'>Examples sending notification depending of the presence</a>
</li>
<li> <li>
<a href='/cookbook/automation_first_light/'>Examples using first light</a> <a href='/cookbook/automation_first_light/'>Examples using first light</a>
</li> </li>

View file

@ -155,6 +155,9 @@
<li> <li>
<a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a> <a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a>
</li> </li>
<li>
<a href='/cookbook/automation_telegram_presence_alert/'>Examples sending notification depending of the presence</a>
</li>
<li> <li>
<a href='/cookbook/automation_first_light/'>Examples using first light</a> <a href='/cookbook/automation_first_light/'>Examples using first light</a>
</li> </li>

View file

@ -277,6 +277,9 @@
<li> <li>
<a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a> <a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a>
</li> </li>
<li>
<a href='/cookbook/automation_telegram_presence_alert/'>Examples sending notification depending of the presence</a>
</li>
<li> <li>
<a href='/cookbook/automation_first_light/'>Examples using first light</a> <a href='/cookbook/automation_first_light/'>Examples using first light</a>
</li> </li>

View file

@ -205,6 +205,9 @@
<li> <li>
<a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a> <a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a>
</li> </li>
<li>
<a href='/cookbook/automation_telegram_presence_alert/'>Examples sending notification depending of the presence</a>
</li>
<li> <li>
<a href='/cookbook/automation_first_light/'>Examples using first light</a> <a href='/cookbook/automation_first_light/'>Examples using first light</a>
</li> </li>

View file

@ -148,6 +148,9 @@
<li> <li>
<a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a> <a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a>
</li> </li>
<li>
<a href='/cookbook/automation_telegram_presence_alert/'>Examples sending notification depending of the presence</a>
</li>
<li> <li>
<a href='/cookbook/automation_first_light/'>Examples using first light</a> <a href='/cookbook/automation_first_light/'>Examples using first light</a>
</li> </li>

View file

@ -163,6 +163,9 @@
<li> <li>
<a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a> <a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a>
</li> </li>
<li>
<a href='/cookbook/automation_telegram_presence_alert/'>Examples sending notification depending of the presence</a>
</li>
<li> <li>
<a href='/cookbook/automation_first_light/'>Examples using first light</a> <a href='/cookbook/automation_first_light/'>Examples using first light</a>
</li> </li>

View file

@ -152,6 +152,9 @@
<li> <li>
<a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a> <a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a>
</li> </li>
<li>
<a href='/cookbook/automation_telegram_presence_alert/'>Examples sending notification depending of the presence</a>
</li>
<li> <li>
<a href='/cookbook/automation_first_light/'>Examples using first light</a> <a href='/cookbook/automation_first_light/'>Examples using first light</a>
</li> </li>

View file

@ -159,6 +159,9 @@
<li> <li>
<a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a> <a href='/cookbook/automation_flashing_lights/'>Examples for flashing lights</a>
</li> </li>
<li>
<a href='/cookbook/automation_telegram_presence_alert/'>Examples sending notification depending of the presence</a>
</li>
<li> <li>
<a href='/cookbook/automation_first_light/'>Examples using first light</a> <a href='/cookbook/automation_first_light/'>Examples using first light</a>
</li> </li>

View file

@ -2644,6 +2644,9 @@
<loc>https://home-assistant.io/cookbook/custom_ui_by_andrey-git/</loc> <loc>https://home-assistant.io/cookbook/custom_ui_by_andrey-git/</loc>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/cookbook/automation_telegram_presence_alert/</loc>
</url>
<url>
<loc>https://home-assistant.io/details/webserver/</loc> <loc>https://home-assistant.io/details/webserver/</loc>
</url> </url>
<url> <url>
@ -2801,62 +2804,62 @@
</url> </url>
<url> <url>
<loc>https://home-assistant.io/demo/frontend.html</loc> <loc>https://home-assistant.io/demo/frontend.html</loc>
<lastmod>2017-02-13T11:00:51+00:00</lastmod> <lastmod>2017-02-13T11:19:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/demo/index.html</loc> <loc>https://home-assistant.io/demo/index.html</loc>
<lastmod>2017-02-13T11:00:51+00:00</lastmod> <lastmod>2017-02-13T11:19:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-event.html</loc> <loc>https://home-assistant.io/demo/panels/ha-panel-dev-event.html</loc>
<lastmod>2017-02-13T11:00:51+00:00</lastmod> <lastmod>2017-02-13T11:19:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-info.html</loc> <loc>https://home-assistant.io/demo/panels/ha-panel-dev-info.html</loc>
<lastmod>2017-02-13T11:00:51+00:00</lastmod> <lastmod>2017-02-13T11:19:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-service.html</loc> <loc>https://home-assistant.io/demo/panels/ha-panel-dev-service.html</loc>
<lastmod>2017-02-13T11:00:51+00:00</lastmod> <lastmod>2017-02-13T11:19:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-state.html</loc> <loc>https://home-assistant.io/demo/panels/ha-panel-dev-state.html</loc>
<lastmod>2017-02-13T11:00:51+00:00</lastmod> <lastmod>2017-02-13T11:19:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-template.html</loc> <loc>https://home-assistant.io/demo/panels/ha-panel-dev-template.html</loc>
<lastmod>2017-02-13T11:00:51+00:00</lastmod> <lastmod>2017-02-13T11:19:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/demo/panels/ha-panel-history.html</loc> <loc>https://home-assistant.io/demo/panels/ha-panel-history.html</loc>
<lastmod>2017-02-13T11:00:51+00:00</lastmod> <lastmod>2017-02-13T11:19:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/demo/panels/ha-panel-iframe.html</loc> <loc>https://home-assistant.io/demo/panels/ha-panel-iframe.html</loc>
<lastmod>2017-02-13T11:00:51+00:00</lastmod> <lastmod>2017-02-13T11:19:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/demo/panels/ha-panel-logbook.html</loc> <loc>https://home-assistant.io/demo/panels/ha-panel-logbook.html</loc>
<lastmod>2017-02-13T11:00:51+00:00</lastmod> <lastmod>2017-02-13T11:19:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/demo/panels/ha-panel-map.html</loc> <loc>https://home-assistant.io/demo/panels/ha-panel-map.html</loc>
<lastmod>2017-02-13T11:00:51+00:00</lastmod> <lastmod>2017-02-13T11:19:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/googlef4f3693c209fe788.html</loc> <loc>https://home-assistant.io/googlef4f3693c209fe788.html</loc>
<lastmod>2017-02-13T11:00:51+00:00</lastmod> <lastmod>2017-02-13T11:19:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html</loc> <loc>https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html</loc>
<lastmod>2017-02-13T11:00:51+00:00</lastmod> <lastmod>2017-02-13T11:19:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html</loc> <loc>https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html</loc>
<lastmod>2017-02-13T11:00:51+00:00</lastmod> <lastmod>2017-02-13T11:19:17+00:00</lastmod>
</url> </url>
<url> <url>
<loc>https://home-assistant.io/static/mdi-demo.html</loc> <loc>https://home-assistant.io/static/mdi-demo.html</loc>
<lastmod>2017-02-13T11:00:51+00:00</lastmod> <lastmod>2017-02-13T11:19:17+00:00</lastmod>
</url> </url>
</urlset> </urlset>