Compare commits

...

56 Commits

Author SHA1 Message Date
xiaoshi
4aca5983e6 Update xiaoshi-pad-climate-card.js 2026-01-25 22:12:52 +08:00
xiaoshi
16e8cb8493 Update xiaoshi-pad-climate-card.js 2026-01-25 20:08:20 +08:00
xiaoshi
d0c11c3f08 Update xiaoshi-pad-climate-card.js 2026-01-25 20:01:09 +08:00
xiaoshi
1908ec0fae Update version number in console log 2026-01-25 19:50:50 +08:00
xiaoshi
98ec3bfd5e Update xiaoshi-pad-climate-card.js 2026-01-25 19:50:39 +08:00
xiaoshi
57d4627fa0 Update xiaoshi-pad-climate-card.js 2026-01-25 19:48:42 +08:00
xiaoshi
e12f60b284 Update xiaoshi-pad-card.js 2026-01-25 16:46:02 +08:00
xiaoshi
b12c5c633a Update xiaoshi-pad-climate-card.js 2026-01-25 16:45:51 +08:00
xiaoshi
49e3ce2b0d Update xiaoshi-pad-climate-card.js 2026-01-25 16:39:28 +08:00
xiaoshi
366d9625bb Update xiaoshi-pad-climate-card.js 2026-01-25 16:36:00 +08:00
xiaoshi
db7c3c7b34 Update xiaoshi-pad-card.js 2026-01-25 16:35:48 +08:00
xiaoshi
2f8c0c2beb Update xiaoshi-pad-card.js 2026-01-25 16:17:34 +08:00
xiaoshi
4cd1f4c320 Add files via upload 2026-01-25 16:17:16 +08:00
xiaoshi
c42339343d Update xiaoshi-pad-card.js 2026-01-24 00:29:26 +08:00
xiaoshi
5c95ac49a5 Delete xiaoshi-device-todo-card.js 2026-01-24 00:28:56 +08:00
xiaoshi
844b44c46a Delete xiaoshi-device-todo-button.js 2026-01-24 00:28:49 +08:00
xiaoshi
c2d18c7643 Delete xiaoshi-device-ha-info-card.js 2026-01-24 00:28:42 +08:00
xiaoshi
972909bb44 Delete xiaoshi-device-ha-info-button.js 2026-01-24 00:28:35 +08:00
xiaoshi
3a30464a45 Delete xiaoshi-device-consumables-card.js 2026-01-24 00:28:28 +08:00
xiaoshi
d409ce2ea2 Delete xiaoshi-device-consumables-button.js 2026-01-24 00:28:20 +08:00
xiaoshi
292ed95f04 Delete xiaoshi-device-balance-card.js 2026-01-24 00:28:12 +08:00
xiaoshi
870780c612 Delete xiaoshi-device-balance-button.js 2026-01-24 00:28:03 +08:00
xiaoshi
6af60fa9de Update README.md 2026-01-24 00:22:40 +08:00
xiaoshi
6e1c745a47 Update xiaoshi-pad-card.js 2026-01-03 22:08:35 +08:00
xiaoshi
e4e2a218c1 Update xiaoshi-pad-card.js 2026-01-03 22:08:27 +08:00
xiaoshi
2aeca95db9 Update xiaoshi-pad-card.js 2026-01-01 15:45:28 +08:00
xiaoshi
bf6c7d9a1a Update xiaoshi-device-todo-button.js 2026-01-01 15:45:11 +08:00
xiaoshi
b5dfe6ac0a Update xiaoshi-device-ha-info-button.js 2026-01-01 15:44:59 +08:00
xiaoshi
e4c9bcfe32 Update xiaoshi-device-consumables-button.js 2026-01-01 15:44:49 +08:00
xiaoshi
c30a918614 Update xiaoshi-device-balance-button.js 2026-01-01 15:44:35 +08:00
xiaoshi
e15cdfccaa Update xiaoshi-pad-card.js 2026-01-01 15:12:37 +08:00
xiaoshi
c0f45717d4 Update xiaoshi-pad-grid-card.js 2026-01-01 15:11:40 +08:00
xiaoshi
d57f69d4b9 Update xiaoshi-device-ha-info-card.js 2026-01-01 15:11:03 +08:00
xiaoshi
1ba54782c0 Update xiaoshi-device-ha-info-button.js 2026-01-01 15:10:42 +08:00
xiaoshi
240ce4e4ef Update xiaoshi-pad-card.js 2025-12-27 14:01:30 +08:00
xiaoshi
9d0fbaead4 Update xiaoshi-device-todo-button.js 2025-12-27 14:01:17 +08:00
xiaoshi
b357b69fa5 Update xiaoshi-device-consumables-button.js 2025-12-27 14:00:40 +08:00
xiaoshi
0d61619f8d Update xiaoshi-device-balance-button.js 2025-12-27 14:00:21 +08:00
xiaoshi
953e414a61 Update xiaoshi-device-ha-info-button.js 2025-12-27 14:00:00 +08:00
xiaoshi
8974f122b6 Update xiaoshi-device-ha-info-button.js 2025-12-27 13:59:27 +08:00
xiaoshi
6060663a24 Update xiaoshi-device-consumables-button.js 2025-12-27 13:59:08 +08:00
xiaoshi
22e7325a06 Update xiaoshi-device-balance-button.js 2025-12-27 13:58:47 +08:00
xiaoshi
67f13a23ca Update xiaoshi-pad-card.js 2025-12-27 13:08:52 +08:00
xiaoshi
56e85c834f Update xiaoshi-device-todo-button.js 2025-12-27 13:08:15 +08:00
xiaoshi
367a47d33b Update xiaoshi-device-ha-info-button.js 2025-12-27 13:07:54 +08:00
xiaoshi
6501aeead7 Update xiaoshi-device-consumables-button.js 2025-12-27 13:07:29 +08:00
xiaoshi
c93735be82 Update xiaoshi-device-balance-button.js 2025-12-27 13:06:56 +08:00
xiaoshi
740bac1c63 Update xiaoshi-device-todo-button.js 2025-12-20 01:48:48 +08:00
xiaoshi
85d413baa1 Update data refresh interval to 3 seconds
Changed the data refresh interval from 300 seconds to 3 seconds.
2025-12-20 01:48:21 +08:00
xiaoshi
128d24328b Update xiaoshi-device-consumables-button.js 2025-12-20 01:47:57 +08:00
xiaoshi
de64a44599 Update xiaoshi-device-balance-button.js 2025-12-20 01:47:29 +08:00
xiaoshi
cf3e37da9e Update xiaoshi-pad-card.js 2025-12-13 22:49:01 +08:00
xiaoshi
cfc9618e87 Update xiaoshi-device-todo-button.js 2025-12-13 22:48:34 +08:00
xiaoshi
fe22c85d3b Update xiaoshi-device-ha-info-button.js 2025-12-13 22:48:20 +08:00
xiaoshi
13bcd1a702 Update xiaoshi-device-consumables-button.js 2025-12-13 22:48:03 +08:00
xiaoshi
1fb2f8dcb7 Update xiaoshi-device-balance-button.js 2025-12-13 22:47:43 +08:00
12 changed files with 2385 additions and 13389 deletions

