23
660
3114
论坛元老
使用道具 举报
8
255
1223
金牌会员
- platform: template sensors: plug_power: friendly_name: 油烟机功率 value_template: "{{ states.switch.plug_xxxx.attributes.load_power }}" unit_of_measurement: w
- platform: numeric_state entity_id: sensor.plug_power above: '20'
laynexx 发表于 2018-12-8 21:47 我是这么做的 config里功率做成一个sensor[code] - platform: template sensors:
14
4015
0
62
922
高级会员
66
378
中级会员
余歌唱晚 发表于 2018-12-8 22:36 action: - service_template: "light.turn_{% if '{{% states.switch_158d0002496520.attributes.load_ ...
dominic2705 发表于 2018-12-9 02:45 我觉得这样写比较简单易懂 trigger:
3
105
447
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian
GMT+8, 2025-3-7 14:40 , Processed in 0.102098 second(s), 31 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.