For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /developers/intent_builtin.md.

内置意图

import intents from '!!yaml-loader!../intents/intents.yaml';

以下 intents 受到支持

  • <> { Object.entries(intents) .filter(([intent, info]) => info["supported"]) .map(([intent, info]) => intent) .join(", ") }

以下 intents 已被弃用

  • HassOpenCover、HassCloseCover、HassToggle、HassHumidifierSetpoint、HassHumidifierMode、HassShoppingListLastItems

Slots

对于 HassTurnOnHassTurnOffslots 是可选的。

可能的 slot 组合如下:

Slot combinationExample
仅 name桌灯
仅 area厨房
area 和 name客厅阅读灯
area 和 domain厨房灯光
area 和 device class浴室湿度
device class 和 domain二氧化碳传感器

支持的意图

<> { Object.entries(intents) .filter(([intent, info]) => info["supported"]) .map( ([intent, info]) => <>

{intent}

{info.description}

{info.slots && (Slots) && (
    {Object.entries(info.slots).map(([slot, slotInfo]) => (
  • {slot} - {slotInfo.description + (slotInfo.required ? "(必需)" : "")}
  • ))}
)}

<a href={https://www.home-assistant.io/integrations/${info.domain}}>由 {info.domain} 集成提供。

</> ) } </>

已弃用的 intents

这些是旧版 intents,不被 template matching sentences 支持,计划将其移除或替换。

HassOpenCover

已弃用;请改用 HassTurnOn

打开一个 cover。

Slot nameTypeRequiredDescription
namestring要打开的 cover entity 名称。

HassCloseCover

已弃用;请改用 HassTurnOff

关闭一个 cover。

Slot nameTypeRequiredDescription
namestring要关闭的 cover entity 名称。

HassToggle

切换一个 entity 的 state。

Slot nameTypeRequiredDescription
namestring要切换的 entity 名称。

HassHumidifierSetpoint

设置目标湿度。

Slot nameTypeRequiredDescription
namestring要控制的 entity 名称。
humidityinteger, 0-100要设置的目标湿度。

HassHumidifierMode

如果 humidifier 支持,设置其 mode。

Slot nameTypeRequiredDescription
namestring要控制的 entity 名称。
modestring要切换到的 mode。

HassShoppingListLastItems

列出购物清单上最近 5 个 items。

此 intent 没有 slots。

此页面基于 Intents 仓库自动生成。