mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-14 04:46:49 +00:00
Add blueprint/automation examples for Habitica (#35327)
* Add blueprint/automation examples for Habitica * Fix parsing error * Move automation section above actions * Blueprint exchange
This commit is contained in:
parent
331849e520
commit
b0dd2e05e2
@ -73,6 +73,85 @@ The following Habitica tasks are available as to-do lists in Home Assistant. You
|
|||||||
|
|
||||||
- **Rest in the Inn:** When enabled, allows your character to rest in the inn in Habitica, pausing damage dealt from dailies and quest bosses.
|
- **Rest in the Inn:** When enabled, allows your character to rest in the inn in Habitica, pausing damage dealt from dailies and quest bosses.
|
||||||
|
|
||||||
|
## Automations
|
||||||
|
|
||||||
|
Get started with these automation examples for Habitica, each featuring ready-to-use blueprints!
|
||||||
|
|
||||||
|
### Create "Empty the dishwasher" to-do
|
||||||
|
|
||||||
|
Automatically create a Habitica to-do when the dishwasher finishes its cycle.
|
||||||
|
|
||||||
|
{% my blueprint_import badge blueprint_url="https://community.home-assistant.io/t/habitica-create-to-do-when-dishwasher-finishes-its-cycle/786625" %}
|
||||||
|
|
||||||
|
{% details "Example YAML configuration" %}
|
||||||
|
|
||||||
|
{% raw %}
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
triggers:
|
||||||
|
- trigger: state
|
||||||
|
entity_id: sensor.dishwasher
|
||||||
|
from: "on"
|
||||||
|
to: "off"
|
||||||
|
|
||||||
|
actions:
|
||||||
|
- action: todo.add_item
|
||||||
|
data:
|
||||||
|
item: "Empty the dishwasher 🥣🍽️"
|
||||||
|
due_date: "{{now().date()}}"
|
||||||
|
description: "Empty the clean dishes from the dishwasher and load any dirty dishes that are waiting."
|
||||||
|
target:
|
||||||
|
entity_id: todo.habitica_to_dos
|
||||||
|
```
|
||||||
|
|
||||||
|
{% endraw %}
|
||||||
|
|
||||||
|
{% enddetails %}
|
||||||
|
|
||||||
|
### Complete toothbrushing tasks on your Habitica Dailies list
|
||||||
|
|
||||||
|
Automatically mark your morning and evening toothbrushing dailies as complete when your toothbrush usage is detected.
|
||||||
|
|
||||||
|
{% my blueprint_import badge blueprint_url="https://community.home-assistant.io/t/habitica-complete-toothbrushing-tasks-on-your-habitica-dailies-list/786631" %}
|
||||||
|
|
||||||
|
{% details "Example YAML configuration" %}
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
triggers:
|
||||||
|
- trigger: state
|
||||||
|
entity_id: sensor.oralb_toothbrush_state
|
||||||
|
to: "running"
|
||||||
|
for:
|
||||||
|
hours: 0
|
||||||
|
minutes: 0
|
||||||
|
seconds: 10 # Time delay for debouncing to avoid false triggers
|
||||||
|
actions:
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: time
|
||||||
|
after: "05:00:00"
|
||||||
|
before: "12:00:00"
|
||||||
|
sequence:
|
||||||
|
- action: todo.update_item
|
||||||
|
data:
|
||||||
|
item: "Brush your teeth in the morning 🪥"
|
||||||
|
status: completed
|
||||||
|
target:
|
||||||
|
entity_id: todo.habitica_dailies
|
||||||
|
- conditions:
|
||||||
|
- condition: time
|
||||||
|
after: "18:00:00"
|
||||||
|
before: "23:59:00"
|
||||||
|
sequence:
|
||||||
|
- action: todo.update_item
|
||||||
|
data:
|
||||||
|
item: "Brush your teeth before bed 🪥"
|
||||||
|
status: completed
|
||||||
|
target:
|
||||||
|
entity_id: todo.habitica_dailies
|
||||||
|
```
|
||||||
|
|
||||||
|
{% enddetails %}
|
||||||
|
|
||||||
## API Service
|
## API Service
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user