借助 AI 编程助手(Claude、ChatGPT 或 Home Assistant Copilot)为 Wio Terminal 气象站定制个性化 Lovelace 仪表盘。
AI Agent 提示词模板 (Prompt)
复制以下结构化提示词模板发送给你的 AI Agent(Claude、ChatGPT 或 Home Assistant Copilot),让其根据你的空间主题风格快速生成 Lovelace YAML 配置:
你是一名精通 Home Assistant 界面定制的专家。请为我的 Wio Terminal 桌面气象环境监控站编写一份现代 Lovelace 仪表盘 YAML 配置代码。
气象站实体清单如下:
1. 温度传感器:
- 实体 ID:sensor.wio_weather_station_temperature
- 单位:°C(量程:-10 ~ 50 °C)
- 卡片建议:仪表盘 Gauge 卡片,舒适区绿色(18-26 °C),偏热黄色(26-32 °C),高温红色(>32 °C)。
2. 湿度传感器:
- 实体 ID:sensor.wio_weather_station_humidity
- 单位:%(量程:0 ~ 100%)
- 卡片建议:仪表盘 Gauge 卡片,人体适宜区间 40%~70% 绿色标示。
3. 大气气压传感器:
- 实体 ID:sensor.wio_weather_station_pressure
- 单位:hPa(参考量程:950 ~ 1050 hPa)
- 卡片建议:Gauge 卡片或数值统计卡片,带趋势指标。
4. 环境光敏传感器:
- 实体 ID:sensor.wio_weather_station_illuminance
- 单位:lx(参考量程:0 ~ 10000 lx)
- 卡片建议:紧凑型 Entities 实体行,带 mdi:white-balance-sunny 动态图标。
5. 环境噪声分贝传感器:
- 实体 ID:sensor.wio_weather_station_ambient_noise
- 单位:dBA(量程:30 ~ 100 dBA)
- 卡片建议:声级计风格 Gauge 卡片,静音(<55 dBA 绿色)、适中(55-70 dBA 黄色)、吵闹(>70 dBA 红色)。
6. Wi-Fi 信号强度:
- 实体 ID:sensor.wio_weather_station_wifi_rssi
- 单位:dBm
- 卡片建议:实体行或卡片,显示信号强度。
排版要求:
- 使用 vertical-stack 与 horizontal-stack 组织多行卡片网格。
- 附带一张 24 小时历史趋势折线图(history-graph),对比展示温湿度与气压的昼夜走势。
- 风格现代极客、配色清晰,适配桌面触控屏或移动端查看。
- 输出可直接粘贴至 Home Assistant“手动”(Manual)卡片编辑器的纯 YAML 代码。
开箱即用 Lovelace 仪表盘 YAML 示例
你也可以直接复制以下完整 Lovelace YAML 代码快速应用:
type: vertical-stack
title: Wio Terminal 气象环境监控站
cards:
- type: horizontal-stack
cards:
- type: gauge
entity: sensor.wio_weather_station_temperature
name: 温度
min: -10
max: 50
needle: true
severity:
green: 18
yellow: 26
red: 32
- type: gauge
entity: sensor.wio_weather_station_humidity
name: 相对湿度
min: 0
max: 100
needle: true
severity:
red: 20
green: 40
yellow: 70
- type: horizontal-stack
cards:
- type: gauge
entity: sensor.wio_weather_station_pressure
name: 大气气压
min: 900
max: 1100
needle: true
- type: gauge
entity: sensor.wio_weather_station_ambient_noise
name: 环境噪声
min: 30
max: 100
needle: true
severity:
green: 30
yellow: 55
red: 70
- type: entities
title: 运行状态与光照
show_header_toggle: false
entities:
- entity: sensor.wio_weather_station_wifi_rssi
name: Wi-Fi 信号强度
icon: mdi:wifi
- entity: sensor.wio_weather_station_illuminance
name: 环境光照度
icon: mdi:white-balance-sunny
- type: history-graph
title: 24 小时环境走势
hours_to_show: 24
refresh_interval: 60
entities:
- entity: sensor.wio_weather_station_temperature
name: 温度 (°C)
- entity: sensor.wio_weather_station_humidity
name: 湿度 (%)
- entity: sensor.wio_weather_station_pressure
name: 气压 (hPa)