Minimizing of the configuration sample (#1034)

This commit is contained in:
Fabian Affolter 2016-10-02 17:12:58 +02:00 committed by GitHub
parent a175486bb3
commit fab9b3034e
29 changed files with 146 additions and 158 deletions

View file

@ -15,31 +15,25 @@ ha_release: 0.29
The `Kodi` platform allows you so send messages to your [Kodi](https://kodi.tv/) multimedia system from Home Assistant.
To add Kodi to your installation, add the following to your configuration.yaml file:
To add Kodi to your installation, add the following to your `configuration.yaml` file:
### {% linkable_title Configuration %}
```yaml
# Example configuration.yaml entry
notify:
platform: kodi
name: NOTIFIER_NAME
host: http://192.168.0.123
port: 8080
username: USERNAME
password: PASSWORD
- name: NOTIFIER_NAME
platform: kodi
host: http://192.168.0.123
```
- **name** (*Optional*): Name displayed in the frontend. The notifier will bind to the service `notify.NOTIFIER_NAME`.
- **host** (*Required*): The host name or address of the device that is running Kodi.
- **port** (*optional*): The port number, the default value is `8080`.
- **port** (*Optional*): The port number, the default value is `8080`.
- **username** (*Optional*): The XBMC/Kodi HTTP username.
- **password** (*Optional*): The XBMC/Kodi HTTP password.
### {% linkable_title script.yaml example %}
```yaml
################################################################
## Script / Notify KODI
################################################################
kodi_notification:
sequence:
- service: notify.NOTIFIER_NAME
@ -50,7 +44,9 @@ kodi_notification:
displaytime: 20000
icon: "warning"
```
#### message variables:
#### {% linkable_title Message variables %}
- **title** (*Optional*): Title that is displayed on the message.
- **message** (*Required*): Message to be displayed.
- **data** (*Optional*)