Splitting up sensors because there are starting to be a lot of them
This commit is contained in:
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
|
44
sensors/house_stats.yaml
Normal file
44
sensors/house_stats.yaml
Normal file
@ -0,0 +1,44 @@
|
||||
- platform: template
|
||||
sensors:
|
||||
sensor_count:
|
||||
friendly_name: 'Number of Sensors'
|
||||
value_template: >-
|
||||
{{ states.sensor | rejectattr('state', 'eq', 'unavailable') | list | count }}
|
||||
automation_count:
|
||||
friendly_name: 'Number of Automations'
|
||||
value_template: >-
|
||||
{{ states.automation| rejectattr('state', 'eq', 'unavailable') | list | count }}
|
||||
script_count:
|
||||
friendly_name: 'Number of Scripts'
|
||||
value_template: >-
|
||||
{{ states.script | rejectattr('state', 'eq', 'unavailable') | list | count }}
|
||||
binary_sensor_count:
|
||||
friendly_name: 'Number of Binary Sensors'
|
||||
value_template: >-
|
||||
{{ states.binary_sensor | rejectattr('state', 'eq', 'unavailable') | list | count }}
|
||||
tracker_count:
|
||||
friendly_name: 'Number of Devices'
|
||||
value_template: >-
|
||||
{{ states.device_tracker| rejectattr('state', 'eq', 'unavailable') | list | count }}
|
||||
lights_count:
|
||||
friendly_name: 'Number of Lights'
|
||||
value_template: >-
|
||||
{{ states.light | rejectattr('state', 'eq', 'unavailable') | list | count }}
|
||||
switches_count:
|
||||
friendly_name: 'Number of Switches'
|
||||
value_template: >-
|
||||
{{ states.switch | rejectattr('state', 'eq', 'unavailable') | list | count }}
|
||||
camera_count:
|
||||
friendly_name: 'Number of online Cameras'
|
||||
value_template: >-
|
||||
{{ states.camera | rejectattr('state', 'eq', 'unavailable') | list | count }}
|
||||
entities_count:
|
||||
friendly_name: 'Number of Entities'
|
||||
value_template: >-
|
||||
{{ states | rejectattr('state', 'eq', 'unavailable') | list | count}}
|
||||
na_entities_count:
|
||||
friendly_name: 'Number of NA Entities'
|
||||
value_template: >-
|
||||
{{ states | selectattr('state', 'eq', 'unavailable') | map(attribute='entity_id') | list | count }}
|
||||
- platform: uptime
|
||||
name: Last Boot
|
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