小度tts输出后,无法语音控制播放停止
小度做dlna用作tts,当自动化触发tts语音播报之后,再语音控制小度播放停止音乐指令无效.如:"小度小度,继续播放"
搜索论坛,看到有的朋友说需要加media_player.media_stop,我加上之后依然不行,请指教
#卧室灯,关闭
- alias: notify publish off
trigger:
platform: state
entity_id: switch.hassmart_*******
from: 'on'
to: 'off'
condition:
condition: state
entity_id: device_tracker.******
state: 'home'
action:
- service: notify.my_notify
data:
title: 灯动态
message: '卧室灯已关闭'
target: g-****
- service: tts.baidu_say
data_template:
entity_id: media_player.dlna_digital_media_renderer
message: >
"卧室灯已关闭"
cache: false
- delay:
seconds: 5
- service: media_player.media_stop
entity_id: media_player.dlna_digital_media_renderer
|