2
160
2662
金牌会员
dgmax 发表于 2019-2-24 22:34 贴个成果和代码?? 会是
使用道具 举报
26
555
1977
opalhair 发表于 2019-4-15 12:13 创建独立传感器模板
51
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
348
2543
5
272
2067
22
414
2259
thedonald 发表于 2019-7-12 17:13 现在语法又变了。 得这样:
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian
GMT+8, 2025-2-26 03:42 , Processed in 1.223357 second(s), 26 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.