55
138
744
高级会员
使用道具 举报
1
203
1369
金牌会员
- type: custom:auto-entities card: type: entities show_header_toggle: true title: 未关闭的灯光 filter: include: - group: switch.all_light_switch state: 'on' - entity_id: light.all_light state: 'on' exclude: []
zhanfu86 发表于 2023-2-13 14:33 options 不用写。state 要写。
gdxinge 发表于 2023-2-13 16:39 你好,我直接放入你的代码,提示出错是怎么回事?还有你说的state是哪里?没看到这个参数啊 ...
zhanfu86 发表于 2023-2-13 16:45 把你的代码贴出来。是不是没指定实体了,我上面用的是群组 entities:
type: custom:auto-entities card: type: entities show_header_toggle: true title: 未关闭的灯光 state_color: true filter: include: - group: switch.all_light_switch state: 'on' - entity_id: light.all_light state: 'on' exclude: [] show_empty: true
gdxinge 发表于 2023-2-13 17:35 我用上面代码试了不会出错,但是已经打开的灯光和开关不会显示出来,不知道哪里问题? ...
5
205
905
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian
GMT+8, 2025-3-13 11:01 , Processed in 0.071846 second(s), 31 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.