Splitting up sensors because there are starting to be a lot of them
This commit is contained in:
@ -16,7 +16,7 @@ scene:
|
|||||||
camera: !include cameras.yaml
|
camera: !include cameras.yaml
|
||||||
input_boolean: !include input_boolean.yaml
|
input_boolean: !include input_boolean.yaml
|
||||||
binary_sensor: !include binary_sensor.yaml
|
binary_sensor: !include binary_sensor.yaml
|
||||||
sensor: !include sensor.yaml
|
sensor: !include_dir_merge_list sensors
|
||||||
switch: !include switches.yaml
|
switch: !include switches.yaml
|
||||||
input_select: !include input_select.yaml
|
input_select: !include input_select.yaml
|
||||||
input_text: !include input_text.yaml
|
input_text: !include input_text.yaml
|
||||||
|
18
sensors/entertainment.yaml
Normal file
18
sensors/entertainment.yaml
Normal 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
|
@ -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
|
- platform: template
|
||||||
sensors:
|
sensors:
|
||||||
sensor_count:
|
sensor_count:
|
||||||
@ -85,9 +40,5 @@
|
|||||||
friendly_name: 'Number of NA Entities'
|
friendly_name: 'Number of NA Entities'
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{{ states | selectattr('state', 'eq', 'unavailable') | map(attribute='entity_id') | list | count }}
|
{{ states | selectattr('state', 'eq', 'unavailable') | map(attribute='entity_id') | list | count }}
|
||||||
today_is:
|
- platform: uptime
|
||||||
friendly_name: 'Today is'
|
name: Last Boot
|
||||||
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] }}"
|
|
22
sensors/tasks.yaml
Normal file
22
sensors/tasks.yaml
Normal 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
11
sensors/time.yaml
Normal 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] }}"
|
Reference in New Issue
Block a user