Skip to content

Commit 0fb3d0a

Browse files
William ScanlonLandrash
authored andcommitted
Removed access_token and added new developer.wink.com auth info (home-assistant#3025)
1 parent c23c2bc commit 0fb3d0a

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

source/_components/wink.markdown

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,37 +26,37 @@ Check the related componets pages for actual devices that are support.
2626

2727
Home Assistant offers multiple ways to authenticate to the Wink API. Each authentication method is described below.
2828

29-
### Authentication with an access token.
29+
### Authenticate using [developer.wink.com](https://developer.wink.com)
3030

3131

32-
To use this form of authentication obtain a token from the form below and insert it into your `configuration.yaml`
32+
This method will require you to setup a developer account with Wink. This process can take a few days to get approved, but is the recommanded form of authentication. If you would like to use Wink in Home Assistant while you wait, you can use the email and password authentication below.
3333

34-
<iframe src="https://winkbearertoken.appspot.com"
35-
style='width: 100%; height: 200px; border: 0; margin: 0 auto 15px; border-left: 2px solid #049cdb; padding-left: 15px;'></iframe>
34+
This form of authentication doesn't require any settings in the configuration.yaml other than `wink:` this is because you will be guided through setup via the configurator on the frontend.
35+
36+
<p class='note'>
37+
When using the configurator make sure the initial setup is performed on the same local network as the Home Assistant server, if not from the same box Home Assistant is running on. This will allow for authentication redirects to happen correctly.
38+
</p>
3639

3740
```yaml
3841
wink:
39-
access_token: YOUR_ACCESS_TOKEN
4042
```
4143
44+
4245
### Authentication with your Wink email and password.
4346
4447
45-
This method uses the same form from above to obtain an access token, but does so without the user needing to manually do so.
46-
This method pulls a new token on every startup of Home Assistant.
48+
This method pulls a new token on every startup of Home Assistant from this [URL](https://winkbearertoken.appspot.com)
4749
4850
```yaml
4951
wink:
5052
email: YOUR_WINK_EMAIL_ADDRESS
5153
password: YOUR_WINK_PASSWORD
5254
```
5355
54-
### Full oath authentication. (This is the best option!)
55-
56+
### Full oauth authentication (legacy).
5657
57-
You can also request API access via Wink's [contact us](http://www.wink.com/help/contact/) page.
58+
This should be used for users that obtained their client_id and client_secret via email from Wink support.
5859
59-
You will be provided with a client ID and a client secret via email. These can then be used in your configuration in place of the access_token this will prevent you from having to manually refresh your access token.
6060
6161
```yaml
6262
wink:
@@ -68,14 +68,12 @@ wink:
6868
6969
Configuration variables:
7070
71-
- **access_token** (*Required if the below aren't present.*): The retrieved access token.
7271
- **email** (*Required if access token isn't provided*): Your Wink login email.
7372
- **password** (*Required if access token isn't provided*): Your Wink login password.
7473
- **client_id** (*Required if access token isn't provided*): Your provided Wink client_id.
7574
- **client_secret** (*Required if access token isn't provided*): Your provided Wink client_secret.
76-
- **user_agent** (*Optional*): The user-agent passed in the API calls to Wink.
7775
78-
This will connect to the Wink API and automatically set up any switches, lights, locks, fans, climate devices, covers, and sensors.
76+
This will connect to the Wink API and automatically set up any switches, lights, locks, fans, climate devices, covers, sensors, and alarms.
7977
8078
### {% linkable_title Service `refresh_state_from_wink` %}
8179

0 commit comments

Comments
 (0)