Skip to content

OscarHanzely/home-assistant-custom-components

 
 

Repository files navigation

Home Assistant custom components Build Status Coverage Status

Questrade

Installation

  • Copy components/questrade/sensor.py to /config/custom_components/questrade/sensor.py.
  • Create an personal application on Questrade.
  • Fill the following configuration:
sensor:
  - platform: questrade
    client_id: <consumer key>
    refresh_token: <token>
    currency: CAD
    scan_interval: 900

Configuration variables:

  • client_id (Required): The API consumer key. This is not used at this time but could be once this component uses a proper authorization flow.
  • refresh_token (Required): The initial OAuth refresh token.
  • currency (Optional): For combined balances, the currency to use for the account attributes. Defaults to CAD.
  • scan_interval (Optional): The number of seconds between updates. Defaults to 60.

Custom UI

  • Copy custom_ui/state-card-custom-questrade.html to /config/www/custom_ui/state-card-custom-questrade.html.
  • In the frontend: section of the configuration.yaml file, use extra_html_url to specify the URL to load.
  • In the customize: section add custom_ui_state_card: state-card-custom-questrade for each account entity.

Example:

homeassistant:
  frontend:
    extra_html_url:
      - /local/custom_ui/state-card-custom-questrade.html

  customize:
    sensor.questrade_12345678:
      custom_ui_state_card: state-card-custom-questrade

Withings body measurements

Installation

  • Copy components/withings to /config/custom_components/withings.
  • Copy the content of the www directory to /config/www/
  • Go to https://account.withings.com/partner/add_oauth2 to register a developer account and create a new app.
  • Fill the following configuration:
sensor:
  - platform: withings
    client_id: <Client ID>
    consumer_secret: <Consumer Secret>

Configuration variables:

  • client_id (Required): The Withings app Client ID.
  • consumer_secret (Required): The Withings app Consumer Secret.

Strava athlete statistics

Installation

  • Copy sensor/strava.py to /config/custom_components/sensor/strava.py.
  • Copy the content of the www directory to /config/www/
  • Go to https://www.strava.com/settings/api and create a new App. Make sure the Authorization Callback Domain matches the host name used by Home Assistant.
  • Fill the following configuration:
sensor:
  - platform: strava
    client_id: <App Client ID>
    client_secret: <App Client Secret>

Configuration variables:

  • client_id (Required): The Strava app client ID.
  • client_secret (Required): The Strava app client secret.

About

Extra components for 🏠 Home Assistant

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 86.0%
  • HTML 8.5%
  • JavaScript 5.5%