mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-16 13:56:29 +00:00
Update supported intents (#2000)
This commit is contained in:
parent
7402019834
commit
284944da05
@ -7,11 +7,22 @@ import intents from '!!yaml-loader!../intents/intents.yaml';
|
|||||||
|
|
||||||
The following intents are **supported**:
|
The following intents are **supported**:
|
||||||
|
|
||||||
* HassTurnOn, HassTurnOff, HassGetState, HassLightSet
|
<ul>
|
||||||
|
<li>
|
||||||
|
<>
|
||||||
|
{
|
||||||
|
Object.entries(intents)
|
||||||
|
.filter(([intent, info]) => info["supported"])
|
||||||
|
.map(([intent, info]) => intent)
|
||||||
|
.join(", ")
|
||||||
|
}
|
||||||
|
</>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
The following intents are **deprecated**:
|
The following intents are **deprecated**:
|
||||||
|
|
||||||
* HassOpenCover, HassCloseCover, HassToggle, HassHumidifierSetpoint, HassHumidifierMode, HassShoppingListAddItem, HassShoppingListLastItems
|
* HassOpenCover, HassCloseCover, HassToggle, HassHumidifierSetpoint, HassHumidifierMode, HassShoppingListLastItems
|
||||||
|
|
||||||
**Slots**
|
**Slots**
|
||||||
|
|
||||||
@ -20,14 +31,14 @@ For *HassTurnOn* and *HassTurnOff*, the *slots* are optional.
|
|||||||
Possible slot combinations are:
|
Possible slot combinations are:
|
||||||
|
|
||||||
|
|
||||||
| Slot combination | Example |
|
| Slot combination | Example |
|
||||||
| ----------------------- | ---------------------------------|
|
| ----------------------- | ---------------------------------|
|
||||||
| name only | table light |
|
| name only | table light |
|
||||||
| area only | kitchen |
|
| area only | kitchen |
|
||||||
| area and name | living room reading light |
|
| area and name | living room reading light |
|
||||||
| area and domain | kitchen lights |
|
| area and domain | kitchen lights |
|
||||||
| area and device class | bathroom humidity |
|
| area and device class | bathroom humidity |
|
||||||
| device class and domain | carbon dioxide sensors |
|
| device class and domain | carbon dioxide sensors |
|
||||||
|
|
||||||
|
|
||||||
## Supported intents
|
## Supported intents
|
||||||
@ -35,18 +46,18 @@ Possible slot combinations are:
|
|||||||
<>
|
<>
|
||||||
{
|
{
|
||||||
Object.entries(intents)
|
Object.entries(intents)
|
||||||
.filter(([intent, info]) => !intent.startsWith("HassClimate"))
|
.filter(([intent, info]) => info["supported"])
|
||||||
.map(
|
.map(
|
||||||
([intent, info]) =>
|
([intent, info]) =>
|
||||||
<>
|
<>
|
||||||
<h3>{intent}</h3>
|
<h3>{intent}</h3>
|
||||||
<p>{info.description}</p>
|
<p>{info.description}</p>
|
||||||
<b>Slots</b>
|
{info.slots &&
|
||||||
{info.slots && (
|
(<b>Slots</b>) && (
|
||||||
<ul>
|
<ul>
|
||||||
{Object.entries(info.slots).map(([slot, slotInfo]) => (
|
{Object.entries(info.slots).map(([slot, slotInfo]) => (
|
||||||
<li>
|
<li>
|
||||||
<b>{slot}</b> - {slotInfo.description}
|
<b>{slot}</b> - {slotInfo.description + (slotInfo.required ? " (required)" : "")}
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
@ -110,14 +121,6 @@ Set humidifier mode if supported by the humidifier.
|
|||||||
| name | string | Yes | Name of the entity to control.
|
| name | string | Yes | Name of the entity to control.
|
||||||
| mode | string | Yes | The mode to switch to.
|
| mode | string | Yes | The mode to switch to.
|
||||||
|
|
||||||
### HassShoppingListAddItem
|
|
||||||
|
|
||||||
Add an item to the shopping list.
|
|
||||||
|
|
||||||
| Slot name | Type | Required | Description
|
|
||||||
| --------- | ---- | -------- | -----------
|
|
||||||
| item | string | Yes | Name of item to add to the list.
|
|
||||||
|
|
||||||
### HassShoppingListLastItems
|
### HassShoppingListLastItems
|
||||||
|
|
||||||
List the last 5 items on the shopping list.
|
List the last 5 items on the shopping list.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user