6
40
281
中级会员
MX10085 发表于 2024-9-26 20:54 button-card 不用写CSS,可以实现闪烁动画!
使用道具 举报
22
319
3945
论坛元老
kuki 发表于 2024-10-4 11:06 大佬,我用这个代码。我是领普的人在传感器,无法识别。sensor状态是no one和has one,图片改名还是无法 ...
entity_picture: | [[[ if (states['sensor.yilouchufang_motion_radar'].state == '无人') return "/local/ui/图标/人感/人感off.png"; if (states['sensor.yilouchufang_motion_radar'].state == '运动') return "/local/ui/图标/人感/人感on.png"; else return "/local/ui/图标/人感/人感static.png"; ]]]
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian
GMT+8, 2024-12-4 01:14 , Processed in 0.047000 second(s), 21 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.