anyone know how I can make this work? I want to update a chore using an automation and assign it to a user_id (home assistant). there isn't much documentation on how to get it working on donetick's side. https://github.com/donetick/donetick/blob/main/internal/chore/api.go#L152
When I run the automation it runs without an error but fails to do anything...
rest_command:
donetick_assign_user:
url: "http://192.168.68.69:2021/eapi/v1/chore/{{ chore_id }}"
method: PATCH
headers:
secretkey: !secret donetick_api_key
Content-Type: "application/json"
payload: >
{
"assignedTo": {{ user_id }}
}
and the automation
alias: Dishwasher request empty
triggers:
- entity_id: sensor.dishwasher_operation_state
to: finished
trigger: state
actions:
- data:
task_id: 9
due_date: "{{ now().astimezone().strftime('%Y-%m-%dT23:59:00Z') }}"
action: donetick.update_task
- data:
chore_id: 9
user_id: 3
action: rest_command.donetick_assign_user
mode: single