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

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