diff --git a/source/_components/device_tracker.asuswrt.markdown b/source/_components/device_tracker.asuswrt.markdown index 74e76adce4e..0b7edf68dd9 100644 --- a/source/_components/device_tracker.asuswrt.markdown +++ b/source/_components/device_tracker.asuswrt.markdown @@ -15,10 +15,6 @@ ha_release: pre 0.7 The `asuswrt` platform offers presence detection by looking at connected devices to a [ASUSWRT](http://event.asus.com/2013/nw/ASUSWRT/) based router. -
-This device tracker needs telnet to be enabled on the router. -
- To use an ASUSWRT router in your installation, add the following to your `configuration.yaml` file: ```yaml @@ -26,14 +22,20 @@ To use an ASUSWRT router in your installation, add the following to your `config device_tracker: platform: asuswrt host: YOUR_ROUTER_IP + protocol: telnet username: YOUR_ADMIN_USERNAME password: YOUR_ADMIN_PASSWORD ``` Configuration variables: -- **host** (*Required*): The IP address of your router, e.g. 192.168.1.1. +- **host** (*Required*): The IP address of your router, eg. 192.168.1.1. +- **protocol** (*Optional*): The protocol (`ssh` or `telnet`) to use. Defaults to `ssh`. - **username** (*Required*: The username of an user with administrative privileges, usually *admin*. - **password** (*Required*): The password for your given admin account. ++You need to enable telnet on your router if you choose to use `protocol: telnet`. +
+ See the [device tracker component page](/components/device_tracker/) for instructions how to configure the people to be tracked. diff --git a/source/_components/history.markdown b/source/_components/history.markdown index 90e5df451aa..e7fedec64f3 100644 --- a/source/_components/history.markdown +++ b/source/_components/history.markdown @@ -9,10 +9,11 @@ sharing: true footer: true logo: home-assistant.png ha_category: "History" +ha_release: pre 0.7 --- -This component will track everything that is going on within Home Assistant and allows the user to browse through it. +The `history` component will track everything that is going on within Home Assistant and allows the user to browse through it. To enable the history option in your installation, add the following to your `configuration.yaml` file: diff --git a/source/_components/light.markdown b/source/_components/light.markdown index 2259e97ac88..7d92ef67606 100644 --- a/source/_components/light.markdown +++ b/source/_components/light.markdown @@ -37,7 +37,8 @@ Turns one light on or multiple lights on using [groups]({{site_root}}/components | `profile` | yes | String with the name of one of the built-in profiles (relax, energize, concentrate, reading) or one of the custom profiles defined in `light_profiles.csv` in the current working directory. Light profiles define a xy color and a brightness. If a profile is given and a brightness or xy color then the profile values will be overwritten. | `xy_color` | yes | A list containing two floats representing the xy color you want the light to be. Two comma seperated floats that represent the color in XY. | `rgb_color` | yes | A list containing three integers representing the xy color you want the light to be. Three comma seperated integers that represent the color in RGB -| `color_temp` | yes | An INT in mireds represending the color temperature you want the light to be. +| `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. | `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 diff --git a/source/_components/light.qwikswitch.markdown b/source/_components/light.qwikswitch.markdown new file mode 100644 index 00000000000..61880ae5736 --- /dev/null +++ b/source/_components/light.qwikswitch.markdown @@ -0,0 +1,22 @@ +--- +layout: page +title: "QwikSwitch Light" +description: "Instructions how to integrate Qwikswitch dimmers and relays as lights into Home Assistant." +date: 2016-05-04 00:00 +sidebar: true +comments: false +sharing: true +footer: true +logo: qwikswitch.png +ha_category: Light +ha_iot_class: "Local Push" +ha_release: "0.20" +--- + + +The `qwikswitch` light platform allows you to control your [QwikSwitch](http://www.qwikswitch.co.za/) relays and dimmers as lights from within Home Assistant. + +They will be automatically discovered if the discovery component is enabled. + +For more configuration information see the [QwikSwitch component](/components/qwikswitch/) documentation. + diff --git a/source/_components/logentries.markdown b/source/_components/logentries.markdown new file mode 100644 index 00000000000..8a414dbfcec --- /dev/null +++ b/source/_components/logentries.markdown @@ -0,0 +1,25 @@ +--- +layout: page +title: "Logentries" +description: "Send events to Logentries." +date: 2016-04-29 16:50 +sidebar: true +comments: false +sharing: true +footer: true +ha_category: "History" +--- + +The `logentries` component makes it possible to log all state changes to [your Logentries account](http://logentries.com/) using Logentries Webhook endpoint and a token based log + +To use the `logentries` component in your installation, add the following to your `configuration.yaml` file: + +```yaml +# Example configuration.yaml entry +logentries: + token: your-log-token-here +``` + +Configuration variables: + +- **token** (*Required*): Your Logentries log token diff --git a/source/_components/media_player.gpmdp.markdown b/source/_components/media_player.gpmdp.markdown new file mode 100644 index 00000000000..18d47bd263a --- /dev/null +++ b/source/_components/media_player.gpmdp.markdown @@ -0,0 +1,35 @@ +--- +layout: page +title: "Google Play Music Desktop Player (GPMDP)" +description: "Instructions how to integrate GPMDP into Home Assistant." +date: 2016-05-09 08:00 +sidebar: true +comments: false +sharing: true +footer: true +logo: gpmdp.png +ha_category: Media Player +ha_iot_class: "Local Polling" +ha_release: "0.20" + +--- + +The `gpmdp` media player platform allows you to control a [GPMDP](http://www.googleplaymusicdesktopplayer.com/) instance running on a computer from Home Assistant. + +You will have first have to check "Enable playback API" in GPMDP's settings and then add an inbound rule to the firewall to allow access to port 5672 on the computer running GPMDP. + +Then just add the following to your `configuration.yaml` file: + +```yaml +# Example configuration.yaml entry +media_player: + platform: gpmdp + address: IP_ADDRESS + name: NAME +``` + +Configuration variables: + +- **address** (*Required*): IP address of the computer running GPMDP +- **name** (*Optional*): Name of the player + diff --git a/source/_components/media_player.lg_netcast.markdown b/source/_components/media_player.lg_netcast.markdown new file mode 100644 index 00000000000..624854a210c --- /dev/null +++ b/source/_components/media_player.lg_netcast.markdown @@ -0,0 +1,42 @@ +--- +layout: page +title: "LG Netcast TV" +description: "Instructions how to integrate a LG TV (Netcast 3.0 & 4.0) within Home Assistant." +date: 2016-05-12 23:22 +sidebar: true +comments: false +sharing: true +footer: true +logo: lg.png +ha_category: Media Player +ha_iot_class: "Local Poll" +ha_release: "0.20" +--- + +The `lg_netcast` platform allows you to control a LG Smart TV running NetCast 3.0 (LG Smart TV models released in 2012) and NetCast 4.0 (LG Smart TV models released in 2013). For the new LG WebOS TV's use the [webostv](/components/mediaplayer.webostv) platform. + +To add a LG TV to your installation, add the following to your `configuration.yaml` file: + +```yaml +# Example configuration.yaml entry +media_player: + platform: lg_netcast + host: 192.168.0.20 + access_token: 889955 + name: Living Room TV +``` + +Configuration variables: + +- **host** (*Required*): The IP address of the LG Smart TV, eg. 192.168.0.20 +- **access_token** (*Optional*): The access token needed to connect. +- **name** (*Optional*): The name you would like to give to the LG Smart TV. The default is "LG TV Remote". + +To get the access token for your TV configure the `lg_netcast` platform in Home Assistant without the `access_token`. +After starting Home Assistant the TV will display the access token on screen. +Just add the token to your configuration and restart Home Assistant and the media player component for your LG TV will show up. + ++The access token will not change until you factory reset your TV. +
+ diff --git a/source/_components/media_player.roku.markdown b/source/_components/media_player.roku.markdown new file mode 100644 index 00000000000..4de5d21de9b --- /dev/null +++ b/source/_components/media_player.roku.markdown @@ -0,0 +1,28 @@ +--- +layout: page +title: "Roku" +description: "Instructions how to integrate Roku into Home Assistant." +date: 2016-05-16 20:0+0000 +sidebar: true +comments: false +sharing: true +footer: true +logo: roku.png +ha_category: Media Player +ha_release: "0.20" +--- + +The [Roku](http://www.roku.com/) media players will be automatically discovered if you enable the [discovery component](/components/discovery/). + +The `roku` media player platform can also be forced to load by adding the following lines to your `configuration.yaml`: + +```yaml +# Example configuration.yaml entry +media_player: + platform: roku + host: 192.168.1.10 +``` + +Configuration variables: + +- **host** *Optional*: Use only if you don't want to scan for devices. diff --git a/source/_components/mqtt.markdown b/source/_components/mqtt.markdown index df2adc25741..fe6c392d357 100644 --- a/source/_components/mqtt.markdown +++ b/source/_components/mqtt.markdown @@ -171,6 +171,18 @@ The MQTT component will register the service `publish` which allows publishing m } ``` +### {% linkable_title Logging %} + +The [logger](/components/logger/) component allow the logging of received MQTT messages. + +```yaml +# Example configuration.yaml entry +logger: + default: warning + logs: + homeassistant.components.device_tracker.mqtt: debug +``` + ## {% linkable_title Testing your setup %} The `mosquitto` broker package is shipping commandline tools to send and recieve MQTT messages. As an alternative have a look at [hbmqtt_pub](http://hbmqtt.readthedocs.org/en/latest/references/hbmqtt_pub.html) and [hbmqtt_sub](http://hbmqtt.readthedocs.org/en/latest/references/hbmqtt_sub.html) which are provied by HBMQTT. For sending test messages to a broker running on localhost check the example below: diff --git a/source/_components/notify.aws_lambda.markdown b/source/_components/notify.aws_lambda.markdown new file mode 100644 index 00000000000..1eee6770b08 --- /dev/null +++ b/source/_components/notify.aws_lambda.markdown @@ -0,0 +1,78 @@ +--- +layout: page +title: "AWS Lambda" +description: "Instructions how to invoke AWS Lambda functions from Home Assistant." +date: 2016-05-14 16:35 +sidebar: true +comments: false +sharing: true +footer: true +logo: aws_lambda.png +ha_category: Notifications +ha_release: "0.20" +--- + +The `aws_lambda` notification platform enables invoking [AWS Lambda](https://aws.amazon.com/lambda/) functions. + +To use this notification platform in your installation, add the following to your `configuration.yaml` file: + +### Configuration + +```yaml +# Example configuration.yaml entry +notify: + platform: aws_lambda + name: NOTIFIER_NAME + aws_access_key_id: AWS_ACCESS_KEY_ID + aws_secret_access_key: AWS_SECRET_ACCESS_KEY + profile_name: AWS_PROFILE + region_name: 'us-east-1' + context: + ... +``` + +Configuration variables: + +- **aws_access_key_id** (*Required if aws_secret_access_key is provided*): Your AWS Access Key ID. For more information, please read the [AWS General Reference regarding Security Credentials](http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html). If provided, you must also provide an `aws_secret_access_key` and must **not** provide a `profile_name`. +- **aws_secret_access_key** (*Required if aws_access_key_id is provided*): Your AWS Secret Access Key. For more information, please read the [AWS General Reference regarding Security Credentials](http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html). If provided, you must also provide an `aws_access_key_id` and must **not** provide a `profile_name`. +- **profile_name** (*Optional*): A credentials profile name. For more information, please see the [boto3 documentation section about credentials](http://boto3.readthedocs.io/en/latest/guide/configuration.html#shared-credentials-file). +- **region_name** (*Required*): The region identifier to connect to. The default is `us-east-1`. +- **name** (*Optional*): Setting the optional parameter `name` allows multiple notifiers to be created. The default value is `notify`. The notifier will bind to the service `notify.NOTIFIER_NAME`. +- **context** (*Optional*): An optional dictionary you can provide to pass custom context through to the Lambda function. The `context` dictionary (if any) is combined with the same data available at the `/api/config` HTTP API route. + +### {% linkable_title Usage %} + +AWS Lambda is a notify platform and thus can be controlled by calling the notify service [as described here](/components/notify/). It will invoke a Lambda for all targets given in the notification payload. A target can be formatted as a function name, an entire ARN ([Amazon Resource Name](http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)) or a partial ARN. For more information, please see the [boto3 docs](http://boto3.readthedocs.io/en/latest/reference/services/lambda.html#Lambda.Client.invoke). + +The Lambda event payload will contain everything passed in the service call payload. Here is an example payload that would be sent to Lambda: + +```json +{ + "title": "Test message!", + "target": "arn:aws:lambda:us-east-1:123456789012:function:ProcessKinesisRecords", + "data": { + "test": "okay" + }, + "message": "Hello world!" +} +``` + +The context will look like this: + +```json +{ + "hass": { + "components": ["recorder", "logger", "http", "logbook", "api", "frontend"], + "latitude": 44.1234, + "location_name": "Home", + "longitude": 5.5678, + "temperature_unit": "°C", + "time_zone": "Europe/Zurich", + "version": "0.20.0.dev0" + }, + "custom": { + "two": "three", + "test": "one" + } +} +``` diff --git a/source/_components/notify.aws_sns.markdown b/source/_components/notify.aws_sns.markdown new file mode 100644 index 00000000000..f153ee11051 --- /dev/null +++ b/source/_components/notify.aws_sns.markdown @@ -0,0 +1,42 @@ +--- +layout: page +title: "AWS SNS" +description: "Instructions how to publish messages to AWS SNS from Home Assistant." +date: 2016-05-14 16:35 +sidebar: true +comments: false +sharing: true +footer: true +logo: aws_sns.png +ha_category: Notifications +ha_release: "0.20" +--- + +The `aws_sns` notification platform enables publishing to an [AWS SNS](https://aws.amazon.com/sns/) topic or application. + +To use this notification platform in your installation, add the following to your `configuration.yaml` file: + +```yaml +# Example configuration.yaml entry +notify: + platform: aws_sns + name: NOTIFIER_NAME + aws_access_key_id: AWS_ACCESS_KEY_ID + aws_secret_access_key: AWS_SECRET_ACCESS_KEY + profile_name: AWS_PROFILE + region_name: 'us-east-1' +``` + +Configuration variables: + +- **aws_access_key_id** (*Required if aws_secret_access_key is provided*): Your AWS Access Key ID. For more information, please read the [AWS General Reference regarding Security Credentials](http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html). If provided, you must also provide an `aws_secret_access_key` and must **not** provide a `profile_name`. +- **aws_secret_access_key** (*Required if aws_access_key_id is provided*): Your AWS Secret Access Key. For more information, please read the [AWS General Reference regarding Security Credentials](http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html). If provided, you must also provide an `aws_access_key_id` and must **not** provide a `profile_name`. +- **profile_name** (*Optional*): A credentials profile name. For more information, please see the [boto3 documentation section about credentials](http://boto3.readthedocs.io/en/latest/guide/configuration.html#shared-credentials-file). +- **region_name** (*Required*): The region identifier to connect to. The default is `us-east-1`. +- **name** (*Optional*): Setting the optional parameter `name` allows multiple notifiers to be created. The default value is `notify`. The notifier will bind to the service `notify.NOTIFIER_NAME`. + +### {% linkable_title Usage %} + +AWS SNS is a notify platform and thus can be controlled by calling the notify service [as described here](/components/notify/). It will publish a message to all targets given in the notification payload. A target must be a SNS topic or endpoint ARN ([Amazon Resource Name](http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)). For more information, please see the [boto3 docs](http://boto3.readthedocs.io/en/latest/reference/services/sns.html#SNS.Client.publish). + +If one exists, the SNS Subject will be set to the title. All attributes from the payload except message will be sent as stringified message attributes. diff --git a/source/_components/notify.aws_sqs.markdown b/source/_components/notify.aws_sqs.markdown new file mode 100644 index 00000000000..d4a6c836eb0 --- /dev/null +++ b/source/_components/notify.aws_sqs.markdown @@ -0,0 +1,53 @@ +--- +layout: page +title: "AWS SQS" +description: "Instructions how to publish messages to AWS SQS from Home Assistant." +date: 2016-05-14 16:35 +sidebar: true +comments: false +sharing: true +footer: true +logo: aws_sqs.png +ha_category: Notifications +ha_release: "0.20" +--- + +The `aws_sqs` notification platform enables publishing to an [AWS SQS](https://aws.amazon.com/sqs/) message queue. + +To use this notification platform in your installation, add the following to your `configuration.yaml` file: + +```yaml +# Example configuration.yaml entry +notify: + platform: aws_sqs + name: NOTIFIER_NAME + aws_access_key_id: AWS_ACCESS_KEY_ID + aws_secret_access_key: AWS_SECRET_ACCESS_KEY + profile_name: AWS_PROFILE + region_name: 'us-east-1' +``` + +Configuration variables: + +- **aws_access_key_id** (*Required if aws_secret_access_key is provided*): Your AWS Access Key ID. For more information, please read the [AWS General Reference regarding Security Credentials](http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html). If provided, you must also provide an `aws_secret_access_key` and must **not** provide a `profile_name`. +- **aws_secret_access_key** (*Required if aws_access_key_id is provided*): Your AWS Secret Access Key. For more information, please read the [AWS General Reference regarding Security Credentials](http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html). If provided, you must also provide an `aws_access_key_id` and must **not** provide a `profile_name`. +- **profile_name** (*Optional*): A credentials profile name. For more information, please see the [boto3 documentation section about credentials](http://boto3.readthedocs.io/en/latest/guide/configuration.html#shared-credentials-file). +- **region_name** (*Required*): The region identifier to connect to. The default is `us-east-1`. +- **name** (*Optional*): Setting the optional parameter `name` allows multiple notifiers to be created. The default value is `notify`. The notifier will bind to the service `notify.NOTIFIER_NAME`. + +### {% linkable_title Usage %} + +AWS SQS is a notify platform and thus can be controlled by calling the notify service [as described here](/components/notify/). It will publish a message to the queue for all targets given in the notification payload. A target must be a SQS topic URL. For more information, please see the [SQS docs](http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/ImportantIdentifiers.html). + +The SQS event payload will contain everything passed in the service call payload. SQS payloads will be published as stringified JSON. All attributes from the payload except message will also be sent as stringified message attributes. Here is an example message that would be published to the SQS queue: + +```json +{ + "title": "Test message!", + "target": "http://sqs.us-east-1.amazonaws.com/123456789012/queue2", + "data": { + "test": "okay" + }, + "message": "Hello world!" +} +``` diff --git a/source/_components/notify.ecobee.markdown b/source/_components/notify.ecobee.markdown new file mode 100644 index 00000000000..0eb55d9b7c1 --- /dev/null +++ b/source/_components/notify.ecobee.markdown @@ -0,0 +1,31 @@ +--- +layout: page +title: "Ecobee Notify" +description: "Instructions how to setup the Ecobee notification component within Home Assistant." +date: 2016-05-12 09:00 +sidebar: true +comments: false +sharing: true +footer: true +logo: ecobee.png +ha_category: Notify +ha_release: "0.20" +--- + +To get your Ecobee notifications working with Home Assistant, you must first have the main [Ecobee component](/components/ecobee/) loaded and running. Once you have that configured, you can setup this component to send messages to your Ecobee device. + +To use this notification platform in your installation, add the following to your `configuration.yaml` file: + +```yaml +# Example configuration.yaml entry +notify: + name: NOTIFIER_NAME + platform: ecobee +``` + +Configuration variables: + +- **name** (*Optional*): Setting the optional parameter `name` allows multiple notifiers to be created. The default value is `notify`. The notifier will bind to the service `notify.NOTIFIER_NAME`. + +To use notifications, please see the [getting started with automation page](/getting-started/automation/). + diff --git a/source/_components/notify.twilio_sms.markdown b/source/_components/notify.twilio_sms.markdown new file mode 100644 index 00000000000..f8865443eea --- /dev/null +++ b/source/_components/notify.twilio_sms.markdown @@ -0,0 +1,54 @@ +--- +layout: page +title: "Twilio SMS" +description: "Instructions how to add user notifications to Home Assistant." +date: 2016-05-14 14:14 +sidebar: true +comments: false +sharing: true +footer: true +logo: twilio.png +ha_category: Notifications +ha_release: "0.20" +--- + +The `twilio` notification platform enables sending notifications via SMS, powered by [Twilio](https://twilio.com). + +To use this notification platform in your installation, add the following to your `configuration.yaml` file: + +```yaml +# Example configuration.yaml entry +notify: + platform: twilio_sms + name: NOTIFIER_NAME + account_sid: ACCOUNT_SID_FROM_TWILIO + auth_token: AUTH_TOKEN_FROM_TWILIO + from_number: E164_PHONE_NUMBER +``` + +Configuration variables: + +- **account_sid** (*Required*): Your Twilio Account SID which can be found in your [console](https://www.twilio.com/console). It starts with the letters `AC`. +- **auth_token** (*Required*): Your Twilio Account SID which can be found in your [console](https://www.twilio.com/console). It should be directly under where you found the `account_sid`. +- **from_number** (*Required*): An [E.164](https://en.wikipedia.org/wiki/E.164) formatted phone number, like +14151234567. See [Twilio's guide to formatting phone numbers](https://www.twilio.com/help/faq/phone-numbers/how-do-i-format-phone-numbers-to-work-internationally) for more information. +- **name** (*Optional*): Setting the optional parameter `name` allows multiple notifiers to be created. The default value is `notify`. The notifier will bind to the service `notify.NOTIFIER_NAME`. + +### {% linkable_title Usage %} + +Twilio is a notify platform and thus can be controlled by calling the notify service [as described here](/components/notify/). It will send a notification to all E.164 phone numbers in the notification **target**. See the notes above regarding the `from_number` configuration variable for information about formatting phone numbers. + +```yaml +# Example automation notification entry +automation: + - alias: The sun has set + trigger: + platform: sun + event: sunset + action: + service: notify.twilio_sms + data: + message: 'The sun has set' + target: + - +14151234567 + - +15105555555 +``` diff --git a/source/_components/qwikswitch.markdown b/source/_components/qwikswitch.markdown new file mode 100644 index 00000000000..dd65621918c --- /dev/null +++ b/source/_components/qwikswitch.markdown @@ -0,0 +1,54 @@ +--- +layout: page +title: "QwikSwitch QSUSB Hub" +description: "Instructions how to integrate the QwikSwitch QSUSB Hub into Home Assistant." +date: 2016-05-04 00:00 +sidebar: true +comments: false +sharing: true +footer: true +logo: qwikswitch.png +ha_category: Hub +featured: false +ha_release: "0.20" +--- + + +The `qwikswitch` component is the main component to integrate various [QwikSwitch](http://www.qwikswitch.co.za/) devices with Home Assistant. + +Loading the `qwikswitch` component will automatically adds all devices from the QS Mobile application. QS Mobile controls the QSUSB Modem device. + +Currently QwikSwitch relays and LED dimmers are supported (tested). QwikSwitch relay devices can be [switches](/components/switch.qwikswitch/) or [lights](/components/light.qwikswitch/) in Home-Assistant. If the device name in the QSUSB app ends with ` Switch` it will be created as a switch, otherwise as a light. + +Example configuration: + +```yaml +# Example configuration.yaml entry +qwikswitch: + url: 'http://127.0.0.1:2020' +``` + +Configuration variables: + +- **url** (*Required*): The URL including the port of your QwikSwitch hub. + +### {% linkable_title QwikSwitch Buttons %} + +QwikSwitch devices (i.e. transmitter buttons) will fire events on the Home Assistant bus. These events can then be used as triggers for any `automation` action, as follows: + +```yaml +automation: + - alias: Action - Respond to button press + trigger: + platform: event + event_type: qwikswitch.button.@12df34 +``` + +`event_type` names should be in the format **qwikswitch.button.@__ID__**. where **@__ID__** will be captured in the Home Assistant log when pressing the button. Alternatively, you can also access the listen API call by going to 'http://127.0.0.1:2020/&listen' and then pressing the button. + +Currently Event will be created for the following commands (cmd) value in the Listen packet: +- `TOGGLE` - Normal QwikSwitch Transmitter button +- `SCENE EXE` - QwikSwitch Scene Transmitter buttons +- `LEVEL` - QwikSwitch OFF Transmitter buttons + +Technically this could work for Keyfobs, door sensors, and PIR transmitters as well. diff --git a/source/_components/recorder.markdown b/source/_components/recorder.markdown new file mode 100644 index 00000000000..2ab0afbbe76 --- /dev/null +++ b/source/_components/recorder.markdown @@ -0,0 +1,29 @@ +--- +layout: page +title: "Recorder" +description: "Instructions how to configure the data recorder for Home Assistant." +date: 2016-05-21 09:00 +sidebar: true +comments: false +sharing: true +footer: true +logo: home-assistant.png +ha_category: "History" +featured: false +ha_release: "0.20" +--- + +The `recorder` component is storing details in the local database which then are handled by the [`history` component](/component/history/). + +To setup the `recorder` component in your installation, add the following to your `configuration.yaml` file: + +```yaml +# Example configuration.yaml entry +recorder: + purge_days: 14 +``` + +Configuration variables: + +- **purge_days** (*Optional*): Delete events and states older than x days. + diff --git a/source/_components/sensor.google_travel_time.markdown b/source/_components/sensor.google_travel_time.markdown index be06fb1d94b..1667c1551a3 100644 --- a/source/_components/sensor.google_travel_time.markdown +++ b/source/_components/sensor.google_travel_time.markdown @@ -7,22 +7,36 @@ sidebar: true comments: false sharing: true footer: true -logo: +logo: google_maps.png ha_category: Sensor ha_iot_class: "Cloud Polling" ha_release: 0.19 --- -Sensor to provide travel time from Google maps api. +Sensor to provide travel time from the [Google Distance Matrix API](https://developers.google.com/maps/documentation/distance-matrix/). -Get an api key [here](https://github.com/googlemaps/google-maps-services-python#api-keys). +You need to register for an API key by following the instructions [here](https://github.com/googlemaps/google-maps-services-python#api-keys). You only need to turn on the Distance Matrix API. + +A free API Key allows 2500 requests per day. The sensor will update the travel time every 5 minutes. ```yaml # Example entry for configuration.yaml sensor: platform: google_travel_time + name: Google Travel Time api_key: XXXX_XXXXX_XXXXX origin: Trondheim, Norway destination: Paris, France - travel_mode: bicycling # can be ["driving", "walking", "bicycling", "transit"] + options: + ... ``` + +Configuration variables: + +- **api_key** (*Required*): Your application's API key (get one by following the instructions above). This key identifies your application for purposes of quota management. +- **origin** (*Required*): The starting point for calculating travel distance and time. You can supply one or more locations separated by the pipe character, in the form of an address, latitude/longitude coordinates, or a Google place ID. +- **destination** (*Required*): One or more locations to use as the finishing point for calculating travel distance and time. The options for the destinations parameter are the same as for the origins parameter, described above. +- **name** (*Optional*): A name to display on the sensor. The default is "Google Travel Time -You must have the [Nest component](/components/nest/) configured to use this sensor.
++You must have the [Nest component](/components/nest/) configured to use this sensor. +
diff --git a/source/_components/sensor.supervisord.markdown b/source/_components/sensor.supervisord.markdown new file mode 100644 index 00000000000..c51ed73c8f0 --- /dev/null +++ b/source/_components/sensor.supervisord.markdown @@ -0,0 +1,28 @@ +--- +layout: page +title: "Supervisord" +description: "Instructions how to integrate Supervisord within Home Assistant." +date: 2016-05-13 22:00 +sidebar: true +comments: false +sharing: true +footer: true +ha_category: Sensor +ha_release: "0.20" +--- + +The `supervisord` platform allows you to track the states of [Supervisor](http://supervisord.org/). + +To use this sensor in your installation, add the following to your `configuration.yaml` file: + +```yaml +# Example configuration.yaml entry +sensor: + platform: supervisord + url: http://192.168.1.1:9001/RPC2 +``` + +Configuration variables: + +- **url** (*Optional*): The URL to track. Default to `http://localhost:9001/RPC2`. + diff --git a/source/_components/switch.qwikswitch.markdown b/source/_components/switch.qwikswitch.markdown new file mode 100644 index 00000000000..8c2b4833f5f --- /dev/null +++ b/source/_components/switch.qwikswitch.markdown @@ -0,0 +1,23 @@ +--- +layout: page +title: "QwikSwitch Switch" +description: "Instructions how to integrate QwikSwitch relays into Home Assistant." +date: 2016-05-04 00:00 +sidebar: true +comments: false +sharing: true +footer: true +logo: qwikswitch.png +ha_category: Switch +ha_iot_class: "Local Push" +ha_release: "0.20" +--- + + +The `qwikswitch` platform allows you to control your [QwikSwitch](http://www.qwikswitch.co.za/) relays as switches from within Home Assistant. + +If the device name in the QSUSB app ends with `Switch` it will be created as a switch, otherwise as a [light](/components/light.qwikswitch/). + +They will be automatically discovered from the QSUSB API if the discovery component is enabled. + +For more configuration information see the [QwikSwitch component](/components/qwikswitch/) documentation. diff --git a/source/_includes/asides/developers_navigation.html b/source/_includes/asides/developers_navigation.html index 90bc7d9e2de..aec578230d7 100644 --- a/source/_includes/asides/developers_navigation.html +++ b/source/_includes/asides/developers_navigation.html @@ -26,6 +26,7 @@+In the past, this was achieved by adding your component to the `DISCOVERY_PLATFORMS` in the target sub-component. Generic discovery through `load_platform()` allows you to load any sub-component, including custom components, without changing the sub-component. +
diff --git a/source/getting-started/automation-action.markdown b/source/getting-started/automation-action.markdown index b08c9678a93..b099686bde8 100644 --- a/source/getting-started/automation-action.markdown +++ b/source/getting-started/automation-action.markdown @@ -47,3 +47,24 @@ automation 2: data: message: Oh wow you really missed something great. ``` + + +Conditions can also be part of an action: + +```yaml +automation: +- alias: 'Enciende Despacho' + trigger: + platform: state + entity_id: sensor.mini_despacho + to: 'ON' + action: + - condition: or + conditions: + - condition: template + value_template: '{{ states.sun.sun.attributes.elevation < 4 }}' + - condition: template + value_template: '{{ states.sensor.sensorluz_7_0.state < 10 }}' + - service: scene.turn_on + entity_id: scene.DespiertaDespacho +``` diff --git a/source/images/supported_brands/aws_lambda.png b/source/images/supported_brands/aws_lambda.png new file mode 100755 index 00000000000..40608d21c75 Binary files /dev/null and b/source/images/supported_brands/aws_lambda.png differ diff --git a/source/images/supported_brands/aws_sns.png b/source/images/supported_brands/aws_sns.png new file mode 100755 index 00000000000..1a04bd8e0df Binary files /dev/null and b/source/images/supported_brands/aws_sns.png differ diff --git a/source/images/supported_brands/aws_sqs.png b/source/images/supported_brands/aws_sqs.png new file mode 100755 index 00000000000..ffb40ee6bf9 Binary files /dev/null and b/source/images/supported_brands/aws_sqs.png differ diff --git a/source/images/supported_brands/google_maps.png b/source/images/supported_brands/google_maps.png new file mode 100644 index 00000000000..e44773b80dc Binary files /dev/null and b/source/images/supported_brands/google_maps.png differ diff --git a/source/images/supported_brands/gpmdp.png b/source/images/supported_brands/gpmdp.png new file mode 100644 index 00000000000..38a47c3d1dd Binary files /dev/null and b/source/images/supported_brands/gpmdp.png differ diff --git a/source/images/supported_brands/lastfm.png b/source/images/supported_brands/lastfm.png new file mode 100644 index 00000000000..4fde99f3713 Binary files /dev/null and b/source/images/supported_brands/lastfm.png differ diff --git a/source/images/supported_brands/lg.png b/source/images/supported_brands/lg.png new file mode 100644 index 00000000000..214f57a230e Binary files /dev/null and b/source/images/supported_brands/lg.png differ diff --git a/source/images/supported_brands/qwikswitch.png b/source/images/supported_brands/qwikswitch.png new file mode 100644 index 00000000000..5c310ad4fda Binary files /dev/null and b/source/images/supported_brands/qwikswitch.png differ diff --git a/source/images/supported_brands/roku.png b/source/images/supported_brands/roku.png new file mode 100644 index 00000000000..b91be81dfec Binary files /dev/null and b/source/images/supported_brands/roku.png differ diff --git a/source/images/supported_brands/twilio.png b/source/images/supported_brands/twilio.png new file mode 100644 index 00000000000..9e9ea721e1e Binary files /dev/null and b/source/images/supported_brands/twilio.png differ