实体为sonoff开关(switch.sonoff_1000bcf22d),其中之一的参数为“temperature”

sensor:
  - platform: template
    sensors:
      airpowerheatertemperature:
        friendly_name: "空气能温度"
        value_template:  "{{ state_attr('switch.sonoff_1000bcf22d', 'temperature') }}"
Last modification:April 16, 2022
如果觉得我的文章对你有用,请帮忙点一下上面的广告