From 284944da05374497b3d00cdae5ab8ba32df705a0 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Tue, 5 Dec 2023 02:32:20 -0600 Subject: [PATCH] Update supported intents (#2000) --- docs/intent_builtin.md | 47 ++++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 22 deletions(-) diff --git a/docs/intent_builtin.md b/docs/intent_builtin.md index c37f3d6a..847af7a7 100644 --- a/docs/intent_builtin.md +++ b/docs/intent_builtin.md @@ -7,11 +7,22 @@ import intents from '!!yaml-loader!../intents/intents.yaml'; The following intents are **supported**: - * HassTurnOn, HassTurnOff, HassGetState, HassLightSet + The following intents are **deprecated**: - * HassOpenCover, HassCloseCover, HassToggle, HassHumidifierSetpoint, HassHumidifierMode, HassShoppingListAddItem, HassShoppingListLastItems + * HassOpenCover, HassCloseCover, HassToggle, HassHumidifierSetpoint, HassHumidifierMode, HassShoppingListLastItems **Slots** @@ -20,14 +31,14 @@ For *HassTurnOn* and *HassTurnOff*, the *slots* are optional. Possible slot combinations are: - | Slot combination | Example | - | ----------------------- | ---------------------------------| - | name only | table light | - | area only | kitchen | - | area and name | living room reading light | - | area and domain | kitchen lights | - | area and device class | bathroom humidity | - | device class and domain | carbon dioxide sensors | +| Slot combination | Example | +| ----------------------- | ---------------------------------| +| name only | table light | +| area only | kitchen | +| area and name | living room reading light | +| area and domain | kitchen lights | +| area and device class | bathroom humidity | +| device class and domain | carbon dioxide sensors | ## Supported intents @@ -35,18 +46,18 @@ Possible slot combinations are: <> { Object.entries(intents) - .filter(([intent, info]) => !intent.startsWith("HassClimate")) + .filter(([intent, info]) => info["supported"]) .map( ([intent, info]) => <>

{intent}

{info.description}

- Slots - {info.slots && ( + {info.slots && + (Slots) && ( @@ -110,14 +121,6 @@ Set humidifier mode if supported by the humidifier. | name | string | Yes | Name of the entity to control. | 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 List the last 5 items on the shopping list.