2
158
2698
金牌会员
dgmax 发表于 2019-2-24 22:34 贴个成果和代码?? 会是
使用道具 举报
26
529
1979
opalhair 发表于 2019-4-15 12:13 创建独立传感器模板
49
202
论坛积极会员
- platform: template sensors: binary_sensor_hallway_battery: friendly_name: '门厅电量' unit_of_measurement: '%' value_template: "{{ state_attr('binary_sensor.motion_sensor_158d0002f0bc6c', 'battery_level') }}" device_class: battery
20
329
2556
5
276
2146
23
393
2275
thedonald 发表于 2019-7-12 17:13 现在语法又变了。 得这样:
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )
GMT+8, 2025-6-22 21:32 , Processed in 0.074536 second(s), 22 queries .
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.