Files
Home-Assistant-Configs/sensor.yaml
2022-04-05 18:29:18 -04:00

55 lines
1.4 KiB
YAML

- platform: twitch_helix
client_id: !secret twitch_client_id
client_secret: !secret twitch_client_secret
own_channel: ironnerd24
thumbnail_dimensions: 320x180
entity_prefix: Twitch_
channels:
- ironnerd24
- Xia_P988
- ManaSen
- STPeach
- BroteinGaming404
- NotoriosPenguin
- platform: rest
name: Household Tasks
method: GET
resource: 'https://api.todoist.com/sync/v8/projects/get_data'
params:
token: !secret todoist_api_token
project_id: 2285967928
value_template: '{{value_json[''project''][''id'']}}'
json_attributes:
- items
scan_interval: 30
- platform: rest
name: Kallen Tasks
method: GET
resource: 'https://api.todoist.com/sync/v8/projects/get_data'
params:
token: !secret todoist_api_token
project_id: 2285969005
value_template: '{{value_json[''project''][''id'']}}'
json_attributes:
- items
scan_interval: 30
- platform: season
type: astronomical
name: Current Season
- platform: uptime
name: Last Boot
- platform: plex_recently_added
name: Recently Added on Plex
token: !secret plex_token
host: 192.168.1.4
port: 32400
school_tomorrow:
friendly_name: 'School Tomorrow'
value_template: >-
{%- set test=(as_timestamp(now())+ (86400)) | timestamp_custom("%Y-%m-%d",true) %}
{% if states.calendar.kallen_school.attributes.start_time == test + " 07:35:00" %}
on
{% else %}
off
{% endif %}