百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

lovelace-climate-mode-entity-row

> 编程语言
开源

Lovelace 的气候模式实体

100 stars0 点赞4 次浏览
访问官网GitHub

工具介绍

Lovelace 的气候模式实体

climate-mode-entity-row

Show multiple climate preset and hvac mode on entity rows in Home Assistant's Lovelace UI

Setup

Manually add climate-mode-entity-row.js to your /www/ folder and add the following to your ui-lovelace.yaml file:

yaml
resources:
  - url: /local/climate-mode-entity-row.js
    type: module

OR install using HACS and add this instead:

yaml
resources:
  - url: /community_plugin/lovelace-climate-mode-entity-row/climate-mode-entity-row.js
    type: module

Options

Name Type Required Description
type string Yes custom:climate-mode-entity-row
entity string Yes domain.my_entity_id
name string No Override entity friendly_name
icon string No Override entity icon
modes object Yes Modes (see below)

Mode objects

Name Type Required Description
icon string No A icon for the mode
hvac_mode string No A valid hvac_mode for the entity
preset_mode string No A valid preset_mode for the entity
fan_mode string No A valid fan_mode for the entity
swing_mode string No A valid swing_mode for the entity
temperature number No A target temperature for the entity
color string No Custom color for the icon when toggle

Example

Basic config

yaml
type: entities
entities:
  - entity: climate.thermostat_kitchen
    type: "custom:climate-mode-entity-row"
    modes:
      - hvac_mode: "off"
      - preset_mode: "eco"
      - preset_mode: "comfort"

Custom config

yaml
type: entities
entities:
  - entity: climate.thermostat_kitchen
    type: 'custom:climate-mode-entity-row'
    name: My Thermostat
    icon: 'mdi:home'
    modes:
      - hvac_mode: "off"
        icon: "mdi:snowflake"
        color: "#B3E5FC"
      - preset_mode: "eco"
        icon: "mdi:moon-waxing-crescent"
        color: "#9575CD"
      - preset_mode: "comfort"
        icon: "mdi:weather-sunny"
        color: "#FFC107"

Temperature shortcuts

If your thermostat entity does not support presets, you can directly define target temperature in the card

yaml
type: entities
entities:
  - entity: climate.heatpump
    type: custom:climate-mode-entity-row
    modes:
      - hvac_mode: "off"
        icon: "mdi:power"
        color: "#ef5350"
      - hvac_mode: "heat"
        temperature: 19
        icon: "mdi:leaf"
        color: "#66bb6a"
      - hvac_mode: "heat"
        temperature: 21
        icon: "mdi:fire"
        color: "#FFC107"

Multi mode config

You can combine or mix hvac_mode, preset_mode, fan_mode, swing_mode and temperature to build your custom controls.

…

Issues· 7 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScriptcardhacktoberfesthome-assistantlovelace

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言