Skip to main content

内置意图

以下意图是支持的:

  • HassTurnOn, HassTurnOff, HassGetState, HassNevermind, HassRespond, HassBroadcast, HassSetPosition, HassGetCurrentDate, HassGetCurrentTime, HassLightSet, HassClimateSetTemperature, HassClimateGetTemperature, HassShoppingListAddItem, HassGetWeather, HassListAddItem, HassVacuumStart, HassVacuumReturnToBase, HassMediaPause, HassMediaUnpause, HassMediaNext, HassMediaPrevious, HassSetVolume, HassStartTimer, HassCancelAllTimers, HassCancelTimer, HassIncreaseTimer, HassDecreaseTimer, HassPauseTimer, HassUnpauseTimer, HassTimerStatus

以下意图是已弃用的:

  • HassOpenCover, HassCloseCover, HassToggle, HassHumidifierSetpoint, HassHumidifierMode, HassShoppingListLastItems

槽位

对于 HassTurnOnHassTurnOff槽位是可选的。

可能的槽位组合是:

槽位组合示例
仅名称餐桌灯
仅区域厨房
区域和名称客厅阅读灯
区域和域厨房灯
区域和设备类型浴室湿度
设备类型和域二氧化碳传感器

支持的意图

HassTurnOn

Turns on a device or entity

  • name - Name of a device or entity
  • area - Name of an area
  • floor - Name of a floor
  • domain - Domain of devices/entities in an area
  • device_class - Device class of devices/entities in an area

homeassistant 集成提供。

HassTurnOff

Turns off a device or entity

  • name - Name of a device or entity
  • area - Name of an area
  • floor - Name of a floor
  • domain - Domain of devices/entities in an area
  • device_class - Device class of devices/entities in an area

homeassistant 集成提供。

HassGetState

Gets or checks the state of an entity

  • name - Name of a device or entity
  • area - Name of an area
  • floor - Name of a floor
  • domain - Domain of devices/entities in an area
  • device_class - Device class of devices/entities in an area
  • state - Name of state to match

homeassistant 集成提供。

HassNevermind

Does nothing. Used to cancel a request

homeassistant 集成提供。

HassRespond

Returns response but takes no action

  • response - Text to respond with

homeassistant 集成提供。

HassBroadcast

Announces a message on other satellites

  • message - Message to broadcast (必填)

assist_satellite 集成提供。

HassSetPosition

Sets the position of an entity

  • name - Name of a device or entity
  • area - Name of an area
  • floor - Name of a floor
  • domain - Domain of devices/entities in an area
  • device_class - Device class of devices/entities in an area
  • position - Position from 0 to 100 (必填)

homeassistant 集成提供。

HassGetCurrentDate

Gets the current date

homeassistant 集成提供。

HassGetCurrentTime

Gets the current time

homeassistant 集成提供。

HassLightSet

Sets the brightness or color of a light

  • name - Name of a device or entity
  • area - Name of an area
  • floor - Name of a floor
  • brightness - Brightness percentage from 0 to 100
  • color - Name of color

light 集成提供。

HassClimateSetTemperature

Sets the desired indoor temperature

  • name - Name of a device or entity
  • area - Name of an area
  • floor - Name of a floor
  • temperature - Temperature in degrees (必填)

climate 集成提供。

HassClimateGetTemperature

Gets the indoor temperature

  • name - Name of a device or entity
  • area - Name of an area
  • floor - Name of a floor

climate 集成提供。

HassShoppingListAddItem

Adds an item to the shopping list

  • item - Item to add (必填)

shopping_list 集成提供。

HassGetWeather

Gets the current weather

  • name - Name of the weather entity to use

weather 集成提供。

HassListAddItem

Adds an item to a todo list

  • item - Item to add (必填)
  • name - Name of the list (必填)

todo 集成提供。

HassVacuumStart

Starts a vacuum

  • name - Name of a device or entity
  • area - Name of an area
  • floor - Name of a floor

vacuum 集成提供。

HassVacuumReturnToBase

Returns a vacuum to base

  • name - Name of a device or entity
  • area - Name of an area

