- 积分
- 217
- 金钱
- 164
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
 
- 积分
- 217
- 金钱
- 164
- HASS币
- 0
|
用辅助元素创建了一个灯组,开关时一直提示 【调用服务light/turn_on失败。Attribute hass is None for<Entity 筒灯-组 Group n>】。但是实际上灯组是能被控制的。图片元素里state-icon开关灯组也有这个提示,并且icon不会跟随灯组状态改变颜色。
- type: state-icon
entity: light.shu_fang_tong_deng_zu
icon: mdi:wall-sconce-flat
state_color: true
tap_action:
action: toggle
hold_action:
action: more-info
style:
top: 35%
left: 84%
background: rgba(255,255,255,0.1)
border-radius: 100px
'--mdc-icon-size': 25px
'--paper-item-icon-color': white
|
|