diff --git a/test/common.ts b/test/common.ts index 596f435..da3940c 100644 --- a/test/common.ts +++ b/test/common.ts @@ -119,4 +119,9 @@ export const button = new ButtonHA({ token: process.env.HAAS_TOKEN || '', homeas // console.log(util.inspect(res, { depth: null })); // const entityType = await hacore.getEntityTypes(); -// console.log(showMore(entityType)); \ No newline at end of file +// console.log(showMore(entityType)); + + +const yinxiang = await hacore.getEntities((item) => item.attributes?.friendly_name?.includes?.('音箱')); + +console.log(showMore(yinxiang)); \ No newline at end of file