32
253
1924
金牌会员
查看完整内容
使用道具 举报
78
1343
2万
元老级技术达人
template: - sensor: - name: "tomorrow_temp_high" unit_of_measurement: "°C" state: > {{state_attr("weather.lu_tan", "forecast")[0].temperature }} - name: "after_tomorrow_temp_high" unit_of_measurement: "°C" state: > {{state_attr("weather.lu_tan", "forecast")[1].temperature }}
3
116
1189
hackyjso 发表于 2022-11-25 22:49 用天气预警 API
56
878
4209
论坛元老
template: - sensor: - name: "wen_du_ca" unit_of_measurement: "°C" state: > {% set bedroom = states('sensor.aqarawen_shi_du_ji_temperature') | float %} {% set shiwai = states('sensor.wo_de_jia_wen_du') | float %} {{ (bedroom - shiwai) | round(1, default=0) }}
bainiu 发表于 2022-11-26 12:32
{{state_attr("weather.lu_tan", "forecast")[0].temperature }} {{state_attr("weather.lu_tan", "forecast")[1].temperature }}
justion 发表于 2022-11-26 12:43 通过传感器获取的温度我能写,我想要的是天气预报获得的温度,因为天气预报里的属性比较复杂,不知道要怎 ...
查看全部评分
dscao 发表于 2022-11-25 22:03
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )
GMT+8, 2025-5-9 04:23 , Processed in 0.077224 second(s), 27 queries .
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.