编辑
2024-07-17
智能家居
0
请注意,本文编写于 336 天前,最后修改于 336 天前,其中某些信息可能已经过时。
yaml
type: picture-elements image: /local/xxx/背景图 elements: #徽章 - type: state-badge entity: 设备实体ID号 style: top: 9% left: 12% #文字按钮 - type: service-button title: 按钮文字 style: top: 5% left: 45% service: 脚本ID service-data: null #一个灯状态图片 - type: image entity: 设备实体ID号 tap_action: action: none style: pointer-events: none top: 50% left: 50% width: 100% mix_blend_mode: lighten state_image: 'off': /local/xxx/透明.png 'on': /local/xxx/对应亮灯的图地址 #一个灯操作图标 - type: state-icon entity: 同上的设备实体ID号 tap_action: action: toggle #图标id icon: mdi:led-strip-variant state_color: true style: top: 77% left: 84%
如果对你有用的话,可以打赏哦
打赏
ali pay
wechat pay

本文作者:澳门🇲🇴上班的IT人

本文链接:

版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!