Skip to content

Commit

Permalink
Merge branch 'current' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
robbiet480 committed Apr 16, 2017
2 parents d419137 + 58846b8 commit 080cf64
Show file tree
Hide file tree
Showing 41 changed files with 363 additions and 117 deletions.
6 changes: 3 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ social:
# Home Assistant release details
current_major_version: 0
current_minor_version: 42
current_patch_version: 0
date_released: 2017-04-08
current_patch_version: 4
date_released: 2017-04-17

# Either # or the anchor link to latest release notes in the blog post.
# Must be prefixed with a # and have double quotes around it.
patch_version_notes: "#"
patch_version_notes: "#release-0424---april-17"
23 changes: 23 additions & 0 deletions source/_components/alert.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,29 @@ Configuration variables:

In this example, the garage door status (`input_boolean.garage_door`) is watched and this alert will be triggered when its status is equal to `on`. This indicates that the door has been opened. Because the `skip_first` option was set to `True`, the first notification will not be delivered immediately. However, every 30 minutes, a notification will be delivered until either `input_boolean.garage_door` no longer has a state of `on` or until the alert is acknowledged using the Home Assistant frontend.

For notifiers that require other parameters (such as `twilio_sms` which requires you specify a `target` parameter when sending the notification), you can use the `group` notification to wrap them for an alert. Simply create a `group` notification type with a single notification member (such as `twilio_sms`) specifying the required parameters other than `message` provided by the `alert` component:

```yaml
- platform: group
name: john_phone_sms
services:
- service: twilio_sms
data:
target: !secret john_phone
```

```yaml
freshwater_temp_alert:
name: "Warning: I have detected a problem with the freshwater tank temperature"
entity_id: binary_sensor.freshwater_temperature_status
state: 'on'
repeat: 5
can_acknowledge: true
skip_first: false
notifiers:
- john_phone_sms
```

### {% linkable_title Complex Alert Criteria %}

By design, the `alert` component only handles very simple criteria for firing. That is, is only checks if a single entity's state is equal to a value. At some point, it may be desireable to have an alert with a more complex criteria. Possibly, when a battery percentage falls below a threshold. Maybe you want to disable the alert on certain days. Maybe the alert firing should depend on more than one input. For all of these situations, it is best to use the alert in conjunction with a `Template Binary Sensor`. The following example does that.
Expand Down
2 changes: 1 addition & 1 deletion source/_components/alexa.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ Please refer to the [Amazon documentation][flash-briefing-api-docs] for more inf
- Hit "Next"
- Test
- Having passed all validations to reach this screen you can now click on "< Back to All Skills" as your flash briefing is now available as in "Development" service.
- To invoke your flash briefing, open the Alexa app on your phone or go to the [Alexa Setings Site][alexa-settings-site], open the "Skills" configuration section, select "Your Skills", scroll to the bottom, tap on the Flash Briefing Skill you just created, enable it, then manage Flash Briefing and adjust ordering as necessary. Finally ask your Echo for your "news","flash briefing", or "briefing".
- To invoke your flash briefing, open the Alexa app on your phone or go to the [Alexa Settings Site][alexa-settings-site], open the "Skills" configuration section, select "Your Skills", scroll to the bottom, tap on the Flash Briefing Skill you just created, enable it, then manage Flash Briefing and adjust ordering as necessary. Finally ask your Echo for your "news","flash briefing", or "briefing".

