88 lines
2.4 KiB
JSON
88 lines
2.4 KiB
JSON
{
|
||
"config": {
|
||
"abort": {
|
||
"already_configured": "[%key:common::config_flow::abort::already_configured_account%]"
|
||
},
|
||
"error": {
|
||
"invalid_credentials": "[%key:common::config_flow::error::invalid_auth%]",
|
||
"unknown": "[%key:common::config_flow::error::unknown%]"
|
||
},
|
||
"step": {
|
||
"user": {
|
||
"data": {
|
||
"url": "[%key:common::config_flow::data::url%]",
|
||
"name": "Override for Habitica’s username. Will be used for service calls",
|
||
"api_user": "Habitica’s API user ID",
|
||
"api_key": "[%key:common::config_flow::data::api_key%]"
|
||
},
|
||
"description": "Connect your Habitica profile to allow monitoring of your user's profile and tasks. Note that api_id and api_key must be gotten from https://habitica.com/user/settings/api"
|
||
}
|
||
}
|
||
},
|
||
"entity": {
|
||
"sensor": {
|
||
"display_name": {
|
||
"name": "Display name"
|
||
},
|
||
"health": {
|
||
"name": "Health"
|
||
},
|
||
"health_max": {
|
||
"name": "Max. health"
|
||
},
|
||
"mana": {
|
||
"name": "Mana"
|
||
},
|
||
"mana_max": {
|
||
"name": "Max. mana"
|
||
},
|
||
"experience": {
|
||
"name": "Experience"
|
||
},
|
||
"experience_max": {
|
||
"name": "Next level"
|
||
},
|
||
"level": {
|
||
"name": "Level"
|
||
},
|
||
"gold": {
|
||
"name": "Gold"
|
||
},
|
||
"class": {
|
||
"name": "Class",
|
||
"state": {
|
||
"warrior": "Warrior",
|
||
"healer": "Healer",
|
||
"wizard": "Mage",
|
||
"rogue": "Rogue"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"exceptions": {
|
||
"setup_rate_limit_exception": {
|
||
"message": "Currently rate limited, try again later"
|
||
}
|
||
},
|
||
"services": {
|
||
"api_call": {
|
||
"name": "API name",
|
||
"description": "Calls Habitica API.",
|
||
"fields": {
|
||
"name": {
|
||
"name": "[%key:common::config_flow::data::name%]",
|
||
"description": "Habitica's username to call for."
|
||
},
|
||
"path": {
|
||
"name": "[%key:common::config_flow::data::path%]",
|
||
"description": "Items from API URL in form of an array with method attached at the end. Consult https://habitica.com/apidoc/. Example uses https://habitica.com/apidoc/#api-Task-CreateUserTasks."
|
||
},
|
||
"args": {
|
||
"name": "Args",
|
||
"description": "Any additional JSON or URL parameter arguments. See apidoc mentioned for path. Example uses same API endpoint."
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|