create_habit action (#37776)

This commit is contained in:
Manu 2025-03-05 06:39:33 +01:00 committed by GitHub
parent 1a2f6cf65f
commit 4f1c48313c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -328,6 +328,21 @@ Updates a specific habit for the selected Habitica character.
| `counter_down` | yes | Update the down counter of a negative habit. |
| `alias` | yes | A task alias can be used instead of the name or task ID. Only dashes, underscores, and alphanumeric characters are supported. The task alias must be unique among all your tasks. |
### Action `habitica.create_habit`
Creates a habit for the selected Habitica character.
| Data attribute | Optional | Description |
| -------------- | -------- | -------------------------------------------------------------------------------------------- |
| `config_entry` | no | Select the Habitica account to create a habit. |
| `name` | no | The title for the Habitica habit. |
| `notes` | yes | The notes for the Habitica habit. |
| `up_down` | yes | Defines if the habit is good and rewarding (positive), bad and penalizing (negative) or both. Valid values: `up`, `down`, or `[up, down]` |
| `priority` | yes | Sets the difficulty of the habit. Valid values: `trivial`, `easy`, `medium`, `hard`. Default: `easy` |
| `frequency` | yes | Defines when the habit's counter resets. Valid values: `daily`, `weekly`, `monthly`. Default: `daily` |
| `tag` | yes | Add tags to the Habitica habit. If a tag does not already exist, a new one will be created. |
| `alias` | yes | A task alias can be used instead of the name or task ID. Only dashes, underscores, and alphanumeric characters are supported. The task alias must be unique among all your tasks. |
## Automations
Get started with these automation examples for Habitica, each featuring ready-to-use blueprints!