2.0 KiB
title | description | ha_category | ha_release | ha_iot_class | ha_domain | ha_platforms | ha_integration_type | related | ha_quality_scale | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
How to integrate the Reddit sensor into Home Assistant. |
|
0.89 | Cloud Polling |
|
integration |
|
legacy |
The Reddit sensor integrates data from Reddit to monitor your favorite subreddits.
Setup
To set up this sensor, you will need to generate a client_id
and client_secret
for the user account you will use to connect. Follow the first steps in this Wiki page.
{% important %} This integration does not support Reddit's two-factor authentication. If you use two-factor authentication for your Reddit account, create a separate Reddit account without two-factor authentication for use with Home Assistant. {% endimportant %}
Configuration
To enable this {% term integration %}, add the following to your {% term "configuration.yaml
" %} file.
{% include integrations/restart_ha_after_config_inclusion.md %}
# Example configuration.yaml entry
sensor:
- platform: reddit
username: !secret reddit_username
password: !secret reddit_password
client_id: !secret reddit_client_id
client_secret: !secret reddit_client_secret
subreddits:
- news
- worldnews
{% configuration %}
username:
description: Your Reddit account username.
required: true
type: string
password:
description: Your Reddit account password.
required: true
type: string
client_id:
description: Your Reddit account client ID.
required: true
type: string
client_secret:
description: Your Reddit account client secret
required: true
type: string
subreddits:
description: List of subreddits you want to get data on.
required: true
type: list
sort_by:
description: "Sort reddit posts by new
, top
, controversial
and hot
."
required: false
type: string
default: hot
{% endconfiguration %}