DONETICK -> HOME ASSISTANT -> ALEXA / PHONE / SPEAKER

Full guide: https://donetick.com/blog/donetick-home-assistant-alexa/
The article may be in a local/private preview until the site is published.

1. Copy donetick-due-task.yaml into your Home Assistant configuration folder:
   blueprints/automation/donetick/donetick-due-task.yaml
   Do NOT paste it into configuration.yaml or automations.yaml.
2. Reload blueprints in Settings > Automations & scenes > Blueprints.
   Create an automation from "Donetick — announce a due task".
3. Under "Webhook", select ADD TRIGGER > Webhook. Home Assistant generates the
   secret webhook ID itself; you do not create one. Leave it as generated and
   never replace it with a published example ID. If the ID field is empty, type
   a long random value of your own.
4. In that trigger's cog menu, leave only POST allowed. Leave "Only accept
   local requests" on for trusted local self-hosting; turn it off for
   Donetick Cloud or Home Assistant Cloud webhook delivery.
   Notification hours default to 08:00-21:00, Home Assistant local time.
   Outside-hours events are DISCARDED, not delayed.
5. Save and enable the automation. Keep the default Home Assistant inbox
   notification action for the first test.
6. Local or existing secure HTTPS: use the copy button beside the generated
   webhook ID to copy the complete URL, then confirm its host is the address
   Donetick can actually reach (e.g. http://YOUR_HA_ADDRESS:8123/... or
   https://YOUR_HA_HOST/...).
   Home Assistant Cloud: Settings > Home Assistant Cloud > Webhooks > enable
   this automation and copy its exact public address (append nothing).
7. As a Donetick household admin, put that complete URL in Settings >
   Advanced > Webhook and save. Check that you are not replacing another
   integration's destination. Do not put a Home Assistant token in the URL.
8. Create a household-visible task due 10 minutes in the future. Assign one
   member with a working Donetick notification target. Enable a reminder at
   the due time (zero offset), save, and allow a few minutes after it is due.
9. Check Home Assistant's notification inbox and the automation's Traces.
10. For Alexa, add the BUILT-IN Alexa Devices integration and complete Amazon
    authenticator-app MFA setup. Test notify.send_message to your Echo's
    Announce notify entity in Developer tools > Actions with fixed text.
    Replace the blueprint notification action with the Alexa example in
    notification-actions.yaml. Use your real entity ID and the literal
    template {{ donetick_message }}. Save and retest.

OPTIONAL IMMEDIATE TEST (macOS/Linux, curl required)
Run sh test-webhook.sh from this folder. Paste the private URL when prompted.
It sends test-reminder.json and changes no Donetick tasks. The sample date is
fixed; the blueprint does not schedule from it. Tests obey notification hours.
HTTP 200 alone does not prove success: check the trace AND actual notification.
Run actions is not a webhook test; it lacks trigger.json.

NOTES
- This accepts task.reminder with data.type = due only. It ignores pre_due,
  overdue, creation, and completion events. It does not complete tasks.
- No polling, API tokens, custom Donetick integration, or HACS required.
- Native Alexa Devices uses notify.send_message + a notify entity.
  Community Alexa Media Player uses different syntax (optional example).
- Multiple notification recipients/group reminders can cause duplicates;
  this starter does not deduplicate. Begin with one assignee and no group
  reminder. No durable catch-up is provided after an outage.
- Keep the webhook URL secret. Anyone who knows it can attempt to send
  announcements. Never reuse it for locks or other security-sensitive actions.
- Use HTTPS over the internet; don't expose an unencrypted HA port.
- Hosted webhook access may depend on your Donetick plan. Self-hosted behavior
  depends on version/configuration. Restricted-project tasks are excluded from
  the household webhook in the reviewed backend.
- Backend fields and current Home Assistant docs were reviewed. Automated
  structure/template tests are not a live Home Assistant/Echo hardware test.
