22
213
1169
金牌会员
使用道具 举报
80
308
1680
- sensor: - name: "outdoor humidity" unique_id: outdoor_humidity state: "{{ state_attr('weather.openweathermap' , 'humidity') }}" unit_of_measurement: "%" - sensor: - name: "wind speed" unique_id: wind_speed state: "{{ state_attr('weather.openweathermap' , 'wind_speed') }}" unit_of_measurement: "m/s"
ciasdmxhxjjpd@c 发表于 2022-8-1 20:51 template 里,https://community.home-assistant.io/t/solved-state-attr-problem-in-value-template/12918 ...
智能好伙伴 发表于 2022-8-2 11:43 非常感谢你的回答。我输入后报错,Invalid config for [sensor]: required key not provided @ data['pla ...
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )
GMT+8, 2025-7-4 08:02 , Processed in 0.635327 second(s), 12 queries , MemCached On.
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.