https://bbs.hassbian.com/thread-11636-1-1.html
从论坛找到了,首先在开发者工具-状态里面搜索晾衣架实体,然后复制这个属性,最后在configuration.yaml里面添加就可以了
sensor:
- platform: template
sensors:
airpowerheatertemperature:
friendly_name: "晾衣架位置"
value_template: "{{ state_attr('cover.ich108_cloud_277082', 'airer_current_position') }}"
|