Compare commits

...

3 Commits
v1.0.8 ... main

Author SHA1 Message Date
xiaoshi
7d052410ad Update README.md 2026-02-11 17:34:52 +08:00
xiaoshi
995c1d023f Update xiaoshi-pad-card.js 2026-01-29 18:17:48 +08:00
xiaoshi
d53396235f Update xiaoshi-pad-climate-card.js 2026-01-29 18:17:32 +08:00
3 changed files with 18 additions and 4 deletions

View File

@@ -5,7 +5,15 @@
type: module
~~~
## 功能1分布卡(温度分布、湿度分布)
## 功能1空调卡/加湿器卡/热水器卡/水暖毯卡
**引用示例**
**详细配置参照可视化编辑器
~~~
type: custom:xiaoshi-pad-climate-card
~~~
## 功能2分布卡(温度分布、湿度分布)
**引用示例**
~~~
type: custom:xiaoshi-pad-grid-card

View File

@@ -1,4 +1,4 @@
console.info("%c 消逝卡-平板端 \n%c v 1.0.8 ", "color: red; font-weight: bold; background: black", "color: white; font-weight: bold; background: black");
console.info("%c 消逝卡-平板端 \n%c v 1.0.9 ", "color: red; font-weight: bold; background: black", "color: white; font-weight: bold; background: black");
const loadCards = () => {
import('./xiaoshi-pad-climate-card.js');

View File

@@ -2890,8 +2890,14 @@ class XiaoshiPadClimateCard extends LitElement {
`;
}
_handleClick() {
navigator.vibrate(50);
_handleClick(){
const hapticEvent = new Event('haptic', {
bubbles: true,
cancelable: false,
composed: true
});
hapticEvent.detail = 'light';
this.dispatchEvent(hapticEvent);
}
_formatSeconds(totalSeconds) {