Hi,
I want to add tasks to todoist through voice assistant but the integration current lets everyone at home see my to do list.
Is there any way to restrict access to this integration to specific users only? Or any way to hide the side bar to do list from all users on all devices? Right now I have to do it on a per-device level by going into the persons device and it’s very easy for them to add it back.
For anyone else who wants to do this:
I did this using restful command integration: RESTful Command - Home Assistant
And the todoist API: REST API Reference | Todoist Developer
custom_sentences/en.yaml
intents:
TodoistAddTask:
data:
- sentences:
- "Remind me to {task_content}"
config.yaml
rest_command:
todoist_add_task:
url: "https://api.todoist.com/rest/v2/tasks"
headers:
authorization: !secret todoist_key
accept: "application/json"
method: POST
content_type: 'application/json'
payload: '{"content": "{{ task_content }}", "due_string": "today"}'
intent_script:
TodoistAddTask:
data:
- sentences:
- "Remind me to {task_content}"
- "Remind (love|Luv) to {task_content}"
lists:
task_content:
wildcard: true