mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Fix documentation for twitch changes (#21767)
This commit is contained in:
parent
d90fb6a98f
commit
da1b17e048
@ -12,16 +12,16 @@ ha_platforms:
|
|||||||
|
|
||||||
The `twitch` platform will allow you to monitor [Twitch](https://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](https://www.twitch.tv/) channel status from within Home Assistant and setup automation based on the information.
|
||||||
|
|
||||||
## Setup Client ID
|
## Setup Client ID and Client secret
|
||||||
|
|
||||||
Create a new app at "Register Your Application" in the [Twitch developer portal](https://dev.twitch.tv/console/apps). Then get the __Client ID__ for the new application.
|
Create a new app at "Register Your Application" in the [Twitch developer portal](https://dev.twitch.tv/console/apps). Then get the __Client ID__ and __Client secret__ for the new application.
|
||||||
|
|
||||||
## Setup OAuth Token
|
## Setup OAuth Token
|
||||||
|
|
||||||
To enable the follow and subscription attributes, the OAuth token is needed to get the right permissions on the Twitch API.
|
To enable the follow and subscription attributes, the OAuth token is needed to get the right permissions on the Twitch API.
|
||||||
If you don't need those, ignore the configuration setting: `token`.
|
If you don't need those, ignore the configuration setting: `token`.
|
||||||
|
|
||||||
To get the OAuth token, visit the [OAuth Token Generator](https://twitchapps.com/tokengen/#), insert your __Client ID__ and `user_read user_subscriptions` inside __scopes__.
|
To get the OAuth token, visit the [OAuth Token Generator](https://twitchapps.com/tokengen/#), insert your __Client ID__ and `user:read:subscriptions` inside __scopes__.
|
||||||
|
|
||||||
Before clicking Summit (the broken image below the form), visit the [Twitch dev console](https://dev.twitch.tv/console) and add a new application.
|
Before clicking Summit (the broken image below the form), visit the [Twitch dev console](https://dev.twitch.tv/console) and add a new application.
|
||||||
|
|
||||||
@ -38,6 +38,8 @@ To use Twitch with your installation, add the following to your `configuration.y
|
|||||||
sensor:
|
sensor:
|
||||||
platform: twitch
|
platform: twitch
|
||||||
client_id: YOUR_TWITCH_CLIENT_ID
|
client_id: YOUR_TWITCH_CLIENT_ID
|
||||||
|
client_secret: YOUR_TWITCH_CLIENT_SECRET
|
||||||
|
token: YOUR_TWITCH_OAUTH_TOKEN
|
||||||
channels:
|
channels:
|
||||||
- channel1
|
- channel1
|
||||||
- channel2
|
- channel2
|
||||||
@ -48,6 +50,10 @@ client_id:
|
|||||||
description: Your Twitch client ID.
|
description: Your Twitch client ID.
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
client_secret:
|
||||||
|
description: Your Twitch client secret.
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
token:
|
token:
|
||||||
description: Your Twitch OAuth Token.
|
description: Your Twitch OAuth Token.
|
||||||
required: false
|
required: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user