『瀚思彼岸』» 智能家居技术论坛

标题: tts播放天气(免费) [打印本页]

作者: hassfan    时间: 2023-11-5 21:26
标题: tts播放天气(免费)
本帖最后由 hassfan 于 2023-11-5 21:33 编辑

安装alone大佬
https://github.com/hasscc/tianqi
alias: 天气预报
description: ""
trigger:
  - platform: sun
    event: sunrise
    offset: 0
condition: []
action:
  - service: tts.xiaomo_say
    data:
      entity_id: media_player.ben_ji_bo_fang_qi
      message: >-
        当前室外天气{{state_attr("weather.xxx","condition_desc")
        }},室外温度{{state_attr("weather.xxx","apparent_temperature")
        }}摄氏度,风速{{state_attr("weather.xxx","wind_speed")
        }}公里每小时,出行建议{{state_attr("weather.xxx","forecast_keypoint") }}。
mode: single



作者: guoqiang881245    时间: 2023-11-6 09:43
这个代码是放在那里

作者: hassfan    时间: 2023-11-6 11:18
代码是放在自动化里
作者: 混饭吃的机器猫    时间: 2024-3-11 17:05
    请教一下   这几个实体   从那里找到替换自己的实体  
当前室外天气{{state_attr("weather.xxx","condition_desc")
        }},室外温度{{state_attr("weather.xxx","apparent_temperature")
        }}摄氏度,风速{{state_attr("weather.xxx","wind_speed")
        }}公里每小时,出行建议{{state_attr("weather.xxx",

谢谢
作者: hassfan    时间: 2024-3-12 11:02
编辑仪表盘——卡片配置
作者: 混饭吃的机器猫    时间: 2024-3-12 16:42
hassfan 发表于 2024-3-12 11:02
编辑仪表盘——卡片配置

谢谢,,,,
作者: 隔壁的王叔叔    时间: 2024-3-12 22:20
奇怪,报错啊,Triggered manually at 2024年3月12日 下午10:15:44

调用 上的服务 "Text-to-speech (TTS): Say a TTS message with edge_tts"

Stopped because an error was encountered at 2024年3月12日 下午10:15:56 (runtime: 11.79 seconds)

('failed to init decoder', -1)
作者: hassfan    时间: 2024-3-14 17:36
可能是网络不畅




欢迎光临 『瀚思彼岸』» 智能家居技术论坛 (https://bbs.hassbian.com/) Powered by Discuz! X3.5