实体为sonoff开关(switch.sonoff_1000bcf22d),其中之一的参数为“temperature”
sensor:
- platform: template
sensors:
airpowerheatertemperature:
friendly_name: "空气能温度"
value_template: "{{ state_attr('switch.sonoff_1000bcf22d', 'temperature') }}"