yuefeiluo
(yufeiluo)
August 19, 2023, 1:15pm
1
I have installed baidu_fanyi_tts this way:
git clone https://github.com/hasscc/hass-baidu-fanyi-tts
sudo cp -R hass-baidu-fanyi-tts/custom_components /home/homeassistant/.homeassistant
The setting in configuration:
tts:
- platform: baidu_fanyi_tts
language: zh
speed: 5
Add weather integration:
git clone https://github.com/ryanh7/ha-nmc-weather
sudo cp -R ha-nmc-weather/custom_components/* /home/homeassistant/.homeassistant/custom_components
1.How can make baidu_fanyi_tts speak the weather now?
2.How can make baidu_fanyi_tts speak the weather on 7 o’clock everyday?
yuefeiluo
(yufeiluo)
August 19, 2023, 2:04pm
3
Click SAY,it works fine.
1.How can make baidu_fanyi_tts speak the weather now?
2.How can make baidu_fanyi_tts speak the weather on 7 o’clock everyday?
How to write some code in configuration.yaml or click something to do?
pcwii
(Pcwii)
August 19, 2023, 6:26pm
4
You should be able to create an automation with a sentence trigger “what is the weather”
You could also use a time based trigger for this automation as well.
Hi,
Just use the weather entity in a TTS service call:
- id: '123456'
alias: Alarm - Good Morning
description: ''
trigger:
- platform: time
at: 07:00:00
action:
- service: tts.google_say
data:
entity_id: media_player.changeme
message: Good morning It is {{ now().hour}} {{ now().minute }}
The forecast is {{ states('weather.home') }}
If this helps, this post!
yuefeiluo
(yufeiluo)
August 19, 2023, 11:25pm
6
tts:
- platform: baidu_fanyi_tts
language: zh
speed: 5
- id: '123456'
alias: Alarm - Good Morning
description: ''
trigger:
- platform: time
at: 07:25:00
action:
- service: tts.baidu_fanyi_tts_say
data:
entity_id: media_player.changeme
message: Good morning It is {{ now().hour}} {{ now().minute }}
The forecast is {{ states('weather.home') }}
It encounter error:
Invalid config for [tts]: required key not provided @ data[‘platform’]. Got None.