vacuum 集成提供。

HassMediaPause

Pauses a media player

  • name - Name of a device or entity
  • area - Name of an area

media_player 集成提供。

HassMediaUnpause

Unpauses a media player

  • name - Name of a device or entity
  • area - Name of an area

media_player 集成提供。

HassMediaNext

Skips a media player to the next item

  • name - Name of a device or entity
  • area - Name of an area

media_player 集成提供。

HassMediaPrevious

Skips a media player back to the previous item

  • name - Name of a device or entity
  • area - Name of an area

media_player 集成提供。

HassSetVolume

Sets the volume of a media player

  • name - Name of a device or entity
  • area - Name of an area
  • volume_level - Volume level from 0 to 100 (必填)

media_player 集成提供。

HassStartTimer

Starts a timer

  • hours - Number of hours
  • minutes - Number of minutes
  • seconds - Number of seconds
  • name - Name attached to the timer
  • conversation_command - Command to execute when timer finishes

homeassistant 集成提供。

HassCancelAllTimers

Cancels all timers

  • area - Area of the device used to start the timer

homeassistant 集成提供。

HassCancelTimer

Cancels a timer

  • start_hours - Hours the timer was started with
  • start_minutes - Minutes the timer was started with
  • start_seconds - Seconds the timer was started with
  • name - Name attached to the timer
  • area - Area of the device used to start the timer

homeassistant 集成提供。

HassIncreaseTimer

Adds time to a timer

  • hours - Number of hours
  • minutes - Number of minutes
  • seconds - Number of seconds
  • start_hours - Hours the timer was started with
  • start_minutes - Minutes the timer was started with
  • start_seconds - Seconds the timer was started with
  • name - Name attached to the timer
  • area - Area of the device used to start the timer

homeassistant 集成提供。

HassDecreaseTimer

Removes time from a timer

  • hours - Number of hours
  • minutes - Number of minutes
  • seconds - Number of seconds
  • start_hours - Hours the timer was started with
  • start_minutes - Minutes the timer was started with
  • start_seconds - Seconds the timer was started with
  • name - Name attached to the timer
  • area - Area of the device used to start the timer

homeassistant 集成提供。

HassPauseTimer

Pauses a running timer

  • start_hours - Hours the timer was started with
  • start_minutes - Minutes the timer was started with
  • start_seconds - Seconds the timer was started with
  • name - Name attached to the timer
  • area - Area of the device used to start the timer

homeassistant 集成提供。

HassUnpauseTimer

Resumes a paused timer

  • start_hours - Hours the timer was started with
  • start_minutes - Minutes the timer was started with
  • start_seconds - Seconds the timer was started with
  • name - Name attached to the timer
  • area - Area of the device used to start the timer

homeassistant 集成提供。

HassTimerStatus

Reports status of one or more timers

  • start_hours - Hours the timer was started with
  • start_minutes - Minutes the timer was started with
  • start_seconds - Seconds the timer was started with
  • name - Name attached to the timer
  • area - Area of the device used to start the timer

homeassistant 集成提供。

已弃用的意图

这些是旧意图,不支持模板匹配句子,并计划被移除或替换。

HassOpenCover

已弃用;请改用 HassTurnOn

打开遮盖。

槽位名称类型必填描述
namestring要打开的遮盖实体的名称。

HassCloseCover

已弃用;请改用 HassTurnOff

关闭遮盖。

槽位名称类型必填描述
namestring要关闭的遮盖实体的名称。

HassToggle

切换实体的状态。

槽位名称类型必填描述
namestring要切换的实体的名称。

HassHumidifierSetpoint

设置目标湿度。

槽位名称类型必填描述
namestring要控制的实体的名称。
humidityinteger, 0-100要设置的目标湿度。

HassHumidifierMode

如果加湿器支持,设置加湿器模式。

槽位名称类型必填描述
namestring要控制的实体的名称。
modestring要切换到的模式。

HassShoppingListLastItems

列出购物清单上的最后 5 个项目。

此意图没有槽位。

该页面是基于意图库自动生成的。