1
22
466
中级会员
使用道具 举报
9
197
1723
金牌会员
globals: - id: cd_timer type: int restore_value: yes number: - platform: template name: "${device_name} Close Timer" id: close_timer icon: mdi:timer optimistic: true restore_value: true min_value: 80 #设定最小数值 max_value: 120 #设定最大数值 step: 2 #步进值 on_value: then: - globals.set: id: cd_timer value: !lambda "return x/0.001;"
then: .... - delay: !lambda "return id(cd_timer);" ....
tangyali 发表于 2022-12-19 20:25 在运行代码中插入 不知道是不是你需要的
3
328
3632
论坛元老
iamhyde 发表于 2023-1-13 21:46 请教下从!lambda "return x/0.001;"这里返回到- delay: !lambda "return id(cd_timer);"的时间是秒吗还是 ...
45
409
1673
14
67
480
论坛分享达人
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )
GMT+8, 2025-6-28 20:06 , Processed in 0.105159 second(s), 23 queries .
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.