仪表板卡片的功能

某些仪表板卡片支持功能。这些小部件为卡片添加了快速控制。支持的功能取决于卡片和实体的能力。可以为单个卡片添加多个功能。

带有功能的磁贴卡片截图 带有功能的磁贴卡片截图。

以下卡片可以启用功能:

自定义功能

  1. 编辑卡片并打开功能部分。

  2. 要为卡片添加其他功能,请选择添加功能

    • 信息:功能的可用选项取决于实体和功能类型。
  3. 在磁贴卡片上,您可以调整功能的位置。

    • 功能 > 功能位置下,选择底部内联

    屏幕录制显示如何重新排序磁贴卡片上的HVAC模式。

  4. 重新排序功能:

    • 磁贴卡片的一些功能(例如恒温器的预设或HVAC模式)可以显示按钮。
    • 要重新排序按钮,请启用自定义并拖放按钮到所需位置。
    • 如果您不喜欢按钮,可以将其替换为下拉菜单
      • 样式下,选择下拉菜单选项。

    屏幕录制显示如何重新排序磁贴卡片上的HVAC模式。

报警模式

显示按钮以布防和撤防报警的小部件。

带有报警模式功能的磁贴卡片截图 带有报警模式功能的磁贴卡片截图

features:
  - type: "alarm-modes"
    modes:
      - armed_home
      - armed_away
      - armed_night
      - armed_vacation
      - armed_custom_bypass
      - disarmed

Configuration Variables

type string Required

alarm-modes

modes list Required

要在卡片上显示的模式列表。列表可以包含armed_homearmed_awayarmed_nightarmed_vacationarmed_custom_bypassdisarmed

气候风扇模式

显示按钮或图标以控制气候设备风扇模式的小部件。

带有气候风扇模式功能的磁贴卡片截图 带有气候风扇模式功能的磁贴卡片截图

features:
  - type: "climate-fan-modes"
    style: "icons"
    fan_modes:
      - "off"
      - low
      - medium
      - high

Configuration Variables

type string Required

climate-fan-modes

style string (Optional, default: dropdown)

风扇模式的显示方式。可以是dropdownicons

fan_modes list Required

要在卡片上显示的风扇模式列表。列表可以包含onoffautolowmediumhighmiddlefocusdiffuse或任何其他自定义风扇模式。

气候HVAC模式

显示按钮以控制气候的HVAC模式的小部件。

带有气候HVAC模式功能的磁贴卡片截图 带有气候HVAC模式功能的磁贴卡片截图

features:
  - type: "climate-hvac-modes"
    hvac_modes:
      - auto
      - heat_cool
      - heat
      - cool
      - dry
      - fan_only
      - "off"

Configuration Variables

type string Required

climate-hvac-modes

style string (Optional, default: icons)

模式的显示方式。可以是dropdownicons

hvac_modes list Required

要在卡片上显示的模式列表。列表可以包含autoheat_coolheatcooldryfan_onlyoff

气候预设模式

显示按钮或图标以控制气候预设模式的小部件。

带有气候预设模式功能的磁贴卡片截图 带有气候预设模式功能的磁贴卡片截图

features:
  - type: "climate-preset-modes"
    style: "icons"
    preset_modes:
      - home
      - eco

Configuration Variables

type string Required

climate-preset-modes

style string (Optional, default: dropdown)

预设模式的显示方式。可以是dropdownicons

preset_modes list Required

要在卡片上显示的预设模式列表。列表可以包含ecoawayboostcomforthomesleepactivity或任何其他自定义预设模式。

计数器操作

显示按钮以增加、减少和重置计数器的小部件。

带有计数器操作功能的磁贴卡片截图 带有计数器操作功能的磁贴卡片截图

features:
  - type: "counter-actions"
    actions:
      - increment
      - decrement
      - reset

Configuration Variables

type string Required

counter-actions

actions list Required

要在卡片上显示的操作列表。列表可以包含incrementdecrementreset

窗帘开关

显示按钮以打开、关闭或停止窗帘的小部件。

带有开关功能的磁贴卡片截图 带有开关功能的磁贴卡片截图

features:
  - type: "cover-open-close"

Configuration Variables

type string Required

cover-open-close

窗帘位置

显示滑块以控制窗帘位置的小部件。

带有窗帘位置功能的磁贴卡片截图 带有窗帘位置功能的磁贴卡片截图

features:
  - type: "cover-position"

Configuration Variables

type string Required

cover-position

窗帘倾斜

显示按钮以打开、关闭或停止窗帘的小部件。

带有倾斜功能的磁贴卡片截图 带有倾斜功能的磁贴卡片截图

features:
  - type: "cover-tilt"

Configuration Variables

type string Required

cover-tilt

窗帘倾斜位置

显示滑块以控制窗帘倾斜位置的小部件。

带有窗帘倾斜位置功能的磁贴卡片截图 带有窗帘倾斜位置功能的磁贴卡片截图

features:
  - type: "cover-tilt-position"

Configuration Variables

type string Required

cover-tilt-position

风扇预设模式

显示按钮或图标以控制风扇预设模式的小部件。

带有风扇预设模式功能的磁贴卡片截图 带有风扇预设模式功能的磁贴卡片截图

features:
  - type: "fan-preset-modes"
    style: "icons"
    preset_modes:
      - auto
      - smart
      - sleep
      - 'on'

Configuration Variables

type string Required

fan-preset-modes

style string (Optional, default: dropdown)

