55
83
744
高级会员
使用道具 举报
1
202
1378
金牌会员
- 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
200
905
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )
GMT+8, 2025-5-15 19:03 , Processed in 0.112098 second(s), 26 queries .
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.