mirror of
https://github.com/xiaoshi930/xiaoshi-pad-card.git
synced 2025-11-29 17:19:47 +00:00
Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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"
|
||||||
|
~~~
|
||||||
|
|
||||||
|
## 功能4:待办事项卡(手机平板端通用)
|
||||||
|
**引用示例**
|
||||||
|
~~~
|
||||||
|
type: custom:xiaoshi-todo-card
|
||||||
|
width: 100%
|
||||||
|
theme: on
|
||||||
|
entities:
|
||||||
|
- todo.kuai_di
|
||||||
|
- todo.ji_shi_ben
|
||||||
|
~~~
|
||||||
|
|||||||
1046
xiaoshi-device-balance-card.js
Normal file
1046
xiaoshi-device-balance-card.js
Normal file
File diff suppressed because it is too large
Load Diff
1285
xiaoshi-device-todo-card.js
Normal file
1285
xiaoshi-device-todo-card.js
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,9 +1,11 @@
|
|||||||
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.8 ", "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');
|
||||||
|
|
||||||
window.customCards = window.customCards || [];
|
window.customCards = window.customCards || [];
|
||||||
window.customCards.push(...cardConfigs);
|
window.customCards.push(...cardConfigs);
|
||||||
@@ -26,6 +28,18 @@ 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
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user