mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 05:16:49 +00:00
Update sensor.twitch.markdown (#6201)
* Update sensor.twitch.markdown * Add setup instructions
This commit is contained in:
parent
4ef8be77ce
commit
07b52a3c8a
@ -16,6 +16,10 @@ ha_iot_class: "Cloud Polling"
|
|||||||
|
|
||||||
The `twitch` platform will allow you to monitor [Twitch](http://www.twitch.tv/) channel status from within Home Assistant and setup automation based on the information.
|
The `twitch` platform will allow you to monitor [Twitch](http://www.twitch.tv/) channel status from within Home Assistant and setup automation based on the information.
|
||||||
|
|
||||||
|
## {% linkable_title Setup %}
|
||||||
|
|
||||||
|
Create a new app at "Register Your Application" in the [Twitch developer portal](https://glass.twitch.tv/console/apps). Then get the **Client ID** for the new app.
|
||||||
|
|
||||||
## {% linkable_title Configuration %}
|
## {% linkable_title Configuration %}
|
||||||
|
|
||||||
To use Twitch with your installation, add the following to your `configuration.yaml` file:
|
To use Twitch with your installation, add the following to your `configuration.yaml` file:
|
||||||
@ -24,12 +28,17 @@ To use Twitch with your installation, add the following to your `configuration.y
|
|||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
sensor:
|
sensor:
|
||||||
platform: twitch
|
platform: twitch
|
||||||
|
client_id: YOUR_TWITCH_CLIENT_ID
|
||||||
channels:
|
channels:
|
||||||
- channel1
|
- channel1
|
||||||
- channel2
|
- channel2
|
||||||
```
|
```
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
|
clientid:
|
||||||
|
description: Your Twitch client ID.
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
channels:
|
channels:
|
||||||
description: List of channels.
|
description: List of channels.
|
||||||
required: true
|
required: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user