mirror of
https://github.com/xiaoshi930/xiaoshi-pad-card.git
synced 2026-02-11 22:23:48 +00:00
Compare commits
45 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2f8c0c2beb | ||
|
|
4cd1f4c320 | ||
|
|
c42339343d | ||
|
|
5c95ac49a5 | ||
|
|
844b44c46a | ||
|
|
c2d18c7643 | ||
|
|
972909bb44 | ||
|
|
3a30464a45 | ||
|
|
d409ce2ea2 | ||
|
|
292ed95f04 | ||
|
|
870780c612 | ||
|
|
6af60fa9de | ||
|
|
6e1c745a47 | ||
|
|
e4e2a218c1 | ||
|
|
2aeca95db9 | ||
|
|
bf6c7d9a1a | ||
|
|
b5dfe6ac0a | ||
|
|
e4c9bcfe32 | ||
|
|
c30a918614 | ||
|
|
e15cdfccaa | ||
|
|
c0f45717d4 | ||
|
|
d57f69d4b9 | ||
|
|
1ba54782c0 | ||
|
|
240ce4e4ef | ||
|
|
9d0fbaead4 | ||
|
|
b357b69fa5 | ||
|
|
0d61619f8d | ||
|
|
953e414a61 | ||
|
|
8974f122b6 | ||
|
|
6060663a24 | ||
|
|
22e7325a06 | ||
|
|
67f13a23ca | ||
|
|
56e85c834f | ||
|
|
367a47d33b | ||
|
|
6501aeead7 | ||
|
|
c93735be82 | ||
|
|
740bac1c63 | ||
|
|
85d413baa1 | ||
|
|
128d24328b | ||
|
|
de64a44599 | ||
|
|
cf3e37da9e | ||
|
|
cfc9618e87 | ||
|
|
fe22c85d3b | ||
|
|
13bcd1a702 | ||
|
|
1fb2f8dcb7 |
72
README.md
72
README.md
@@ -24,76 +24,4 @@ max: 80 # 当前地区最大值
|
||||
mode: 湿度 # 【温度】或者【湿度】
|
||||
~~~
|
||||
|
||||
## 功能2:HA信息卡(手机平板端通用)
|
||||
**引用示例**
|
||||
~~~
|
||||
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
@@ -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.1 ", "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
|
||||
}
|
||||
];
|
||||
|
||||
2437
xiaoshi-pad-climate-card.js
Normal file
2437
xiaoshi-pad-climate-card.js
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user