16
242
3043
论坛元老
1
2
使用道具 举报
0
54
357
中级会员
pauillac21 发表于 2021-12-24 12:11 没太明白,你是想要 {{( 2-(state | float / 100) )| round(2)}}
wfx 发表于 2021-12-24 12:21 {{( 200-(state('sensor.tasmota_sr04_distance') | float / 100) )| round(2)}} 这样也不对!
pauillac21 发表于 2021-12-24 12:24 你直接用: {{ ( 2-(states('sensor.tasmota_sr04_distance') | float / 100) )| round(2) }} ,前面那个2 ...
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian
GMT+8, 2025-2-27 11:07 , Processed in 0.552006 second(s), 34 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.