我的代码如下,有两个问题:1、state[0].condition_cn似乎没有效果,播放时没有具体数值。2、如何添加是否下雨,风力等内容。
service: tts.edge_tts_say
data:
cache: false
entity_id: media_player.zhu_wo
message: >-
{% set state = state_attr('weather.tian_qi', 'daily_forecast')%}
早上好。今天的天气是{{state[0].condition_cn}},最高温度:{{state[0].native_temperature}}度,最低温度:{{state[0].native_templow}}度
|