预设模式的显示方式。可以是dropdownicons

preset_modes list Required

要在卡片上显示的预设模式列表。列表可以包含任何支持的预设模式。

风扇速度

显示速度控制风扇的小部件。

带有风扇速度功能的磁贴卡片截图 带有风扇速度功能的磁贴卡片截图

features:
  - type: "fan-speed"

Configuration Variables

type string Required

fan-speed

加湿器模式

显示按钮或图标以控制加湿器模式的小部件。

带有加湿器模式功能的磁贴卡片截图 带有加湿器模式功能的磁贴卡片截图

features:
  - type: "humidifier-modes"
    style: "icons"
    modes:
      - home
      - eco

Configuration Variables

type string Required

humidifier-modes

style string (Optional, default: dropdown)

模式的显示方式。可以是dropdownicons

modes list Required

要在卡片上显示的模式列表。列表可以包含normalecoawayboostcomforthomesleepautobaby或任何其他自定义模式。

加湿器切换

显示按钮以打开或关闭加湿器的小部件。

带有加湿器切换功能的磁贴卡片截图 带有加湿器切换功能的磁贴卡片截图

features:
  - type: "humidifier-toggle"

Configuration Variables

type string Required

humidifier-toggle

割草机命令

显示按钮以控制割草机的小部件。

带有割草机命令功能的磁贴卡片截图 带有割草机命令功能的磁贴卡片截图

features:
  - type: "lawn-mower-commands"
    commands:
      - start_pause
      - dock

Configuration Variables

type string Required

lawn-mower-commands

commands list Required

要在卡片上显示的命令列表。列表可以包含start_pausedock

灯光亮度

显示滑块以选择灯光亮度的小部件。

带有灯光亮度功能的磁贴卡片截图 带有灯光亮度功能的磁贴卡片截图

features:
  - type: "light-brightness"

Configuration Variables

type string Required

light-brightness

灯光色温

显示滑块以选择灯光色温的小部件。

带有灯光色温功能的磁贴卡片截图 带有灯光色温功能的磁贴卡片截图

features:
  - type: "light-color-temp"

Configuration Variables

type string Required

light-color-temp

锁命令

显示按钮以锁定或解锁的小部件。

带有锁命令功能的磁贴卡片截图 带有锁命令功能的磁贴卡片截图

features:
  - type: "lock-commands"

Configuration Variables

type string Required

lock-commands

锁开门

显示按钮以开门的小部件。

带有锁开门功能的磁贴卡片截图 带有锁开门功能的磁贴卡片截图

features:
  - type: "lock-open-door"

Configuration Variables

type string Required

lock-open-door

媒体播放器音量滑块

显示滑块以控制媒体播放器音量的小部件。

带有媒体播放器音量滑块功能的磁贴卡片截图 带有媒体播放器音量滑块功能的磁贴卡片截图

features:
  - type: "media-player-volume-slider"

Configuration Variables

type string Required

media-player-volume-slider

数字输入

显示滑块或按钮以设置数字输入数字值的小部件。

带有数字输入功能的磁贴卡片截图 带有数字输入功能的磁贴卡片截图

features:
  - type: "numeric-input"
    style: "buttons"

Configuration Variables

type string Required

numeric-input

style string (Optional, default: slider)

显示哪种控制样式。可以是buttonsslider

目标湿度

显示滑块以选择加湿器目标湿度的小部件。

带有目标湿度功能的磁贴卡片截图 带有目标湿度功能的磁贴卡片截图

features:
  - type: "target-humidity"

Configuration Variables

type string Required

target-humidity

目标温度

显示按钮以选择气候热水器目标温度的小部件。

带有目标温度功能的磁贴卡片截图 带有目标温度功能的磁贴卡片截图

features:
  - type: "target-temperature"

Configuration Variables

type string Required

target-temperature

切换

显示按钮以切换开关输入布尔值实体的开关状态的小部件。

带有切换功能的磁贴卡片截图 带有切换功能的磁贴卡片截图

features:
  - type: "toggle"

Configuration Variables

type string Required

toggle

更新操作

显示按钮以安装或跳过更新的小部件。

带有更新操作功能的磁贴卡片截图 带有更新操作功能的磁贴卡片截图

features:
  - type: "update-actions"
    backup: "ask"

Configuration Variables

type string Required

update-actions

backup list (Optional, default: ask)

是否在更新前进行备份。值可以是askyesnoask将打开一个对话框,询问是否进行备份。

吸尘器命令

显示按钮以控制吸尘器的小部件。

带有吸尘器命令功能的磁贴卡片截图 带有吸尘器命令功能的磁贴卡片截图

features:
  - type: "vacuum-commands"
    commands:
      - start_pause
      - stop
      - clean_spot
      - locate
      - return_home

Configuration Variables

type string Required

vacuum-commands

commands list Required

要在卡片上显示的命令列表。列表可以包含start_pausestopclean_spotlocatereturn_home

热水器操作模式

显示按钮以控制热水器操作模式的小部件。

带有热水器操作模式功能的磁贴卡片截图 带有热水器操作模式功能的磁贴卡片截图

features:
  - type: "water-heater-operation-modes"
    operation_modes:
      - electric
      - gas
      - heat_pump
      - eco
      - performance
      - high_demand
      - "off"

Configuration Variables

type string Required

water-heater-operation-modes

operation_modes list Required

要在卡片上显示的模式列表。列表可以包含electricgasheat_pumpecoperformancehigh_demandoff