Closed dgrnbrg closed 1 year ago
Looks like I have the same issue, I want to create a task with an automation, but I also want to be able to track it via automation, and fire automation based on tracking it via grocy, but it's impossible.
This works only as long as the task id has never been used before or the task with the id is deleted from grocy ui. Even if the task is marked executed, it still doesn't allow creating a new task with the same id.
data:
entity_type: tasks
data:
name: "House Chore: Empty the dishwasher"
id: "2"
due_date: "{{ now().year }}-{{ now().month }}-{{ now().day }}"
Quite unfortunate, as automatically executing tasks where would be very useful.
I filed a PR adding the update_generic service, which I think handles these cases. You can manually schedule chores, and edit task details, etc.
#
I filed a PR adding the update_generic service, which I think handles these cases. You can manually schedule chores, and edit task details, etc.
That's amazing, thank you very much!
After the update I can now modify and delete tasks, but if I reschedule a task that's marked done, it still remains marked done. Maybe there should be something like undo: true
for the update_generic service? I could also delete the task when done but then I'd need to run another automation just to do that.
I believe update_generic with done: false
in the data section will change it from done back to incomplete.
I believe update_generic with
done: false
in the data section will change it from done back to incomplete.
Can confirm that it does, thanks! From my end it looks like the issue is now fully solved.
Describe the bug It is not possible to manually schedule a chore execution through the integration.
Expected behavior I thought that if I did
grocy.add_generic
with a body like:this would schedule chore 51 for today. However, this didn't work. It seems like perhaps an "Edit Generic" to the URI
/objects/{entity}/{objectId}
is missing.What is your installed versions of Home Assistant, Grocy and this integration?
Home assistant 2023.2.5
Grocy 3.3.2
Grocy integration - I'm not sure how to find the version.
How do you have Grocy installed? Add-on or external?
I'm using the grocy add-on.
Have you added debugging to the log, and what does the log say?