微信扫码登录
0
279
3452
论坛元老
器大活好人还帅 发表于 2025-1-3 15:30 老哥,那动作应该怎么添加呢?
使用道具 举报
2
34
249
中级会员
holy745 发表于 2025-1-6 21:48 我是使用HA自带的自动化里面的实体状态变化来实现的
alias: 洗完衣服自动播报 description: "" triggers: - entity_id: - sensor.1******7_progress #洗衣机 from: Spin to: Idle trigger: state conditions: [] actions: - action: notify.send_message metadata: {} data: message: >- ["洗衣机,衣服清洗完毕。当前天气 {{ state_attr("weather.tian_qi","condition_cn")}},{{ state_attr("weather.tian_qi","forecast_hourly")}}"] #weather.tian_qi 天气实体 target: entity_id: notify.xiaomi_cn_56****8_l15a_play_text_a_7_3 #小爱音箱 mode: single
holy745 发表于 2025-1-13 09:48 更改你相应的实体
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )
GMT+8, 2025-8-20 12:30 , Processed in 0.780290 second(s), 5 queries , MemCached On.
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.