mirror of
https://github.com/xiaoshi930/xiaoshi-pad-card.git
synced 2025-11-28 16:49:42 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a03a54663b | ||
|
|
6efa2864cc | ||
|
|
f4a37ff29c | ||
|
|
1c5717f5d5 | ||
|
|
15fcbf0250 |
23
README.md
23
README.md
@@ -42,3 +42,26 @@ exclude_devices:
|
||||
exclude_entities:
|
||||
- *shiti*
|
||||
~~~
|
||||
|
||||
## 功能4:电话信息余额卡(手机平板端通用)
|
||||
**引用示例**
|
||||
~~~
|
||||
type: custom:xiaoshi-balance-card
|
||||
name: 电话余额信息
|
||||
width: 350px
|
||||
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"
|
||||
~~~
|
||||
|
||||
1043
xiaoshi-device-balance-card.js
Normal file
1043
xiaoshi-device-balance-card.js
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,9 +1,10 @@
|
||||
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.6 ", "color: red; font-weight: bold; background: black", "color: white; font-weight: bold; background: black");
|
||||
|
||||
const loadCards = async () => {
|
||||
await import('./xiaoshi-pad-grid-card.js');
|
||||
await import('./xiaoshi-device-update-card.js');
|
||||
await import('./xiaoshi-device-offline-card.js');
|
||||
await import('./xiaoshi-device-balance-card.js');
|
||||
|
||||
window.customCards = window.customCards || [];
|
||||
window.customCards.push(...cardConfigs);
|
||||
@@ -26,6 +27,12 @@ const cardConfigs = [
|
||||
name: '消逝卡HA离线设备卡片',
|
||||
description: '显示所有离线的设备和实体',
|
||||
preview: true
|
||||
},
|
||||
{
|
||||
type: 'xiaoshi-balance-card',
|
||||
name: '消逝电话余额卡',
|
||||
description: '消逝电话余额卡',
|
||||
preview: true
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user