Log habit
log_habitLog a habit entry for a date. Sets the value for a day (0 clears it). Without a value the day is marked fully done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date to log (Y-m-d, defaults to today, cannot be in the future) | |
| value | No | Value to set for that day (default: the habit's full daily target, i.e. done). 0 clears the day. Count/duration habits are only done when value >= target. | |
| habit_id | Yes | ID of the habit |