9-11
This commit is contained in:
parent
192ec80737
commit
ab8d99d718
|
@ -34,7 +34,7 @@ class ha_cli(object):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
def speak(self, sentence, tts='google_say', media_player='all'):
|
def speak(self, sentence, tts='google_translate_say', media_player='all'):
|
||||||
data = { 'message': sentence,
|
data = { 'message': sentence,
|
||||||
'entity_id': media_player
|
'entity_id': media_player
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -58,7 +58,7 @@ automation:
|
||||||
value_template: '{{((as_timestamp(now())|int)|timestamp_custom("%H:%M"))==states.input_datetime.alarm_time.state|truncate(5,False,"",0) }}'
|
value_template: '{{((as_timestamp(now())|int)|timestamp_custom("%H:%M"))==states.input_datetime.alarm_time.state|truncate(5,False,"",0) }}'
|
||||||
action:
|
action:
|
||||||
# 播放文字语音
|
# 播放文字语音
|
||||||
- service: tts.google_say
|
- service: tts.google_translate_say
|
||||||
entity_id: media_player.vlc
|
entity_id: media_player.vlc
|
||||||
data_template:
|
data_template:
|
||||||
message: '{{states.input_text.alarm_text.state}}'
|
message: '{{states.input_text.alarm_text.state}}'
|
||||||
|
|
|
@ -38,7 +38,7 @@ automation:
|
||||||
event_data:
|
event_data:
|
||||||
entity_id: image_processing.ms_face_feature
|
entity_id: image_processing.ms_face_feature
|
||||||
action:
|
action:
|
||||||
service: tts.google_say
|
service: tts.google_translate_say
|
||||||
entity_id: "all"
|
entity_id: "all"
|
||||||
data_template:
|
data_template:
|
||||||
message: >
|
message: >
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue