hass-core/homeassistant/components/habitica/services.yaml
Manu 3e8bc98f23
Add cast skill action to Habitica integration (#127000)
* Add cast skill action for task skills

* exceptions

* task not found exception

* request refresh to update mana/xp sensors

* Changes

* remove service_call prefix

* fixes
2024-10-06 10:33:32 +02:00

39 lines
824 B
YAML

# Describes the format for Habitica service
api_call:
fields:
name:
required: true
example: "xxxNotAValidNickxxx"
selector:
text:
path:
required: true
example: '["tasks", "user", "post"]'
selector:
object:
args:
example: '{"text": "Use API from Home Assistant", "type": "todo"}'
selector:
object:
cast_skill:
fields:
config_entry:
required: true
selector:
config_entry:
integration: habitica
skill:
required: true
selector:
select:
options:
- "pickpocket"
- "backstab"
- "smash"
- "fireball"
mode: dropdown
translation_key: "skill_select"
task:
required: true
selector:
text: