forked from HomeAssistant/xiaoshi-pad-card
Compare commits
18 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5f36835adb | ||
|
|
05d083c259 | ||
|
|
3738b0b092 | ||
|
|
87e9e68b79 | ||
|
|
7ddd378b9a | ||
|
|
23b6e5b8a3 | ||
|
|
4067518d0d | ||
|
|
53e06aacf7 | ||
|
|
9a59c2bb90 | ||
|
|
0ae5851361 | ||
|
|
a17033c0f0 | ||
|
|
44a1d81265 | ||
|
|
2de0668d37 | ||
|
|
a03a54663b | ||
|
|
6efa2864cc | ||
|
|
f4a37ff29c | ||
|
|
1c5717f5d5 | ||
|
|
15fcbf0250 |
40
README.md
40
README.md
@@ -28,7 +28,7 @@ mode: 湿度 # 【温度】或者【湿度】
|
|||||||
**引用示例**
|
**引用示例**
|
||||||
~~~
|
~~~
|
||||||
type: custom:xiaoshi-update-card
|
type: custom:xiaoshi-update-card
|
||||||
width: 100p%
|
width: 100%
|
||||||
theme: on
|
theme: on
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
@@ -36,9 +36,45 @@ theme: on
|
|||||||
**引用示例**
|
**引用示例**
|
||||||
~~~
|
~~~
|
||||||
type: custom:xiaoshi-offline-card
|
type: custom:xiaoshi-offline-card
|
||||||
width: 320px
|
width: 100%
|
||||||
|
theme: on
|
||||||
exclude_devices:
|
exclude_devices:
|
||||||
- *设备*
|
- *设备*
|
||||||
exclude_entities:
|
exclude_entities:
|
||||||
- *shiti*
|
- *shiti*
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
## 功能4:电话信息余额卡(手机平板端通用)
|
||||||
|
**引用示例**
|
||||||
|
~~~
|
||||||
|
type: custom:xiaoshi-balance-card
|
||||||
|
name: 电话余额信息
|
||||||
|
width: 100%
|
||||||
|
theme: on
|
||||||
|
entities:
|
||||||
|
- entity_id: sensor.999
|
||||||
|
attribute: null
|
||||||
|
overrides:
|
||||||
|
icon: ""
|
||||||
|
name: ""
|
||||||
|
unit_of_measurement: ""
|
||||||
|
warning: ""
|
||||||
|
- entity_id: input_boolean.777
|
||||||
|
attribute: friendly_name
|
||||||
|
overrides:
|
||||||
|
name: ""
|
||||||
|
icon: ""
|
||||||
|
unit_of_measurement: ""
|
||||||
|
warning: "99"
|
||||||
|
~~~
|
||||||
|
|
||||||
|
## 功能5:待办事项卡(手机平板端通用)
|
||||||
|
**引用示例**
|
||||||
|
~~~
|
||||||
|
type: custom:xiaoshi-todo-card
|
||||||
|
width: 100%
|
||||||
|
theme: on
|
||||||
|
entities:
|
||||||
|
- todo.kuai_di
|
||||||
|
- todo.ji_shi_ben
|
||||||
|
~~~
|
||||||
|
|||||||
1115
xiaoshi-device-balance-card.js
Normal file
1115
xiaoshi-device-balance-card.js
Normal file
File diff suppressed because it is too large
Load Diff
1204
xiaoshi-device-consumables-card.js
Normal file
1204
xiaoshi-device-consumables-card.js
Normal file
File diff suppressed because it is too large
Load Diff
1286
xiaoshi-device-todo-card.js
Normal file
1286
xiaoshi-device-todo-card.js
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,9 +1,12 @@
|
|||||||
console.info("%c 消逝卡-平板端 \n%c v 0.0.4 ", "color: red; font-weight: bold; background: black", "color: white; font-weight: bold; background: black");
|
console.info("%c 消逝卡-平板端 \n%c v 0.0.9 ", "color: red; font-weight: bold; background: black", "color: white; font-weight: bold; background: black");
|
||||||
|
|
||||||
const loadCards = async () => {
|
const loadCards = async () => {
|
||||||
await import('./xiaoshi-pad-grid-card.js');
|
await import('./xiaoshi-pad-grid-card.js');
|
||||||
await import('./xiaoshi-device-update-card.js');
|
await import('./xiaoshi-device-update-card.js');
|
||||||
await import('./xiaoshi-device-offline-card.js');
|
await import('./xiaoshi-device-offline-card.js');
|
||||||
|
await import('./xiaoshi-device-balance-card.js');
|
||||||
|
await import('./xiaoshi-device-todo-card.js');
|
||||||
|
await import('./xiaoshi-device-consumables-card.js');
|
||||||
|
|
||||||
window.customCards = window.customCards || [];
|
window.customCards = window.customCards || [];
|
||||||
window.customCards.push(...cardConfigs);
|
window.customCards.push(...cardConfigs);
|
||||||
@@ -26,6 +29,24 @@ const cardConfigs = [
|
|||||||
name: '消逝卡HA离线设备卡片',
|
name: '消逝卡HA离线设备卡片',
|
||||||
description: '显示所有离线的设备和实体',
|
description: '显示所有离线的设备和实体',
|
||||||
preview: true
|
preview: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'xiaoshi-balance-card',
|
||||||
|
name: '消逝电话余额卡',
|
||||||
|
description: '消逝电话余额卡',
|
||||||
|
preview: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'xiaoshi-todo-card',
|
||||||
|
name: '消逝待办事项',
|
||||||
|
description: '消逝待办事项',
|
||||||
|
preview: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'xiaoshi-consumables-card',
|
||||||
|
name: '消逝耗材统计',
|
||||||
|
description: '消逝耗材统计',
|
||||||
|
preview: true
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user