mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 08:16:53 +00:00
Adding withings sensor platform documentation. (#8816)
* Adding withings documentation. * Updating docs. * Updating docs. * Fixing compile errors * Correct docs to match updated component. * Updating docs for up-tp-date withings information. * Updating docs to meet new options. * ✏️ Tweak * Update source/_components/withings.markdown Co-Authored-By: Klaas Schoute <klaas_schoute@hotmail.com> * Update source/_components/withings.markdown Co-Authored-By: Klaas Schoute <klaas_schoute@hotmail.com> * Update source/_components/withings.markdown Co-Authored-By: Klaas Schoute <klaas_schoute@hotmail.com> * ✏️ Tweaks * Updating documentation to match the updated parent PR. * Adjusting according to PR feedback. * ✏️ Tweaks * Fixing incorrect documentation. * Removing measures as this is no longer allowed. * ✏️ Tweak * ✏️ Tweaks
This commit is contained in:
parent
d7ad17274f
commit
bfef45e5db
87
source/_components/withings.markdown
Normal file
87
source/_components/withings.markdown
Normal file
@ -0,0 +1,87 @@
|
||||
---
|
||||
title: "Withings"
|
||||
description: "Instructions on how to integrate Withings health products within Home Assistant."
|
||||
logo: withings.png
|
||||
ha_category:
|
||||
- Health
|
||||
- Sensor
|
||||
ha_release: 0.99
|
||||
ha_iot_class: Cloud Polling
|
||||
---
|
||||
|
||||
The `withings` sensor platform consumes data from various health products produced by [Withings](https://www.withings.com).
|
||||
|
||||
## Setup
|
||||
|
||||
### Step 1 - Create a Withings Account
|
||||
|
||||
You must have a developer account to distribute the data. [Create a free development account](https://account.withings.com/partner/add_oauth2).
|
||||
|
||||
Values for your account:
|
||||
|
||||
- Logo: Any reasonable picture will do.
|
||||
- Description: Personal app for collecting my data.
|
||||
- Contact Email: Your email address
|
||||
- Callback Uri: `https://your-domain-name/` - Withings will check if this URL is accessible (HTTP HEAD) upon submitting the form.
|
||||
- Company: Home Assistant
|
||||
|
||||
Once saved, the "Client Id" and "Consumer Secret" fields will be populated. You will need these in the next step.
|
||||
|
||||
### Step 2 - Configure Home Assistant
|
||||
|
||||
```yaml
|
||||
# Example configuration.yaml entry
|
||||
withings:
|
||||
client_id: CLIENT_ID
|
||||
client_secret: CLIENT_SECRET
|
||||
profiles:
|
||||
- USER_PROFILE_NAME
|
||||
```
|
||||
|
||||
Withings supports multiple profiles per account. Each profile has a person's name to help distinguish whose data you're looking at. While the profile provided here can be arbitrary, it is recommended you use the same name from the Withings profile. This will make it easier to distinguish whose data you're looking at.
|
||||
|
||||
### Step 3 - Authorize Home Assistant
|
||||
|
||||
- Confirm your YAML configuration is valid by using the `Check Config` tool.
|
||||
- Restart Home Assistant.
|
||||
- Go to the integrations page.
|
||||
- Add a Withings integration.
|
||||
- Select the profile you intend to pull data. This will take you to the Withings site.
|
||||
- On the Withings site, choose the profile you selected in the previous step (if prompted).
|
||||
- Note: It's important you select the same profile from the previous step. Choosing a different one will result in Home Assistant displaying data for profile 2, but it will be labeled as profile 1.
|
||||
- Authorize the application. Your browser will redirect you to your Home Assistant URL.
|
||||
- Note: If you get a browser error saying the site is inaccessible, you can modify the
|
||||
`http://domain` portion of the URL to something you know is accessible, locally or publically. For example, `http://localhost:8123`.
|
||||
This occurs when the base URL provided by Home Assistant to Withings is not accessible to the outside world.
|
||||
Changing the domain will not affect how data is synchronized.
|
||||
- Data will synchronize immediately and update every 5 minutes.
|
||||
|
||||
## Configuration
|
||||
|
||||
```yaml
|
||||
# Example configuration.yaml entry
|
||||
withings:
|
||||
client_id: CLIENT_ID
|
||||
client_secret: CLIENT_SECRET
|
||||
profiles:
|
||||
- USER_PROFILE_NAME
|
||||
```
|
||||
{% configuration %}
|
||||
client_id:
|
||||
description: The OAuth client id (get from https://account.withings.com/partner/add_oauth2)
|
||||
required: true
|
||||
type: string
|
||||
client_secret:
|
||||
description: The OAuth secret (get from https://account.withings.com/partner/add_oauth2)
|
||||
required: true
|
||||
type: string
|
||||
profiles:
|
||||
description: Withings supports multiple profiles per account. Provide the person's name whom you want Home Assistant entities to will be associated with (just a name, it doesn't have to be perfect). During the authorization step, you will be asked to select this user from the Withings website.
|
||||
required: true
|
||||
type: map
|
||||
base_url:
|
||||
description: Overrides Home Assistant's default base URL to use when authorizing with Withings.
|
||||
required: false
|
||||
type: string
|
||||
default: The base URL provided in the Home Assistant `api` component.
|
||||
{% endconfiguration %}
|
BIN
source/images/supported_brands/withings.png
Normal file
BIN
source/images/supported_brands/withings.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.5 KiB |
Loading…
x
Reference in New Issue
Block a user