Splitting up sensors because there are starting to be a lot of them

This commit is contained in:
2022-04-06 15:05:15 -04:00
parent 745242fc51
commit 861f67d759
5 changed files with 54 additions and 52 deletions

View File

@ -16,7 +16,7 @@ scene:
camera: !include cameras.yaml
input_boolean: !include input_boolean.yaml
binary_sensor: !include binary_sensor.yaml
sensor: !include sensor.yaml
sensor: !include_dir_merge_list sensors
switch: !include switches.yaml
input_select: !include input_select.yaml
input_text: !include input_text.yaml

View File

@ -0,0 +1,18 @@
- 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: plex_recently_added
name: Recently Added on Plex
token: !secret plex_token
host: 192.168.1.4
port: 32400

View File

@ -1,48 +1,3 @@
- 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
- platform: template
sensors:
sensor_count:
@ -85,9 +40,5 @@
friendly_name: 'Number of NA Entities'
value_template: >-
{{ states | selectattr('state', 'eq', 'unavailable') | map(attribute='entity_id') | list | count }}
today_is:
friendly_name: 'Today is'
value_template: "{{ ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'][now().weekday()] }}"
month_is:
friendly_name: 'Month is'
value_template: "{{ ['January','February','March','April','May','June','August','September','October','November','December'][now().month-1] }}"
- platform: uptime
name: Last Boot

22
sensors/tasks.yaml Normal file
View File

@ -0,0 +1,22 @@
- 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

11
sensors/time.yaml Normal file
View File

@ -0,0 +1,11 @@
- platform: season
type: astronomical
name: Current Season
- platform: template
sensors:
today_is:
friendly_name: 'Today is'
value_template: "{{ ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'][now().weekday()] }}"
month_is:
friendly_name: 'Month is'
value_template: "{{ ['January','February','March','April','May','June','August','September','October','November','December'][now().month-1] }}"