This custom component integrates TickTick todo lists with Home Assistant's Todo integration, allowing you to view and manage your TickTick tasks directly from Home Assistant.
- View and manage TickTick tasks from Home Assistant
- Create new tasks
- Update existing tasks
- Delete tasks
- Set task descriptions
- Set due dates for tasks
- Each TickTick project appears as a separate todo list entity in Home Assistant
- Home Assistant 2023.8.0 or newer (with Todo integration support)
- A TickTick account
- TickTick API credentials (Client ID and Client Secret)
- Make sure you have HACS installed in your Home Assistant instance.
- Add this repository as a custom repository in HACS:
- Go to HACS in your Home Assistant instance
- Click on "Integrations"
- Click the three dots in the top right corner
- Select "Custom repositories"
- Add the URL
https://github.com/konikvranik/hacs_ticktick - Select "Integration" as the category
- Click "Add"
- Search for "TickTick TODO" in HACS and install it
- Restart Home Assistant
- Download the latest release from the GitHub repository
- Create a
custom_componentsdirectory in your Home Assistant configuration directory if it doesn't already exist - Extract the
ticktick_tododirectory from the release into thecustom_componentsdirectory - Restart Home Assistant
- Go to the TickTick Developer Portal
- Create a new application
- Set the redirect URI to
https://my.home-assistant.io/redirect/oauthif you're using My Home Assistant, or to your Home Assistant URL followed by/auth/external/callback(e.g.,https://your-home-assistant:8123/auth/external/callback) - Note down the Client ID and Client Secret
- Go to Home Assistant Settings > Devices & Services
- Click "Add Integration" and search for "TickTick TODO"
- Click on the integration and follow the configuration flow
- Enter your Client ID and Client Secret when prompted
- Authorize the application with your TickTick account
After setting up the integration, each of your TickTick projects will appear as a separate todo list entity in Home Assistant. You can:
- View your tasks in the Home Assistant UI
- Create new tasks
- Mark tasks as completed
- Update task details
- Delete tasks
automation:
- alias: "Create TickTick task when motion detected"
trigger:
- platform: state
entity_id: binary_sensor.motion_sensor
to: "on"
action:
- service: todo.add_item
target:
entity_id: todo.ticktick_your_project_id
data:
item: "Check why there was motion"
due_date: "{{ now().strftime('%Y-%m-%d') }}"automation:
- alias: "Mark watering plants task as done when moisture is detected"
trigger:
- platform: numeric_state
entity_id: sensor.plant_moisture
above: 60
action:
- service: todo.update_item
target:
entity_id: todo.ticktick_your_project_id
data:
item: "Water the plants"
status: "completed"If you encounter authentication issues:
- Go to Home Assistant Settings > Devices & Services
- Find the TickTick TODO integration and click "Configure"
- Follow the steps to reauthorize the application
- Make sure your TickTick account has the correct permissions
- Try restarting Home Assistant
- Check the Home Assistant logs for any error messages
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the terms of the license specified in the repository.