Lovelace Gaode Map Card
这个是一个基于高德地图API的Lovelace卡片,完全复刻的官方地图卡片,几乎包含了原来卡片的所有功能. 未来可能会支持更多新的技能.
- 完全复刻官方的卡片
- 支持前台自定义卡片配置.
预览
HACS 安装
搜索Gaode Map card, 或者手动添加地址安装
手动安装
- 下载
cn-map-card.js
- 复制到
www\community\lovelace-cn-map
- 在Lovelace的resources下添加以下配置
resources: - url: /local/community/lovelace-cn-map/cn-map-card.js type: module
- 在Lovelace视图
views.cards
内部添加卡片配置type: 'custom:cn-map-card' default_zoom: '9' dark_mode: false hours_to_show: '168' entities: - entity: person.a - entity: person.b - entity: person.c - entity: zone.school - entity: zone.home key: f87e0c9c4f3e1e78f963075d142979f0 title: Map
选项
属性名 | 类型 | 默认 | 描述 |
---|---|---|---|
title | string | 选项 | 卡片标题 |
entities | entity id | 必选 | 需要显示的条目,支持person,zone,device_tracker |
default_zoom | Number | 选项 | 地图默认缩放等级 |
dark_mode | boolean | 选项 | 地图夜间黑暗模式开关 |
hours_to_show | Number | 选项 | 指定时间内的历史路径,这里是填的是小时 |
key | string | 必选 | 自己去高德申请key,内置的key说不定哪天就失效了. |
Lovelace Xiaomi Air Filter Card
This is a card for Lovelace’s Xiaomi Air Purifier that supports most devices.
Preview
HACS Installation
Search for air filter
Manual Installation
- Download
air-filter-card.js
- Copy to
www\community\lovelace-air-filter-card
- Add the following to your Lovelace resources
resources: - url: /community_plugin/lovelace-air-filter/air-filter-card.js type: module
- Add the following to your Lovelace config views.cards key
type: 'custom:air-filter' modes: - auto - silent - Strong entity: fan.kong_qi_jing_hua_qi title: air_filter aspect_ratio: '.6'
Options
Name | Type | Default | Description |
---|---|---|---|
type | string | Required | custom:air-filter |
entity | entity id | Required | The entity id of climate |
modes | array | Required | Operating mode, currently includes auto,silent,favorite,strong,medium,high,low,humidity,interval
|
title | string | optional | Card title entity. Example:fan.kong_qi_jing_hua_qi
|
aspect_ratio | Number | optional | Aspect ratio, Ratio of height to width |