View File

@@ -24,76 +24,4 @@ max: 80 # 当前地区最大值
mode: 湿度 # 【温度】或者【湿度】
~~~
## 功能2HA信息卡(手机平板端通用)
**引用示例**
~~~
type: custom:xiaoshi-update-card
width: 100%
skip_updates: false #是否包含已跳过的更新
theme: on
exclude_devices:
- *设备*
exclude_entities:
- *shiti*
~~~
## 功能3电话信息余额卡(手机平板端通用)
**引用示例**
~~~
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
~~~
## 功能5耗材信息卡片(手机平板端通用)
**引用示例**
~~~
type: custom:xiaoshi-consumables-card
width: 100%
global_warning: <8
columns: "2"
entities:
- entity_id: input_text.aaa
overrides:
name: 奥斯卡德拉萨达实打实实打实
unit_of_measurement: "%"
warning: <10
conversion: "*2"
icon: ""
- entity_id: input_text.aaa1
- entity_id: input_text.aaa2
- entity_id: input_text.aaa3
- entity_id: input_text.aaa4
- entity_id: input_text.aaa5
- entity_id: input_text.aaa6
- entity_id: input_text.aaa7
~~~

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,15 +1,8 @@
console.info("%c 消逝卡-平板端 \n%c v 0.2.0 ", "color: red; font-weight: bold; background: black", "color: white; font-weight: bold; background: black");
console.info("%c 消逝卡-平板端 \n%c v 1.0.4 ", "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-balance-card.js');
await import('./xiaoshi-device-balance-button.js');
await import('./xiaoshi-device-todo-card.js');
await import('./xiaoshi-device-todo-button.js');
await import('./xiaoshi-device-consumables-card.js');
await import('./xiaoshi-device-consumables-button.js');
await import('./xiaoshi-device-ha-info-card.js');
await import('./xiaoshi-device-ha-info-button.js');
const loadCards = () => {
import('./xiaoshi-pad-climate-card.js');
import('./xiaoshi-pad-grid-card.js');
window.customCards = window.customCards || [];
window.customCards.push(...cardConfigs);
@@ -22,51 +15,9 @@ const cardConfigs = [
description: '温度分布、湿度分布'
},
{
type: 'xiaoshi-ha-info-card',
name: '消逝HA信息卡片',
description: '消逝HA信息卡片',
preview: true
},
{
type: 'xiaoshi-ha-info-button',
name: '消逝HA信息按钮',
description: '消逝HA信息按钮',
preview: true
},
{
type: 'xiaoshi-balance-card',
name: '消逝余额信息卡片',
description: '消逝余额信息卡片',
preview: true
},
{
type: 'xiaoshi-balance-button',
name: '消逝余额信息按钮',
description: '消逝余额信息按钮',
preview: true
},
{
type: 'xiaoshi-todo-card',
name: '消逝待办信息卡片',
description: '消逝待办信息卡片',
preview: true
},
{
type: 'xiaoshi-todo-button',
name: '消逝待办信息按钮',
description: '消逝待办信息按钮',
preview: true
},
{
type: 'xiaoshi-consumables-card',
name: '消逝耗材信息卡片',
description: '消逝耗材信息卡片',
preview: true
},
{
type: 'xiaoshi-consumables-button',
name: '消逝耗材信息按钮',
description: '消逝耗材信息按钮',
type: 'xiaoshi-pad-climate-card',
name: '消逝卡(平板端)-空调/水暖毯/热水器卡',
description: '平板端空调/水暖毯/热水器卡',
preview: true
}
];

2377
xiaoshi-pad-climate-card.js Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
import { LitElement, html, css } from "https://unpkg.com/lit-element@2.4.0/lit-element.js?module";
export class XiaoshiPadGridCard extends LitElement {
class XiaoshiPadGridCard extends LitElement {
static get properties() {
return {
hass: Object,