diff --git a/sensors/tasks.yaml b/sensors/tasks.yaml index 4e5adcf..ff3051f 100644 --- a/sensors/tasks.yaml +++ b/sensors/tasks.yaml @@ -20,3 +20,14 @@ json_attributes: - items scan_interval: 30 +- platform: rest + name: Home Tech + method: GET + resource: 'https://api.todoist.com/sync/v8/projects/get_data' + params: + token: !secret todoist_api_token + project_id: 2285967948 + value_template: '{{value_json[''project''][''id'']}}' + json_attributes: + - items + scan_interval: 30 \ No newline at end of file