4 Commits

Author SHA1 Message Date
xiaoshi
53e06aacf7 Update xiaoshi-device-todo-card.js 2025-11-25 13:35:29 +08:00
xiaoshi
9a59c2bb90 Create xiaoshi-device-todo-card.js 2025-11-25 13:34:43 +08:00
xiaoshi
0ae5851361 Update xiaoshi-pad-card.js 2025-11-25 13:34:07 +08:00
xiaoshi
a17033c0f0 Update README.md 2025-11-25 13:33:09 +08:00
3 changed files with 1309 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ mode: 湿度 # 【温度】或者【湿度】
**引用示例**
~~~
type: custom:xiaoshi-update-card
width: 100p%
width: 100%
theme: on
~~~
@@ -36,7 +36,8 @@ theme: on
**引用示例**
~~~
type: custom:xiaoshi-offline-card
width: 320px
width: 100%
theme: on
exclude_devices:
- *设备*
exclude_entities:
@@ -48,7 +49,8 @@ exclude_entities:
~~~
type: custom:xiaoshi-balance-card
name: 电话余额信息
width: 350px
width: 100%
theme: on
entities:
- entity_id: sensor.999
attribute: null
@@ -65,3 +67,14 @@ entities:
unit_of_measurement: ""
warning: "99"
~~~
## 功能4待办事项卡(手机平板端通用)
**引用示例**
~~~
type: custom:xiaoshi-todo-card
width: 100%
theme: on
entities:
- todo.kuai_di
- todo.ji_shi_ben
~~~

1285
xiaoshi-device-todo-card.js Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,10 +1,11 @@
console.info("%c 消逝卡-平板端 \n%c v 0.0.7 ", "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 () => {
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');
await import('./xiaoshi-device-todo-card.js');
window.customCards = window.customCards || [];
window.customCards.push(...cardConfigs);
@@ -33,6 +34,12 @@ const cardConfigs = [
name: '消逝电话余额卡',
description: '消逝电话余额卡',
preview: true
},
{
type: 'xiaoshi-todo-card',
name: '消逝待办事项',
description: '消逝待办事项',
preview: true
}
];