本帖最后由 咸味土豆 于 2019-1-27 15:55 编辑
更新,我有个自动化好像也是这样,晕了晕了:
action:
- service: notify.weixin
data:
title: "天气预报"
message: "
当前天气:{{ states('sensor.caiyun_realtime_skycon') }},
最高温度:{{states('sensor.caiyun_alarm_high_temp') }},
最低温度:{{states('sensor.caiyun_alarm_low_temp') }},
降雨概率:{{states('sensor.caiyun_minutely_description') }},
空气质量:{{states('sensor.caiyun_realtime_aqi') }},
PM 2.5:{{states('sensor.caiyun_realtime_pm25') }},
"
-----------------------------------------------------------
仔细对比看了下,你的动作可能需要修改下。
参考:
action:
- service: tts.clear_cache
- delay: 00:00:05
- service: tts.baidu_say
data_template:
entity_id: media_player.google_home_mini
message: >
"当前室内甲醛浓度为 {{states.sensor.m1_hcho.state}},建议开窗透气。"
cache: false
注意, {{states.sensor.m1_hcho.state}},states后面有个.,你写的没有,这样读不出来数据的。
|