[amazon-dev-console]: https://developer.amazon.com
[flash-briefing-api]: https://developer.amazon.com/alexa-skills-kit/flash-briefing
Expand Down
12 changes: 6 additions & 6 deletions source/_components/binary_sensor.flic.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The `flic` platform allows you to connect with multiple [flic](https://flic.io)

The platform does not directly interact with the buttons, but communicates with the flic service that manages the buttons. The service can run on the same instance as home assistant or any other reachable machine. For setup instructions visit the GitHub repository of the service for [Linux](https://github.com/50ButtonsEach/fliclib-linux-hci), [OS X](https://github.com/50ButtonsEach/flic-service-osx) or [Windows](https://github.com/50ButtonsEach/fliclib-windows).

### {% linkable_title Configuration %}
To use your flic buttons in your installation, add the following to your `configuration.yaml` file:

```yaml
# Example configuration.yaml entry
Expand All @@ -27,15 +27,15 @@ binary_sensor:
Configuration variables:
- **host** (*Optional*): The IP or hostname of the flic service server. (default: `localhost`)
- **port** (*Optional*): The port of the flic service. (default: `5551`)
- **discovery** (*Optional*): If `true`, the component is configured to constantly scan for new buttons. (default: `true`)
- **host** (*Optional*): The IP or hostname of the flic service server. Defaults to `localhost`.
- **port** (*Optional*): The port of the flic service. Defaults to `5551`.
- **discovery** (*Optional*): If `true` then the component is configured to constantly scan for new buttons. Defaults to `true`.
- **ignored_click_types**: List of click types whose occurrence should not trigger and `flic_click` event.
- **timeout** (*Optional*): Maximum time in seconds an event can be queued locally on a button before discarding the event. (default: `3`)
- **timeout** (*Optional*): Maximum time in seconds an event can be queued locally on a button before discarding the event. Defaults to 3.

#### {% linkable_title Discovery %}

If discovery is enabled, you can add a new button by pressing it for at least 7s. The button will be paired with the flic service and added to Home Assistant. Otherwise, you have to manually pair it with the flic service. The Home Assistant platform will not scan for new buttons and will only connect to buttons already paired.
If discovery is enabled, you can add a new button by pressing it for at least 7 seconds. The button will be paired with the flic service and added to Home Assistant. Otherwise, you have to manually pair it with the flic service. The Home Assistant platform will not scan for new buttons and will only connect to buttons already paired.

#### {% linkable_title Timeout %}
+When the flic button is triggered while disconnected from flic service, it will queue all events and try to connect and transmit them as soon as possible. The timeout variable can be used to stop events from triggering if too much time passed between the action and the notification in Home Assistant.
Expand Down
11 changes: 7 additions & 4 deletions source/_components/binary_sensor.workday.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,21 @@ To enable the `workday` sensor in your installation, add the following to your `
binary_sensor:
- platform: workday
country: DE
province: BW
```
Configuration variables:
- **country** (*Required*): Country code according to [holidays](https://pypi.python.org/pypi/holidays/0.8.1) notation.
- **province** (*Optional*): Province code according to [holidays](https://pypi.python.org/pypi/holidays/0.8.1) notation (defaults to None).
- **workdays** (*Optional*): List of workdays (defaults to mon, tue, wed, thu, fri).
- **excludes** (*Optional*): List of workday excludes (defaults to sat, sun, holiday).
- **province** (*Optional*): Province code according to [holidays](https://pypi.python.org/pypi/holidays/0.8.1) notation. Defaults to None.
- **workdays** (*Optional*): List of workdays. Defaults to `mon`, `tue`, `wed`, `thu`, `fri`.
- **excludes** (*Optional*): List of workday excludes. Defaults to `sat`, `sun`, `holiday`.

Days are specified as follows: `mon`, `tue`, `wed`, `thu`, `fri`, `sat`, `sun`. The keyword `holiday` is used for public holidays identified by the holidays module.

<p class='note warning'>
If you use the sensor for Canada (`CA`) with Ontario (`ON`) as `province:` then you need to wrap `ON` in quotes. Otherwise the value is evaluated as `True` (check the YAML documentation for further details) and the sensor will not work.
</p>

Example usage for automation:

```yaml
Expand Down
2 changes: 1 addition & 1 deletion source/_components/camera.synology.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ camera:
```

<p class='note'>
Most users will need to set `valid_ssl` to false unless they have installed a valid SSL certificate in place of the built in self-signed certificate.
Most users will need to set `verify_ssl` to false unless they have installed a valid SSL certificate in place of the built in self-signed certificate.
</p>
1 change: 1 addition & 0 deletions source/_components/group.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ By default, every group appears in the HOME tab. If you create a group `default_
group:
default_view:
view: yes
icon: mdi:home
entities:
- group.kitchen
- group.awesome_people
Expand Down
2 changes: 1 addition & 1 deletion source/_components/light.lifx.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ha_release: 0.12

The `lifx` platform allows you to integrate your [LIFX](http://www.lifx.com) into Home Assistant.

_Please note, LIFX is currently not supported on Windows._
_Please note, the `lifx` platform does not support Windows. The `lifx_legacy` platform (supporting basic functionality) can be used instead._

```yaml
# Example configuration.yaml entry
Expand Down
2 changes: 1 addition & 1 deletion source/_components/light.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Turns one light on or multiple lights on using [groups]({{site_root}}/components
| `xy_color` | yes | A list containing two floats representing the xy color you want the light to be. Two comma separated floats that represent the color in XY.
| `rgb_color` | yes | A list containing three integers representing the rgb color you want the light to be. Three comma separated integers that represent the color in RGB. You can find a great chart here: [Hue Color Chart](http://www.developers.meethue.com/documentation/hue-xy-values)
| `color_temp` | yes | An INT in mireds representing the color temperature you want the light to be.
| `color_name` | yes | A human readable string of a color name, such as `blue` or `goldenrod` or [`chucknorris`](http://stackoverflow.com/questions/8318911/why-does-html-think-chucknorris-is-a-color). If your browser can display it, so can Home Assistant.
| `color_name` | yes | A human readable string of a color name, such as `blue` or `goldenrod`. All [CSS3 color names](https://www.w3.org/TR/2010/PR-css3-color-20101028/#svg-color) are supported.
| `brightness` | yes | Integer between 0 and 255 for how bright the color should be.
| `flash` | yes | Tell light to flash, can be either value `short` or `long`. *not supported by Wink
| `effect`| yes | Applies an effect such as `colorloop` or `random`.
Expand Down
3 changes: 1 addition & 2 deletions source/_components/mysensors.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ mysensors:
persistence_file: 'path/mysensors4.json'
topic_in_prefix: 'mygateway1-out'
topic_out_prefix: 'mygateway1-in'
debug: true
optimistic: false
persistence: true
retain: true
Expand All @@ -50,7 +49,7 @@ Configuration variables:
- **tcp_port** (*Optional*): Specifies the port of the connected tcp ethernet gateway. Default is 5003.
- **topic_in_prefix** (*Optional*): Set the prefix of the MQTT topic for messages coming from the MySensors gateway in to Home Assistant. Default is an empty string.
- **topic_out_prefix** (*Optional*): Set the prefix of the MQTT topic for messages going from Home Assistant out to the MySensors gateway. Default is an empty string.
- **debug** (*Optional*): Enable or disable verbose debug logging. Default is false.
- **debug** (*DEPRECATED*): This option has been deprecated. Please remove this from your config is you have it included. Use the logger component to filter log messages on log level.
- **persistence** (*Optional*): Enable or disable local persistence of sensor information. If this is disabled, then each sensor will need to send presentation messages after Home Assistant starts. Default is true.
- **persistence_file** (*Optional*): The path to a file to save sensor information. The file extension determines the file type. Currently supported file types are 'pickle' and 'json'.
- **version** (*Optional*): Specifies the MySensors protocol version to use. Supports 1.4, 1.5 and 2.0. Default is 1.4.
Expand Down
33 changes: 10 additions & 23 deletions source/_components/sensor.crimereports.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -8,46 +8,33 @@ comments: false
sharing: true
footer: true
ha_category: Sensor
featured: false
logo: crimereports.png
ha_release: 0.42
ha_iot_class: "Cloud Polling"
---

The `crimereports` sensor allows one to track reported incidents occurring in a Home Assistant zone. Incidents include anything reported to [Crime Reports](http://crimereports.com). Your regional emergency services may or may not report data. The sensor only counts incidents from the current day.
The `crimereports` sensor allows one to track reported incidents occurring in a given area. Incidents include anything reported to [Crime Reports](http://crimereports.com). Your regional emergency services may or may not report data. The sensor only counts incidents from the current day.

## Configuration

To enable this sensor, add the following lines to your `configuration.yaml`. Your `zone` should be of sufficient size to capture incidents in your area. Your `home` zone is probably too small.
To enable this sensor, add the following lines to your `configuration.yaml`. Your `radius` should be of sufficient size to capture incidents in your area.

```yaml
zone:
- name: neighborhood
latitude: <your latitude>
longitude: <your longitude>
radius: <your neighborhood radius>

sensor:
- platform: crimereports
zone: neighborhood
name: <any name>
radius: <your radius>
```
Configuration options for the Crime Reports Sensor:
- **zone** (*Required*): The zone to monitor.
- **name** (*Required*): Name the sensor whatever you want.
- **radius** (*Required*): Radius in meters.
- **latitude** (*Optional*): Defaults to your home zone latitude.
- **longitude** (*Optional*): Defaults to your home zone longitude.
- **include** (*Optional*): List of incident types to include.
- **exclude** (*Optional*): List of incident types to exclude.
- **update_inverval** (*Optional*): Minimum time interval between updates. Default is 30 minutes. Supported formats:
- `update_interval: 'HH:MM:SS'`
- `update_interval: 'HH:MM'`
- Time period dictionary, e.g.:
<pre>update_interval:
# At least one of these must be specified:
days: 0
hours: 0
minutes: 3
seconds: 30
milliseconds: 0
</pre>
## Notes
Expand Down
51 changes: 51 additions & 0 deletions source/_components/sensor.metoffice.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
layout: page
title: "Met Office Sensor"
description: "Instructions on how to integrate Met Office weather conditions into Home Assistant."
date: 2017-03-23 22:00
sidebar: true
comments: false
sharing: true
footer: true
logo: metoffice.jpg
ha_category: Weather
ha_release: 0.42
---

The `metoffice` sensor platform uses the Met Office's [DataPoint API][datapoint] for weather data.

- Each sensor will be given the `device_id` of "Met Office [condition]"
- The sensor checks for new data every minute, starting 30 minutes after the timestamp of the most recent data as the data is updated every half-hour.

To add the Met Office weather to your installation you'll need to register for a free api key at the link above and then add the following to your `configuration.yaml` file:

```yaml
# Example configuration.yaml entry
sensor:
- platform: metoffice
api_key: "my-api-key"
monitored_conditions:
- weather
- temperature
- feels_like_temperature
- wind_speed
- wind_direction
- wind_gust
- visibility
- uv
- precipitation
- humidity
```
Your location will be detected from your home `latitude` and `longitude` settings.

Configuration variables:

- **api_key** (*Required*): Your personal API key from the [Datapoint website][datapoint].

<p class='note'>
This sensor is an alternative to the [`metoffice`](/components/weather.metoffice/) weather platform.
The weather platform is easier to configure but less customisable.
</p>

[datapoint]: http://www.metoffice.gov.uk/datapoint
2 changes: 1 addition & 1 deletion source/_components/sensor.netatmo.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Configuration variables:
- **sum_rain_1**: Rainfall in the last hour in mm.
- **sum_rain_24**: Rainfall in mm from 00:00am - 23:59pm.
- **WindAngle**: Wind angle
- **WingStrength**: Wind strength
- **WindStrength**: Wind strength
- **GustAngle**: Wind gust angle
- **GustStrength**: Wind gust strength
- **min_temp**: Min temperature for today
Expand Down
2 changes: 1 addition & 1 deletion source/_components/switch.zoneminder.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ ha_release: 0.31
The `zoneminder` switch platform allows you to toggle the current function of all cameras attached to your [ZoneMinder](https://www.zoneminder.com) instance.

<p class='note'>
You must have the [ZoneMinder component](/components/zoneminder/) configured to use this.
You must have the [ZoneMinder component](/components/zoneminder/) configured to use this and if ZoneMinder authentication is enabled the account specified in the component configuration must have "Edit" permission for "System".
</p>

To enable this switch, add the following lines to your `configuration.yaml` file:
Expand Down
34 changes: 34 additions & 0 deletions source/_components/weather.metoffice.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
layout: page
title: "Met Office"
description: "Instructions on how to integrate Met Office weather conditions into Home Assistant."
date: 2017-03-23 22:00
sidebar: true
comments: false
sharing: true
footer: true
logo: metoffice.jpg
ha_category: Weather
ha_release: 0.42
---

The `metoffice` weather platform uses the Met Office's [DataPoint API][datapoint] for weather data.

To add the Met Office weather platform to your installation you'll need to register for a free api key at the link above and then add the following to your `configuration.yaml` file:

```yaml
weather:
- platform: metoffice
api_key: "my-api-key"
```
Configuration variables:
- **api_key** (*Required*): Your personal API key from the [Datapoint website][datapoint].
<p class='note'>
This platform is an alternative to the [`metoffice`](/components/sensor.metoffice/) sensor.
The weather platform is easier to configure but less customisable.
</p>

[datapoint]: http://www.metoffice.gov.uk/datapoint
12 changes: 12 additions & 0 deletions source/_cookbook/configuration_yaml_by_stanvx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
layout: page
title: "Configuration.yaml by Stanvx"
description: ""
date: 2017-04-09 21:35
sidebar: true
comments: false
sharing: true
footer: true
ha_category: Example configuration.yaml
ha_external_link: https://github.com/stanvx/Home-Assistant-Configuration
---
2 changes: 1 addition & 1 deletion source/_cookbook/python_component_basic_state.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ To get started, create the file `<config dir>/custom_components/hello_state.py`
Support for showing text in the frontend.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/hello_state/
https://home-assistant.io/cookbook/python_component_basic_state/
"""
import logging

Expand Down
2 changes: 1 addition & 1 deletion source/_docs/configuration/remote.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The most common approach is to set up port forwarding from your router to port 8

A problem with making a port accessible is that some Internet Service Providers only offer dynamic IPs. This can cause you to lose access to Home Assistant while away. You can solve this by using a free Dynamic DNS service like [DuckDNS](https://www.duckdns.org/).

Remember: Just putting a port up is not secure. You should definitely consider encrypting your traffic if you are accessing your Home Assistant installation remotely. For details please check the [set up encryption using Let's Encrypt](/blog/2015/12/13/setup-encryption-using-lets-encrypt/) blog post.
Remember: Just putting a port up is not secure. You should definitely consider encrypting your traffic if you are accessing your Home Assistant installation remotely. For details please check the [set up encryption using Let's Encrypt](/blog/2015/12/13/setup-encryption-using-lets-encrypt/) blog post, or this [detailed guide](https://home-assistant.io/docs/ecosystem/certificates/lets_encrypt/) to using Let's Encrypt with HA.

Protect your communication with a [self-signed certificate](/cookbook/tls_self_signed_certificate/) between your client and the Home Assistant instance.

Expand Down
2 changes: 1 addition & 1 deletion source/_docs/configuration/secrets.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,5 @@ Please enter password for encrypted keyring:
```

<p class='note warning'>
If your are using the Python Keyring, [autostarting](/getting-started/autostart/) of Home Assistant will no longer work.
If you are using the Python Keyring, [autostarting](/getting-started/autostart/) of Home Assistant will no longer work.
</p>
3 changes: 3 additions & 0 deletions source/_docs/ecosystem/backup/backup_github.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ harmony_media_room.conf
pyozw.sqlite
.*
!/.gitignore
html5_push_registrations.conf
ip_bans.yaml
/icloud/*
```

More information on the layout of the file can be found in the [.gitignore manual](https://git-scm.com/docs/gitignore).
Expand Down
Loading

0 comments on commit 080cf64

Please sign in to comment.