Site updated at 2016-03-12 19:38:21 UTC
This commit is contained in:
parent
f1e3204aa7
commit
9690c7de8e
106 changed files with 2221 additions and 1195 deletions
|
@ -194,6 +194,9 @@
|
|||
<li><a href='/components/light.mqtt/'>
|
||||
MQTT Light
|
||||
</a></li>
|
||||
<li><a href='/components/lock.mqtt/'>
|
||||
MQTT Lock
|
||||
</a></li>
|
||||
<li><a href='/components/notify.mqtt/'>
|
||||
MQTT Notifications
|
||||
</a></li>
|
||||
|
|
|
@ -182,6 +182,9 @@
|
|||
<li><a href='/components/light.mqtt/'>
|
||||
MQTT Light
|
||||
</a></li>
|
||||
<li><a href='/components/lock.mqtt/'>
|
||||
MQTT Lock
|
||||
</a></li>
|
||||
<li><a href='/components/notify.mqtt/'>
|
||||
MQTT Notifications
|
||||
</a></li>
|
||||
|
|
|
@ -137,9 +137,15 @@
|
|||
<li><strong>port</strong> <em>Optional</em>: The port that the camera is running on. The default is 88.</li>
|
||||
<li><strong>name</strong> <em>Optional</em>: This parameter allows you to override the name of your camera.</li>
|
||||
<li><strong>username</strong> <em>Required</em>: The username for accessing your camera.</li>
|
||||
<li><strong>password</strong> <em>Required</em>: The password for accessing your camera.</li>
|
||||
<li><strong>password</strong> <em>Required</em>: The password for accessing your camera.
|
||||
<ul>
|
||||
<li><strong>Note</strong>: There seems to be some issues within Foscam with lengthy passwords and passwords containing certain symbols. Be sure to check your camera’s documentation.</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h3><a class="title-link" name="control-foscam-ptz-pantiltzoom---homeaway" href="#control-foscam-ptz-pantiltzoom---homeaway"></a> Control Foscam PTZ (Pan/Tilt/Zoom) - Home/Away</h3>
|
||||
<p>Foscam Webcams which support CGI Commands can be controlled by Home Assistant (<a href="http://www.ipcamcontrol.net/files/Foscam%20IPCamera%20CGI%20User%20Guide-V1.0.4.pdf">Source</a>). For an example of how this can be done, see the <a href="/cookbook/foscam_away_mode_PTZ/">Foscam IP Camera Pan, Tilt, Zoom Control</a> Cookbook entry.</p>
|
||||
|
||||
|
||||
</article>
|
||||
|
|
|
@ -172,6 +172,9 @@
|
|||
<li><a href='/components/light.mqtt/'>
|
||||
MQTT Light
|
||||
</a></li>
|
||||
<li><a href='/components/lock.mqtt/'>
|
||||
MQTT Lock
|
||||
</a></li>
|
||||
<li><a href='/components/notify.mqtt/'>
|
||||
MQTT Notifications
|
||||
</a></li>
|
||||
|
|
|
@ -123,11 +123,16 @@
|
|||
<div class="code"><pre><span class="comment"># Example configuration.yaml entry</span>
|
||||
<span class="key">device_tracker</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">owntracks</span></span>
|
||||
<span class="key">max_gps_accuracy</span>: <span class="string"><span class="content">200</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>There is no further configuration needed for tracking Owntracks devices.</p>
|
||||
<p>Configuration variables:</p>
|
||||
|
||||
<ul>
|
||||
<li><strong>max_gps_accuracy</strong> (<em>Optional</em>): Sometimes Owntracks can report GPS location with a very low accuracy (few kilometers). That can trigger false zoning in your Home Assistant installation. With the parameter, you can filter these GPS reports. The number has to be in meter. For example, if you put 200 only GPS report with an accuracy under 200 will be take in account.</li>
|
||||
</ul>
|
||||
|
||||
<h3><a class="title-link" name="using-owntracks-with-other-device-trackers" href="#using-owntracks-with-other-device-trackers"></a> Using Owntracks with other device trackers</h3>
|
||||
<p>Owntracks can also be used with other device trackers, such as <a href="/components/device_tracker.nmap_scanner/">Nmap</a> or <a href="/components/device_tracker.netgear/">Netgear</a>. To do this, fill in the <code>mac</code> field to the Owntracks entry in <code>known_devices.yaml</code> with the MAC address of the device you want to track. This way the state of the device will be determined by the source that reported last.</p>
|
||||
|
|
199
components/discoverable/index.html
Normal file
199
components/discoverable/index.html
Normal file
|
@ -0,0 +1,199 @@
|
|||
<!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>Discoverable - Home Assistant</title>
|
||||
<meta name="author" content="Paulus Schoutsen">
|
||||
<meta name="description" content="Instructions how to setup the discoverable component with Home Assistant.">
|
||||
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="canonical" href="https://home-assistant.io/components/discoverable/">
|
||||
|
||||
<meta property="fb:app_id" content="338291289691179">
|
||||
<meta property="og:title" content="Discoverable">
|
||||
<meta property="og:site_name" content="Home Assistant">
|
||||
<meta property="og:url" content="https://home-assistant.io/components/discoverable/">
|
||||
<meta property="og:type" content="article">
|
||||
<meta property="og:description" content="Instructions how to setup the discoverable component with Home Assistant.">
|
||||
<meta property="og:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
|
||||
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:site" content="@home_assistant">
|
||||
|
||||
<meta name="twitter:title" content="Discoverable">
|
||||
<meta name="twitter:description" content="Instructions how to setup the discoverable component with Home Assistant.">
|
||||
<meta name="twitter:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.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>Getting started <i class="icon icon-caret-down"></i></a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/'>Installing Home Assistant</a></li>
|
||||
<li><a href='/getting-started/configuration/'>Configuration basics</a></li>
|
||||
<li><a href='/getting-started/devices/'>Adding devices</a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence detection</a></li>
|
||||
<li><a href='/getting-started/automation/'>Automation</a></li>
|
||||
<li><a href='/getting-started/templating/'>Templating</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href='/components/'>Components</a></li>
|
||||
<li><a href='/cookbook'>Examples</a></li>
|
||||
<li>
|
||||
<a>Developers <i class="icon icon-caret-down"></i></a>
|
||||
<ul>
|
||||
<li><a href="/developers/">Setup Development</a></li>
|
||||
<li><a href="/developers/architecture/">Architecture</a></li>
|
||||
<li><a href="/developers/frontend/">Frontend development</a></li>
|
||||
<li><a href="/developers/creating_components/">
|
||||
Creating components
|
||||
</a></li>
|
||||
<li><a href="/developers/add_new_platform/">
|
||||
Adding platform support
|
||||
</a></li>
|
||||
<li><a href="/developers/api/">API</a></li>
|
||||
<li><a href="/developers/credits/">Credits</a></li>
|
||||
</ul>
|
||||
</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">
|
||||
Discoverable
|
||||
</h1>
|
||||
</header>
|
||||
<hr class="divider">
|
||||
|
||||
|
||||
<p>The Home Assistant discovery protocol is a lightweight feature that introduces support for Home Assistant servers to be discoverable. This will allow <a href="https://github.com/balloob/micropython-home-assistant">Home Assistant instances</a> running with <a href="https://micropython.org/">MicroPython</a> to get started without any required configuration (Example from the <a href="https://github.com/balloob/micropython-home-assistant">MicroPython Home Assistant</a> documentation):</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="keyword">from</span> <span class="include">homeassistant.discovery</span> <span class="keyword">import</span> <span class="include">get_instance</span>()
|
||||
|
||||
hass = get_instance()
|
||||
|
||||
<span class="keyword">for</span> state <span class="keyword">in</span> hass.states():
|
||||
print(state)
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>To enable <code>discovery</code> in your installation, add the following to your <code>configuration.yaml</code> file:</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="comment"># Example configuration.yml entry</span>
|
||||
<span class="key">discoverable</span>:
|
||||
<span class="key">expose_password</span>: <span class="string"><span class="content">yes</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>Configuration variables:</p>
|
||||
|
||||
<ul>
|
||||
<li><strong>expose_password</strong> (<em>Optional</em>): It is up to the user to expose the password in the discovery response (Default: off). If password not exposed, uHA instances will have to provide it (<code>get_instance('my password')</code>).</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</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/balloob/home-assistant.io/tree/master/source/_components/discoverable.markdown'>Edit this page on GitHub</a></div>
|
||||
<div class='brand-logo-container section'>
|
||||
</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://github.com/balloob/home-assistant'><i class="icon-github"></i></a>
|
||||
|
||||
<div class="credit">
|
||||
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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
|
||||
<![endif]-->
|
||||
|
||||
<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>
|
|
@ -194,11 +194,14 @@ Example of groups shown as views in the frontend.
|
|||
<li>
|
||||
Group
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/scene.hunterdouglas_powerview/'>PowerView Scenes</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/proximity/'>Proximity</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/scene/'>Scenes</a>
|
||||
<a href='/components/scene.home_assistant/'>Scenes</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/zone/'>Zone</a>
|
||||
|
|
|
@ -722,6 +722,8 @@ Support for these components is provided by the Home Assistant community.
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
<a href='/components/discovery/'
|
||||
class='other'
|
||||
style='display: none'>
|
||||
|
@ -1498,6 +1500,20 @@ Support for these components is provided by the Home Assistant community.
|
|||
|
||||
|
||||
|
||||
<a href='/components/lock.mqtt/'
|
||||
class='lock'
|
||||
style='display: none'>
|
||||
<div class='img-container'>
|
||||
|
||||
<img src='/images/supported_brands/mqtt.png'>
|
||||
|
||||
</div>
|
||||
<div class='title'>MQTT Lock</div>
|
||||
<div class='category'>Lock</div>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<a href='/components/notify.mqtt/'
|
||||
class='notifications'
|
||||
style='display: none'>
|
||||
|
@ -1988,6 +2004,20 @@ Support for these components is provided by the Home Assistant community.
|
|||
|
||||
|
||||
|
||||
<a href='/components/scene.hunterdouglas_powerview/'
|
||||
class='organization'
|
||||
style='display: none'>
|
||||
<div class='img-container'>
|
||||
|
||||
<img src='/images/supported_brands/hunter-douglas-powerview.png'>
|
||||
|
||||
</div>
|
||||
<div class='title'>PowerView Scenes</div>
|
||||
<div class='category'>Organization</div>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<a href='/components/device_sun_light_trigger/'
|
||||
class='automation'
|
||||
style='display: none'>
|
||||
|
@ -2324,7 +2354,7 @@ Support for these components is provided by the Home Assistant community.
|
|||
|
||||
|
||||
|
||||
<a href='/components/scene/'
|
||||
<a href='/components/scene.home_assistant/'
|
||||
class='organization'
|
||||
style='display: none'>
|
||||
<div class='img-container'>
|
||||
|
|
|
@ -222,6 +222,9 @@
|
|||
<li><a href='/components/device_tracker.mqtt/'>
|
||||
MQTT Device Tracker
|
||||
</a></li>
|
||||
<li><a href='/components/lock.mqtt/'>
|
||||
MQTT Lock
|
||||
</a></li>
|
||||
<li><a href='/components/notify.mqtt/'>
|
||||
MQTT Notifications
|
||||
</a></li>
|
||||
|
|
|
@ -214,6 +214,33 @@ The light component supports multiple entries in <code>configuration.yaml</code>
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
<h3><a class="title-link" name="service-lighttoggle" href="#service-lighttoggle"></a> Service <code>light.toggle</code></h3>
|
||||
|
||||
<p>Toggles the state of one or multiple lights using <a href="/components/group/">groups</a>.</p>
|
||||
|
||||
<p><em>Note</em>: If <code>light.toggle</code> is used for a group of lights, it will toggle the individual state of each light.</p>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Service data attribute</th>
|
||||
<th>Optional</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><code>entity_id</code></td>
|
||||
<td>no</td>
|
||||
<td>String or list of strings that point at <code>entity_id</code>s of lights. Else targets all.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>transition</code></td>
|
||||
<td>no</td>
|
||||
<td>Integer that represents the time the light should take to transition to the new state.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
</article>
|
||||
|
|
265
components/lock.mqtt/index.html
Normal file
265
components/lock.mqtt/index.html
Normal file
|
@ -0,0 +1,265 @@
|
|||
<!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>MQTT Lock - Home Assistant</title>
|
||||
<meta name="author" content="Paulus Schoutsen">
|
||||
<meta name="description" content="Instructions how to integrate MQTT locks into Home Assistant.">
|
||||
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="canonical" href="https://home-assistant.io/components/lock.mqtt/">
|
||||
|
||||
<meta property="fb:app_id" content="338291289691179">
|
||||
<meta property="og:title" content="MQTT Lock">
|
||||
<meta property="og:site_name" content="Home Assistant">
|
||||
<meta property="og:url" content="https://home-assistant.io/components/lock.mqtt/">
|
||||
<meta property="og:type" content="article">
|
||||
<meta property="og:description" content="Instructions how to integrate MQTT locks into Home Assistant.">
|
||||
<meta property="og:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
|
||||
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:site" content="@home_assistant">
|
||||
|
||||
<meta name="twitter:title" content="MQTT Lock">
|
||||
<meta name="twitter:description" content="Instructions how to integrate MQTT locks into Home Assistant.">
|
||||
<meta name="twitter:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.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>Getting started <i class="icon icon-caret-down"></i></a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/'>Installing Home Assistant</a></li>
|
||||
<li><a href='/getting-started/configuration/'>Configuration basics</a></li>
|
||||
<li><a href='/getting-started/devices/'>Adding devices</a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence detection</a></li>
|
||||
<li><a href='/getting-started/automation/'>Automation</a></li>
|
||||
<li><a href='/getting-started/templating/'>Templating</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href='/components/'>Components</a></li>
|
||||
<li><a href='/cookbook'>Examples</a></li>
|
||||
<li>
|
||||
<a>Developers <i class="icon icon-caret-down"></i></a>
|
||||
<ul>
|
||||
<li><a href="/developers/">Setup Development</a></li>
|
||||
<li><a href="/developers/architecture/">Architecture</a></li>
|
||||
<li><a href="/developers/frontend/">Frontend development</a></li>
|
||||
<li><a href="/developers/creating_components/">
|
||||
Creating components
|
||||
</a></li>
|
||||
<li><a href="/developers/add_new_platform/">
|
||||
Adding platform support
|
||||
</a></li>
|
||||
<li><a href="/developers/api/">API</a></li>
|
||||
<li><a href="/developers/credits/">Credits</a></li>
|
||||
</ul>
|
||||
</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">
|
||||
MQTT Lock
|
||||
</h1>
|
||||
</header>
|
||||
<hr class="divider">
|
||||
|
||||
|
||||
<p>The <code>mqtt</code> lock platform let you control your MQTT enabled locks.</p>
|
||||
|
||||
<p>In an ideal scenario, the MQTT device will have a <code>state_topic</code> to publish state changes. If these messages are published with RETAIN flag, the MQTT lock will receive an instant state update after subscription and will start with correct state. Otherwise, the initial state of the switch will be false/unlocked.</p>
|
||||
|
||||
<p>When a <code>state_topic</code> is not available, the lock will work in optimistic mode. In this mode, the lock will immediately change state after every command. Otherwise, the lock will wait for state confirmation from device (message from <code>state_topic</code>).</p>
|
||||
|
||||
<p>Optimistic mode can be forced, even if state topic is available. Try to enable it, if experiencing incorrect lock operation.</p>
|
||||
|
||||
<p>To enable MQTT locks in your installation, add the following to your <code>configuration.yaml</code> file:</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="comment"># Example configuration.yml entry</span>
|
||||
<span class="key">lock</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">mqtt</span></span>
|
||||
<span class="key">name</span>: <span class="string"><span class="content">Frontdoor </span></span>
|
||||
<span class="key">state_topic</span>: <span class="string"><span class="delimiter">"</span><span class="content">home/frontdoor/</span><span class="delimiter">"</span></span>
|
||||
<span class="key">command_topic</span>: <span class="string"><span class="delimiter">"</span><span class="content">home/frontdoor/set</span><span class="delimiter">"</span></span>
|
||||
<span class="key">payload_lock</span>: <span class="string"><span class="delimiter">"</span><span class="content">LOCK</span><span class="delimiter">"</span></span>
|
||||
<span class="key">payload_unlock</span>: <span class="string"><span class="delimiter">"</span><span class="content">UNLOCK</span><span class="delimiter">"</span></span>
|
||||
<span class="key">optimistic</span>: <span class="string"><span class="content">false</span></span>
|
||||
<span class="key">qos</span>: <span class="string"><span class="content">0</span></span>
|
||||
<span class="key">retain</span>: <span class="string"><span class="content">true</span></span>
|
||||
<span class="key">value_template</span>: <span class="string"><span class="content">'{{ value.x }}'</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>Configuration variables:</p>
|
||||
|
||||
<ul>
|
||||
<li><strong>name</strong> (<em>Optional</em>): The name of the lock. Default is ‘MQTT Lock’.</li>
|
||||
<li><strong>state_topic</strong> (<em>Optional</em>): The MQTT topic subscribed to receive state updates.</li>
|
||||
<li><strong>command_topic</strong> (<em>Required</em>): The MQTT topic to publish commands to change the lock state.</li>
|
||||
<li><strong>payload_lock</strong> (<em>Optional</em>): The payload that represents enabled/locked state. Default is “LOCK”.</li>
|
||||
<li><strong>payload_unlock</strong> (<em>Optional</em>): The payload that represents disabled/unlocked state. Default is “UNLOCK”.</li>
|
||||
<li><strong>optimistic</strong> (<em>Optional</em>): Flag that defines if lock works in optimistic mode. Default is true if no state topic defined, else false.</li>
|
||||
<li><strong>qos</strong> (<em>Optional</em>): The maximum QoS level of the state topic. Default is 0 and will also be used to publishing messages.</li>
|
||||
<li><strong>retain</strong> (<em>Optional</em>): If the published message should have the retain flag on or not.</li>
|
||||
<li><strong>value_template</strong> (<em>Optional</em>): Defines a <a href="/getting-started/templating/">template</a> to extract a value from the payload.</li>
|
||||
</ul>
|
||||
|
||||
<p class="note warning">
|
||||
Make sure that your topic match exact. <code>some-topic/</code> and <code>some-topic</code> are different topics.
|
||||
</p>
|
||||
|
||||
|
||||
</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/balloob/home-assistant.io/tree/master/source/_components/lock.mqtt.markdown'>Edit this page on GitHub</a></div>
|
||||
<div class='brand-logo-container section'>
|
||||
<img src='/images/supported_brands/mqtt.png' />
|
||||
</div>
|
||||
<div class='section'>
|
||||
This is a platform for
|
||||
<a href='/components/lock/'>the Locks component</a>.
|
||||
</div>
|
||||
<div class='section'>
|
||||
<h1 class='title delta'>Related components</h1>
|
||||
<ul class='divided'>
|
||||
<li><a href='/components/mqtt/'>
|
||||
MQTT
|
||||
</a></li>
|
||||
<li><a href='/components/alarm_control_panel.mqtt/'>
|
||||
MQTT Alarm Control Panel
|
||||
</a></li>
|
||||
<li><a href='/components/binary_sensor.mqtt/'>
|
||||
MQTT Binary Sensor
|
||||
</a></li>
|
||||
<li><a href='/components/device_tracker.mqtt/'>
|
||||
MQTT Device Tracker
|
||||
</a></li>
|
||||
<li><a href='/components/light.mqtt/'>
|
||||
MQTT Light
|
||||
</a></li>
|
||||
<li><a href='/components/notify.mqtt/'>
|
||||
MQTT Notifications
|
||||
</a></li>
|
||||
<li><a href='/components/rollershutter.mqtt/'>
|
||||
MQTT Rollershutter
|
||||
</a></li>
|
||||
<li><a href='/components/sensor.mqtt/'>
|
||||
MQTT Sensor
|
||||
</a></li>
|
||||
<li><a href='/components/switch.mqtt/'>
|
||||
MQTT Switch
|
||||
</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class='section'>
|
||||
<h1 class="title delta">Category Lock</h1>
|
||||
<ul class='divided'>
|
||||
<li>
|
||||
MQTT Lock
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/lock.verisure/'>Verisure Lock</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/lock.wink/'>Wink Lock</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://github.com/balloob/home-assistant'><i class="icon-github"></i></a>
|
||||
|
||||
<div class="credit">
|
||||
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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
|
||||
<![endif]-->
|
||||
|
||||
<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>
|
|
@ -158,6 +158,9 @@
|
|||
<div class='section'>
|
||||
<h1 class="title delta">Category Lock</h1>
|
||||
<ul class='divided'>
|
||||
<li>
|
||||
<a href='/components/lock.mqtt/'>MQTT Lock</a>
|
||||
</li>
|
||||
<li>
|
||||
Verisure Lock
|
||||
</li>
|
||||
|
|
|
@ -164,6 +164,9 @@
|
|||
<div class='section'>
|
||||
<h1 class="title delta">Category Lock</h1>
|
||||
<ul class='divided'>
|
||||
<li>
|
||||
<a href='/components/lock.mqtt/'>MQTT Lock</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/lock.verisure/'>Verisure Lock</a>
|
||||
</li>
|
||||
|
|
|
@ -164,6 +164,9 @@
|
|||
</div>
|
||||
<h1 class='title delta'>Platforms</h1>
|
||||
<ul class='divided'>
|
||||
<li><a href='/components/lock.mqtt/'>
|
||||
MQTT Lock
|
||||
</a></li>
|
||||
<li><a href='/components/lock.verisure/'>
|
||||
Verisure Lock
|
||||
</a></li>
|
||||
|
|
|
@ -365,6 +365,9 @@ Home Assistant will automatically load the correct certificate if you connect to
|
|||
<li><a href='/components/light.mqtt/'>
|
||||
MQTT Light
|
||||
</a></li>
|
||||
<li><a href='/components/lock.mqtt/'>
|
||||
MQTT Lock
|
||||
</a></li>
|
||||
<li><a href='/components/notify.mqtt/'>
|
||||
MQTT Notifications
|
||||
</a></li>
|
||||
|
|
|
@ -176,6 +176,9 @@
|
|||
<li><a href='/components/light.mqtt/'>
|
||||
MQTT Light
|
||||
</a></li>
|
||||
<li><a href='/components/lock.mqtt/'>
|
||||
MQTT Lock
|
||||
</a></li>
|
||||
<li><a href='/components/rollershutter.mqtt/'>
|
||||
MQTT Rollershutter
|
||||
</a></li>
|
||||
|
|
|
@ -191,11 +191,14 @@
|
|||
<li>
|
||||
<a href='/components/group/'>Group</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/scene.hunterdouglas_powerview/'>PowerView Scenes</a>
|
||||
</li>
|
||||
<li>
|
||||
Proximity
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/scene/'>Scenes</a>
|
||||
<a href='/components/scene.home_assistant/'>Scenes</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/zone/'>Zone</a>
|
||||
|
|
|
@ -188,6 +188,9 @@
|
|||
<li><a href='/components/light.mqtt/'>
|
||||
MQTT Light
|
||||
</a></li>
|
||||
<li><a href='/components/lock.mqtt/'>
|
||||
MQTT Lock
|
||||
</a></li>
|
||||
<li><a href='/components/notify.mqtt/'>
|
||||
MQTT Notifications
|
||||
</a></li>
|
||||
|
|
|
@ -12,12 +12,12 @@
|
|||
<meta name="description" content="Instructions how to setup scenes within Home Assistant.">
|
||||
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="canonical" href="https://home-assistant.io/components/scene/">
|
||||
<link rel="canonical" href="https://home-assistant.io/components/scene.home_assistant/">
|
||||
|
||||
<meta property="fb:app_id" content="338291289691179">
|
||||
<meta property="og:title" content="Scenes">
|
||||
<meta property="og:site_name" content="Home Assistant">
|
||||
<meta property="og:url" content="https://home-assistant.io/components/scene/">
|
||||
<meta property="og:url" content="https://home-assistant.io/components/scene.home_assistant/">
|
||||
<meta property="og:type" content="article">
|
||||
<meta property="og:description" content="Instructions how to setup scenes within Home Assistant.">
|
||||
<meta property="og:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
|
||||
|
@ -150,16 +150,23 @@
|
|||
|
||||
|
||||
<section class="aside-module grid__item one-whole lap-one-half">
|
||||
<div class='edit-github'><a href='https://github.com/balloob/home-assistant.io/tree/master/source/_components/scene.markdown'>Edit this page on GitHub</a></div>
|
||||
<div class='edit-github'><a href='https://github.com/balloob/home-assistant.io/tree/master/source/_components/scene.home_assistant.markdown'>Edit this page on GitHub</a></div>
|
||||
<div class='brand-logo-container section'>
|
||||
<img src='/images/supported_brands/home-assistant.png' />
|
||||
</div>
|
||||
<div class='section'>
|
||||
This is a platform for
|
||||
<a href=''>the component</a>.
|
||||
</div>
|
||||
<div class='section'>
|
||||
<h1 class="title delta">Category Organization</h1>
|
||||
<ul class='divided'>
|
||||
<li>
|
||||
<a href='/components/group/'>Group</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/scene.hunterdouglas_powerview/'>PowerView Scenes</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/proximity/'>Proximity</a>
|
||||
</li>
|
213
components/scene.hunterdouglas_powerview/index.html
Normal file
213
components/scene.hunterdouglas_powerview/index.html
Normal file
|
@ -0,0 +1,213 @@
|
|||
<!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>PowerView Scenes - Home Assistant</title>
|
||||
<meta name="author" content="Paulus Schoutsen">
|
||||
<meta name="description" content="Instructions how to setup Hunter Douglas PowerView scenes within Home Assistant.">
|
||||
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="canonical" href="https://home-assistant.io/components/scene.hunterdouglas_powerview/">
|
||||
|
||||
<meta property="fb:app_id" content="338291289691179">
|
||||
<meta property="og:title" content="PowerView Scenes">
|
||||
<meta property="og:site_name" content="Home Assistant">
|
||||
<meta property="og:url" content="https://home-assistant.io/components/scene.hunterdouglas_powerview/">
|
||||
<meta property="og:type" content="article">
|
||||
<meta property="og:description" content="Instructions how to setup Hunter Douglas PowerView scenes within Home Assistant.">
|
||||
<meta property="og:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.png">
|
||||
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:site" content="@home_assistant">
|
||||
|
||||
<meta name="twitter:title" content="PowerView Scenes">
|
||||
<meta name="twitter:description" content="Instructions how to setup Hunter Douglas PowerView scenes within Home Assistant.">
|
||||
<meta name="twitter:image" content="https://home-assistant.io/images/home-assistant-logo-2164x2164.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>Getting started <i class="icon icon-caret-down"></i></a>
|
||||
<ul>
|
||||
<li><a href='/getting-started/'>Installing Home Assistant</a></li>
|
||||
<li><a href='/getting-started/configuration/'>Configuration basics</a></li>
|
||||
<li><a href='/getting-started/devices/'>Adding devices</a></li>
|
||||
<li><a href='/getting-started/presence-detection/'>Presence detection</a></li>
|
||||
<li><a href='/getting-started/automation/'>Automation</a></li>
|
||||
<li><a href='/getting-started/templating/'>Templating</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href='/components/'>Components</a></li>
|
||||
<li><a href='/cookbook'>Examples</a></li>
|
||||
<li>
|
||||
<a>Developers <i class="icon icon-caret-down"></i></a>
|
||||
<ul>
|
||||
<li><a href="/developers/">Setup Development</a></li>
|
||||
<li><a href="/developers/architecture/">Architecture</a></li>
|
||||
<li><a href="/developers/frontend/">Frontend development</a></li>
|
||||
<li><a href="/developers/creating_components/">
|
||||
Creating components
|
||||
</a></li>
|
||||
<li><a href="/developers/add_new_platform/">
|
||||
Adding platform support
|
||||
</a></li>
|
||||
<li><a href="/developers/api/">API</a></li>
|
||||
<li><a href="/developers/credits/">Credits</a></li>
|
||||
</ul>
|
||||
</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">
|
||||
PowerView Scenes
|
||||
</h1>
|
||||
</header>
|
||||
<hr class="divider">
|
||||
|
||||
|
||||
<p>Implements the <a href="http://www.hunterdouglas.com/operating-systems/powerview-motorization/support">Hunter Douglas PowerView</a> platform scene control. It queries the PowerView Hub and Home Assistant displays them as scenes.</p>
|
||||
|
||||
<p>Scenes can be activated using the service <code>scene.turn_on</code>.</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre><span class="comment"># Example configuration.yaml entry</span>
|
||||
<span class="key">scene</span>:
|
||||
<span class="key">platform</span>: <span class="string"><span class="content">hunterdouglas_powerview</span></span>
|
||||
<span class="key">address</span>: <span class="string"><span class="content">IP_ADDRESS</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>Configuration variables:</p>
|
||||
|
||||
<ul>
|
||||
<li><strong>address</strong> (<em>Required</em>): IP address of the PowerView Hub, eg. http://192.168.1.10.</li>
|
||||
</ul>
|
||||
|
||||
|
||||
</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/balloob/home-assistant.io/tree/master/source/_components/scene.hunterdouglas_powerview.markdown'>Edit this page on GitHub</a></div>
|
||||
<div class='brand-logo-container section'>
|
||||
<img src='/images/supported_brands/hunter-douglas-powerview.png' />
|
||||
</div>
|
||||
<div class='section'>
|
||||
This is a platform for
|
||||
<a href=''>the component</a>.
|
||||
</div>
|
||||
<div class='section'>
|
||||
<h1 class="title delta">Category Organization</h1>
|
||||
<ul class='divided'>
|
||||
<li>
|
||||
<a href='/components/group/'>Group</a>
|
||||
</li>
|
||||
<li>
|
||||
PowerView Scenes
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/proximity/'>Proximity</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/scene.home_assistant/'>Scenes</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/zone/'>Zone</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://github.com/balloob/home-assistant'><i class="icon-github"></i></a>
|
||||
|
||||
<div class="credit">
|
||||
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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
|
||||
<![endif]-->
|
||||
|
||||
<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>
|
|
@ -125,6 +125,8 @@
|
|||
<span class="key">port</span>: <span class="string"><span class="content">PORT</span></span>
|
||||
<span class="key">username</span>: <span class="string"><span class="content">USERNAME</span></span>
|
||||
<span class="key">password</span>: <span class="string"><span class="content">PASSWORD</span></span>
|
||||
<span class="key">use_tls</span>: <span class="string"><span class="content">true</span></span>
|
||||
<span class="key">verify_tls</span>: <span class="string"><span class="content">true</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -133,9 +135,11 @@
|
|||
|
||||
<ul>
|
||||
<li><strong>host</strong> (<em>Required</em>): The IP address or hostname of your mFi controller.</li>
|
||||
<li><strong>port</strong> (<em>Optional</em>): The port of your mFi controller. Defaults to 6443.</li>
|
||||
<li><strong>port</strong> (<em>Optional</em>): The port of your mFi controller. Defaults to 6443 for TLS, otherwise 6080.</li>
|
||||
<li><strong>username</strong> (<em>Required</em>): The mFi admin username.</li>
|
||||
<li><strong>password</strong> (<em>Required</em>): The mFi admin user’s password.</li>
|
||||
<li><strong>use_tls</strong> (<em>Optional</em>): If true, use TLS to contact the mFi controller. Defaults to true.</li>
|
||||
<li><strong>verify_tls</strong> (<em>Optional</em>): Set this to false if your mFi controller has a self-signed certificate. Defaults to true.</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
|
|
@ -203,6 +203,9 @@
|
|||
<li><a href='/components/light.mqtt/'>
|
||||
MQTT Light
|
||||
</a></li>
|
||||
<li><a href='/components/lock.mqtt/'>
|
||||
MQTT Lock
|
||||
</a></li>
|
||||
<li><a href='/components/notify.mqtt/'>
|
||||
MQTT Notifications
|
||||
</a></li>
|
||||
|
|
|
@ -132,6 +132,9 @@
|
|||
- <span class="string"><span class="content">noise</span></span>
|
||||
- <span class="string"><span class="content">pressure</span></span>
|
||||
- <span class="string"><span class="content">co2</span></span>
|
||||
- <span class="string"><span class="content">rain</span></span>
|
||||
- <span class="string"><span class="content">sum_rain_1</span></span>
|
||||
- <span class="string"><span class="content">sum_rain_24</span></span>
|
||||
<span class="key">module_name2</span>:
|
||||
- <span class="string"><span class="content">temperature</span></span>
|
||||
<span class="key">rainmeter_name3</span>:
|
||||
|
@ -149,11 +152,18 @@
|
|||
<li><strong>secret_key</strong> (<em>Required</em>): Your netatmo secret key</li>
|
||||
<li><strong>username</strong> (<em>Required</em>): Username for the netatmo account.</li>
|
||||
<li><strong>password</strong> (<em>Required</em>): Password for the netatmo account.</li>
|
||||
<li><strong>modules</strong> (<em>Required</em>): Modules to use. Multiple entries allowd.
|
||||
<li><strong>modules</strong> (<em>Required</em>): Modules to use. Multiple entries allowed.
|
||||
<ul>
|
||||
<li><strong>module_name</strong> array (<em>Required</em>): Name of the module.
|
||||
<ul>
|
||||
<li>** [conditions] **: Condition to monitor.</li>
|
||||
<li><strong>temperature</strong>: Current temperature.</li>
|
||||
<li><strong>co2</strong>: CO2 concentration in ppm.</li>
|
||||
<li><strong>pressure</strong>: Pressure in mbar.</li>
|
||||
<li><strong>noise</strong>: Noise level in dB.</li>
|
||||
<li><strong>humidity</strong>: Humidity in %.</li>
|
||||
<li><strong>rain</strong>: Estimated rainfall for today in mm.</li>
|
||||
<li><strong>sum_rain_1</strong>: Rainfall in the last hour in mm.</li>
|
||||
<li><strong>sum_rain_24</strong>: Rainfall in mm from 00:00am - 23:59pm.</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
@ -203,6 +203,22 @@ This switch will shutdown your host immediately, there will be no confirmation.
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<h3><a class="title-link" name="control-foscam-motion-sensor" href="#control-foscam-motion-sensor"></a> Control Foscam Motion Sensor</h3>
|
||||
|
||||
<p>This switch will control the motion sensor of Foscam Webcams which Support CGI Commands (<a href="http://www.ipcamcontrol.net/files/Foscam%20IPCamera%20CGI%20User%20Guide-V1.0.4.pdf">Source</a>). This switch supports statecmd, which checks the current state of motion detection.<br />
|
||||
```yaml<br />
|
||||
# Example configuration.yaml entry<br />
|
||||
# Replace admin and password with an “Admin” priviledged Foscam user<br />
|
||||
# Replace ipaddress with the local IP address of your Foscam<br />
|
||||
switch:<br />
|
||||
platform: command_line<br />
|
||||
switches:<br />
|
||||
foscam_motion:<br />
|
||||
oncmd: ‘curl -k “https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=1&usr=admin&pwd=password”’<br />
|
||||
offcmd: ‘curl -k “https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=0&usr=admin&pwd=password”’<br />
|
||||
statecmd: ‘curl -k –silent “https://ipaddress:443/cgi-bin/CGIProxy.fcgi?cmd=getMotionDetectConfig&usr=admin&pwd=password” | grep -oP “(?<=isEnable>).*?(?=</isEnable>)”’<br />
|
||||
value_template: ‘’</p>
|
||||
|
||||
|
||||
</article>
|
||||
|
||||
|
|
|
@ -125,6 +125,8 @@
|
|||
<span class="key">port</span>: <span class="string"><span class="content">PORT</span></span>
|
||||
<span class="key">username</span>: <span class="string"><span class="content">USERNAME</span></span>
|
||||
<span class="key">password</span>: <span class="string"><span class="content">PASSWORD</span></span>
|
||||
<span class="key">use_tls</span>: <span class="string"><span class="content">true</span></span>
|
||||
<span class="key">verify_tls</span>: <span class="string"><span class="content">true</span></span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -136,10 +138,11 @@
|
|||
<li><strong>port</strong> (<em>Optional</em>): The port of your mFi controller. Defaults to 6443.</li>
|
||||
<li><strong>username</strong> (<em>Required</em>): The mFi admin username.</li>
|
||||
<li><strong>password</strong> (<em>Required</em>): The mFi admin user’s password.</li>
|
||||
<li><strong>use_tls</strong> (<em>Optional</em>): If true, use TLS to contact the mFi controller. Defaults to true.</li>
|
||||
<li><strong>verify_tls</strong> (<em>Optional</em>): Set this to false if your mFi controller has a self-signed certificate. Defaults to true.</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
|
|
|
@ -196,6 +196,9 @@ Make sure that your topic match exact. <code>some-topic/</code> and <code>some-t
|
|||
<li><a href='/components/light.mqtt/'>
|
||||
MQTT Light
|
||||
</a></li>
|
||||
<li><a href='/components/lock.mqtt/'>
|
||||
MQTT Lock
|
||||
</a></li>
|
||||
<li><a href='/components/notify.mqtt/'>
|
||||
MQTT Notifications
|
||||
</a></li>
|
||||
|
|
|
@ -117,7 +117,7 @@
|
|||
|
||||
<ul>
|
||||
<li>Maintains a state per switch and a combined state <code>all_switches</code>.</li>
|
||||
<li>Registers services <code>switch/turn_on</code> and <code>switch/turn_off</code> to control switches.</li>
|
||||
<li>Registers services <code>switch/turn_on</code>, <code>switch/turn_off</code>, and <code>switch/toggle</code> to control switches.</li>
|
||||
</ul>
|
||||
|
||||
<h3><a class="title-link" name="use-the-services" href="#use-the-services"></a> Use the services</h3>
|
||||
|
|
|
@ -186,11 +186,14 @@
|
|||
<li>
|
||||
<a href='/components/group/'>Group</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/scene.hunterdouglas_powerview/'>PowerView Scenes</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/proximity/'>Proximity</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/scene/'>Scenes</a>
|
||||
<a href='/components/scene.home_assistant/'>Scenes</a>
|
||||
</li>
|
||||
<li>
|
||||
Zone
|
||||
|
|
|
@ -119,13 +119,38 @@
|
|||
|
||||
<h3><a class="title-link" name="installation" href="#installation"></a> Installation</h3>
|
||||
|
||||
<p>To allow Home Assistant to talk to your Z-Wave USB stick you will have to compile Python Open Z-Wave. This can be done using <a href="https://github.com/balloob/home-assistant/blob/dev/script/build_python_openzwave">this script</a>. <em>(The Home Assistant docker image has support for Z-Wave built-in)</em></p>
|
||||
<p>To allow Home Assistant to talk to your Z-Wave USB stick you will have to compile the OpenZWave library and install the related <a href="https://github.com/OpenZWave/python-openzwave">python-OpenZWave package</a>. This can be done as follows. <em>(Note: The Home Assistant docker image has support for Z-Wave built-in)</em></p>
|
||||
|
||||
<p>Make sure you have the correct dependencies installed before running the script:</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre>$ apt-get install cython3 libudev-dev python-sphinx python3-setuptools
|
||||
$ pip3 install "cython<0.23"
|
||||
<div class="code"><pre>$ apt-get install cython3 libudev-dev python3-sphinx python3-setuptools
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p>Then get the OpenZWave files and switch to the <code>python3</code> branch:</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre>$ git clone https://github.com/OpenZWave/python-openzwave.git
|
||||
$ cd python-openzwave
|
||||
$ git checkout python3
|
||||
$ PYTHON_EXEC=`which python3` make build
|
||||
$ sudo PYTHON_EXEC=`which python3` make install
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="note">
|
||||
Instead of <code>make install</code>, you can alternatively build your own python-openzwave package which can be easily uninstalled:
|
||||
|
||||
<code>$ sudo PYTHON_EXEC=</code>which python3<code> checkinstall --pkgname python-openzwave --pkgversion 1.0 --provides python-openzwave</code>
|
||||
|
||||
</p>
|
||||
|
||||
<p>With this installation, your <code>config_path</code> needed below will resemble:</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre>/usr/local/lib/python3.4/dist-packages/libopenzwave-0.3.0b8-py3.4-linux-x86_64.egg/config
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -166,6 +191,18 @@ $ pip3 install "cython<0.23"
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<p>Or, on some other systems (such as Raspberry Pi), use:</p>
|
||||
|
||||
<div class="highlighter-coderay"><div class="CodeRay">
|
||||
<div class="code"><pre>$ ls /dev/ttyACM*
|
||||
</pre></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="note">
|
||||
Depending on what’s plugged into your USB ports, the name found above may change. You an lock in a name, such as <code>/dev/zwave</code>, by following <a href="http://hintshop.ludvig.co.nz/show/persistent-names-usb-serial-devices/">these instructions</a>.
|
||||
</p>
|
||||
|
||||
<h4><a class="title-link" name="events" href="#events"></a> Events</h4>
|
||||
|
||||
<p>Some devices can also trigger scene activation events, which can be used in automation scripts (for example the press of a button on a wall switch):</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue