Added Todoist integration and custom card

This commit is contained in:
2022-02-26 14:45:41 -05:00
parent f277d095c6
commit eef532e46c
2 changed files with 26 additions and 0 deletions

View File

@ -100,6 +100,14 @@ calendar:
username: !secret userIcloud
password: !secret passIcloud
url: https://caldav.icloud.com
- platform: todoist
token: !secret todoist_api_token
custom_projects:
- name: 'All Projects'
- name: 'Due Today'
due_date_days: 0
- name: 'Due This Week'
due_date_days: 7
device_tracker:
- platform: icloud3
@ -154,3 +162,10 @@ notify:
- service: mobile_app_kallen_iphone
- service: mobile_app_tony_s_ipad
- service: mobile_app_tony_s_iphone
rest_command:
todoist:
method: post
url: 'https://api.todoist.com/sync/v8/sync'
payload: !secret todoist_api_payload
content_type: 'application/x-www-form-urlencoded'

View File

@ -41,3 +41,14 @@
days: 7
entities:
- sensor.kdfi_wind_speed
- 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