添加灯光管理、自动化和脚本功能,更新依赖项,完善文档

This commit is contained in:
2025-12-22 23:30:13 +08:00
parent 18e4b39ade
commit 47a5c600ea
15 changed files with 392 additions and 118 deletions

16
test/script.ts Normal file
View File

@@ -0,0 +1,16 @@
import { script, showMore } from './common.ts';
const scripts = await script.getScripts();
const values = scripts.map(e => {
return {
entity_id: e.entity_id,
state: e.state,
attributes: e.attributes,
last_changed: e.last_changed,
last_updated: e.last_updated,
};
});
console.log(showMore(values));
console.log(`实体数量: ${scripts.length}`);