仪表板 / Home Assistant 2026.8

实用房间仪表板

使用 Sections 视图集中控制照明、空调、窗帘和环境舒适度,适配手机和平板电脑。

中级20 分钟无需 HACS语法已核验
替换为你的实体
01

结果

你将获得一个整洁、响应式的 Core 仪表板,并可按房间设置名称和直接控制设备。

02

开始之前

  • 一个可用 YAML 编辑的 Home Assistant 仪表板。
  • 已经存在照明、空调、窗帘、温度和湿度实体。
  • 无需自定义卡片,也无需安装 HACS。

02 / Workflow

安装步骤

请按顺序完成这些步骤。下方配置器会生成需要粘贴的完整代码块。

  1. 01

    创建或打开仪表板

    在设置 → 仪表板中创建一个由你管理的仪表板,或打开已有仪表板。

  2. 02

    打开 YAML 编辑器

    在仪表板菜单中选择编辑仪表板,然后打开原始配置编辑器。

  3. 03

    配置并粘贴

    替换实体,复制完整代码块并粘贴到编辑器。

  4. 04

    保存并测试

    保存后逐一测试控件,并修正不可用的实体。

YAML 配置器

替换为你的实体

输入你系统中的真实实体 ID。代码会立即更新,并标出无效值。

配置有效
生成的代码
title: "客厅"
views:
  - title: "客厅"
    path: soggiorno
    icon: mdi:sofa-outline
    type: sections
    max_columns: 3
    sections:
      - type: grid
        cards:
          - type: heading
            heading: "客厅"
            icon: mdi:sofa-outline
          - type: tile
            entity: light.soggiorno
            name: "主灯"
            color: amber
            features:
              - type: light-brightness
          - type: tile
            entity: climate.soggiorno
            name: "空调"
            features:
              - type: target-temperature
          - type: tile
            entity: cover.tapparella_soggiorno
            name: "窗帘"
            features:
              - type: cover-position
          - type: heading
            heading: "舒适度"
            icon: mdi:home-thermometer-outline
          - type: tile
            entity: sensor.temperatura_soggiorno
            name: "温度"
            color: deep-orange
          - type: tile
            entity: sensor.umidita_soggiorno
            name: "湿度"
            color: light-blue

Entity map

在哪里查找实体 ID 和操作

  1. 01

    打开设置 → 设备与服务 → 实体。

  2. 02

    找到设备并复制完整 ID,例如 sensor.ke_ting_wen_du。

  3. 03

    如需通知操作,请打开设置 → 开发者工具 → 操作,然后搜索 notify.mobile_app。

  4. 04

    把每个值粘贴到对应字段;所有检查均为绿色后再复制 YAML。

Source first

官方参考资料

本项目的语法和组件已与以下 Home Assistant 官方页面核对。

01home-assistant.io · dashboards / sections02home-assistant.io · dashboards / tile03home-assistant.io · dashboards / features
测试版本: Home Assistant 2026.8 · 2026-08-23