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

 找回密码
 立即注册
楼主: lidicn

TTS语音反馈开关状态【事件触发】【更新人性化条件】

  [复制链接]

10

主题

80

帖子

1293

积分

金牌会员

Rank: 6Rank: 6

积分
1293
金钱
1213
HASS币
0
发表于 2018-4-4 21:24:45 | 显示全部楼层
各位大神,看一下
回复

使用道具 举报

1

主题

99

帖子

405

积分

中级会员

Rank: 3Rank: 3

积分
405
金钱
306
HASS币
0
发表于 2018-4-5 14:49:12 | 显示全部楼层
需要学习 !
回复

使用道具 举报

1

主题

30

帖子

203

积分

论坛分享达人

积分
203
金钱
173
HASS币
0
发表于 2018-4-7 08:02:27 | 显示全部楼层
谢谢分享!!!
回复

使用道具 举报

11

主题

177

帖子

764

积分

高级会员

Rank: 4

积分
764
金钱
586
HASS币
0
发表于 2018-4-12 21:38:49 | 显示全部楼层
学习学习
回复

使用道具 举报

0

主题

30

帖子

411

积分

中级会员

Rank: 3Rank: 3

积分
411
金钱
381
HASS币
0
发表于 2018-4-14 23:42:25 | 显示全部楼层
自动化是最难实现的学习
回复

使用道具 举报

175

主题

2967

帖子

7606

积分

超级版主

我就是六神

Rank: 8Rank: 8

积分
7606
金钱
4614
HASS币
398

活跃会员教程狂人灌水之王

QQ
发表于 2018-4-15 14:40:46 | 显示全部楼层
问一下超版,action里为什么没写 mediaplayer的entityid啊???这个声音从哪里出来呢??

还有一点,重启了HA之后,播放器可能还没有启动起来,或者是所有switch 和 一些设备本来就通电了,会在同一时间有太多条tts会播放,导致mediaplayer报错,是不是前面加个判断条件??
回复

使用道具 举报

175

主题

2967

帖子

7606

积分

超级版主

我就是六神

Rank: 8Rank: 8

积分
7606
金钱
4614
HASS币
398

活跃会员教程狂人灌水之王

QQ
发表于 2018-4-15 14:49:59 | 显示全部楼层
About

Home Assistant
0.66.1

Path to configuration.yaml: /config

Developed by a bunch of awesome people.

Published under the Apache 2.0 license
Source: server — frontend-ui

Built using Python 3, Polymer 2.6.0, Icons by Google and MaterialDesignIcons.com.

Frontend JavaScript version: latest
Custom UIs:
CustomUI: 20180330
Update of media_player.192_168_31_120 is taking over 10 seconds
下午2:49 core.py (WARNING)
Updating miflora sensor took longer than the scheduled update interval 0:00:30
下午2:47 helpers/entity_platform.py (WARNING)
Updating dlna media_player took longer than the scheduled update interval 0:00:10
下午2:47 helpers/entity_platform.py (WARNING)
Update of media_player.192_168_31_120 is taking over 10 seconds
下午2:47 core.py (WARNING)
Update of sensor.flower1_moisture is taking over 10 seconds
下午2:47 core.py (WARNING)
Updating miflora sensor took longer than the scheduled update interval 0:00:30
下午2:47 helpers/entity_platform.py (WARNING)
Update of sensor.flower1_conductivity is taking over 10 seconds
下午2:47 core.py (WARNING)
Update of switch.study_s3 is taking over 10 seconds
下午2:43 core.py (WARNING)
Updating broadlink_mp1 switch took longer than the scheduled update interval 0:00:06
下午2:43 helpers/entity_platform.py (WARNING)
OSError: HTTPSConnectionPool(host='aircat.phicomm.com', port=443): Read timed out. (read timeout=3)
下午2:42 custom_components/sensor/PhicommAirDetector.py (ERROR)
Error doing job: Task exception was never retrieved
下午2:41 custom_components/dlna.py (ERROR)
Update of media_player.192_168_31_120 is taking over 10 seconds
下午2:36 core.py (WARNING)
Updating dlna media_player took longer than the scheduled update interval 0:00:10
下午2:34 helpers/entity_platform.py (WARNING)
Update of media_player.192_168_31_120 is taking over 10 seconds
下午2:34 core.py (WARNING)
Update of switch.bedroom_s1 is taking over 10 seconds
下午2:34 core.py (WARNING)
Updating broadlink_mp1 switch took longer than the scheduled update interval 0:00:06
下午2:34 helpers/entity_platform.py (WARNING)
Update of sensor.flower2_light_intensity is taking over 10 seconds
下午2:33 core.py (WARNING)
Update of media_player.192_168_31_120 is taking over 10 seconds
下午2:31 core.py (WARNING)
Updating dlna media_player took longer than the scheduled update interval 0:00:10
下午2:29 helpers/entity_platform.py (WARNING)
Update of media_player.192_168_31_120 is taking over 10 seconds
下午2:29 core.py (WARNING)
Update of media_player.192_168_31_120 is taking over 10 seconds
下午2:28 core.py (WARNING)
Update of sensor.flower2_battery is taking over 10 seconds
下午2:28 core.py (WARNING)
Updating miflora sensor took longer than the scheduled update interval 0:00:30
下午2:27 helpers/entity_platform.py (WARNING)
Update of media_player.192_168_31_120 is taking over 10 seconds
下午2:27 core.py (WARNING)
Updating miflora sensor took longer than the scheduled update interval 0:00:30
下午2:27 helpers/entity_platform.py (WARNING)
Update of sensor.flower2_light_intensity is taking over 10 seconds
下午2:27 core.py (WARNING)
Updating PhicommAirDetector sensor took longer than the scheduled update interval 0:00:03
下午2:26 helpers/entity_platform.py (WARNING)
Updating miflora sensor took longer than the scheduled update interval 0:00:30
下午2:26 helpers/entity_platform.py (WARNING)
Update of sensor.flower1_moisture is taking over 10 seconds
下午2:26 core.py (WARNING)
Error fetching description at http://192.168.1.1:1900/igd.xml
下午2:26 ssdp.py (WARNING)
Error executing service <ServiceCall media_player.play_media: media_content_id=http://192.168.31.244:8123/api/tts_proxy/5a8c37ad79f3eca22b368f4d12f3a30a41592c54_zh_2976453205_baidu.mp3, media_content_type=music, entity_id=['media_player.mpd']>
下午2:26 components/media_player/mpd.py (ERROR)
Error executing service <ServiceCall media_player.play_media: media_content_id=http://192.168.31.244:8123/api/tts_proxy/317d04cb7cadb575151f206595f5d56ed1b3c97e_zh_2976453205_baidu.mp3, media_content_type=music, entity_id=['media_player.mpd']>
下午2:26 components/media_player/mpd.py (ERROR)
Error executing service <ServiceCall media_player.play_media: media_content_id=http://192.168.31.244:8123/api/tts_proxy/c8e6758432fda1bacc1f3d9d49dd5aa2f5e148ba_zh_2976453205_baidu.mp3, media_content_type=music, entity_id=['media_player.mpd']>
下午2:26 components/media_player/mpd.py (ERROR)
Error executing service <ServiceCall media_player.play_media: media_content_id=http://192.168.31.244:8123/api/tts_proxy/0f0e762e3df8cc7a3974138861a05f2811e444dc_zh_2976453205_baidu.mp3, media_content_type=music, entity_id=['media_player.mpd']>
下午2:26 components/media_player/mpd.py (ERROR)
Error executing service <ServiceCall media_player.play_media: media_content_id=http://192.168.31.244:8123/api/tts_proxy/2f5ef03d4a03addbd6e5ec5637ece9c605deef1a_zh_2976453205_baidu.mp3, media_content_type=music, entity_id=['media_player.mpd']>
下午2:26 components/media_player/mpd.py (ERROR)
Error executing service <ServiceCall media_player.play_media: media_content_id=http://192.168.31.244:8123/api/tts_proxy/e85cc4068e9313eed374d4cd7dc412e95e51d043_zh_2976453205_baidu.mp3, media_content_type=music, entity_id=['media_player.mpd']>
下午2:26 components/media_player/mpd.py (ERROR)
Error executing service <ServiceCall media_player.play_media: media_content_id=http://192.168.31.244:8123/api/tts_proxy/32bab90f417734c781dec5174c6251b74d70d3cd_zh_2976453205_baidu.mp3, media_content_type=music, entity_id=['media_player.mpd']>
下午2:26 components/media_player/mpd.py (ERROR)
Error executing service <ServiceCall media_player.play_media: media_content_id=http://192.168.31.244:8123/api/tts_proxy/1abf0652ab57cfd2a9c35e430a93b7ac89cde1fc_zh_2976453205_baidu.mp3, media_content_type=music, entity_id=['media_player.mpd']>
下午2:26 components/media_player/mpd.py (ERROR)
Error executing service <ServiceCall media_player.play_media: media_content_id=http://192.168.31.244:8123/api/tts_proxy/c90b1ac2913ffaa551aeb3be20fcfd6eaf052d2f_zh_2976453205_baidu.mp3, media_content_type=music, entity_id=['media_player.mpd']>
下午2:26 components/media_player/mpd.py (ERROR)
Error executing service <ServiceCall media_player.play_media: media_content_id=http://192.168.31.244:8123/api/tts_proxy/b0f640979ec3ff5e7e0ddd51b53f948c5804730a_zh_2976453205_baidu.mp3, media_content_type=music, entity_id=['media_player.mpd']>
下午2:26 components/media_player/mpd.py (ERROR)
Error executing service <ServiceCall media_player.play_media: media_content_id=http://192.168.31.244:8123/api/tts_proxy/ecd36c352e482d899050cc5aabf92c318fb1c61b_zh_2976453205_baidu.mp3, media_content_type=music, entity_id=['media_player.mpd']>
下午2:26 components/media_player/mpd.py (ERROR)
Error fetching description at 192.168.31.121
下午2:26 ssdp.py (WARNING)
Timer got out of sync. Resetting
下午2:26 core.py (ERROR)
Updating broadlink_mp1 switch took longer than the scheduled update interval 0:00:06
下午2:26 helpers/entity_platform.py (WARNING)
Timer got out of sync. Resetting
下午2:26 core.py (ERROR)
Error while setting up platform mqtt
下午2:24 components/switch/mqtt.py (ERROR)
Press the button to load the full Home Assistant log.

Log Details (ERROR)
Sun Apr 15 2018 14:26:24 GMT+0800 (中国标准时间)

Error executing service <ServiceCall media_player.play_media: media_content_id=http://192.168.31.244:8123/api/tts_proxy/5a8c37ad79f3eca22b368f4d12f3a30a41592c54_zh_2976453205_baidu.mp3, media_content_type=music, entity_id=['media_player.mpd']>
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/core.py", line 1002, in _event_to_service_call
    await service_handler.func(service_call)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/__init__.py", line 402, in async_service_handler
    yield from getattr(player, method['method'])(**params)
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/mpd.py", line 295, in play_media
    self._client.clear()
  File "/usr/lib/python3.6/site-packages/mpd.py", line 629, in decorator
    return wrapper(self, name, args, bound_decorator(self, returnValue))
  File "/usr/lib/python3.6/site-packages/mpd.py", line 254, in _execute
    return retval()
  File "/usr/lib/python3.6/site-packages/mpd.py", line 623, in decorator
    return function(self, *args, **kwargs)
  File "/usr/lib/python3.6/site-packages/mpd.py", line 379, in _fetch_nothing
    line = self._read_line()
  File "/usr/lib/python3.6/site-packages/mpd.py", line 282, in _read_line
    line = self._rfile.readline()
  File "/usr/lib/python3.6/socket.py", line 583, in readinto
    raise OSError("cannot read from timed out object")
OSError: cannot read from timed out object
回复

使用道具 举报

15

主题

656

帖子

2832

积分

金牌会员

Rank: 6Rank: 6

积分
2832
金钱
2175
HASS币
91

教程狂人

QQ
发表于 2018-4-15 23:37:17 | 显示全部楼层
支持一下
回复

使用道具 举报

219

主题

1287

帖子

7945

积分

超级版主

Rank: 8Rank: 8

积分
7945
金钱
6628
HASS币
86

教程狂人论坛风云人物突出贡献

 楼主| 发表于 2018-4-16 09:43:05 | 显示全部楼层
jyz_0501 发表于 2018-4-15 14:40
问一下超版,action里为什么没写 mediaplayer的entityid啊???这个声音从哪里出来呢??

还有一点,重启 ...

我只有一个播放器,因此可以省略。多个播放器的,自行加上吧
回复

使用道具 举报

219

主题

1287

帖子

7945

积分

超级版主

Rank: 8Rank: 8

积分
7945
金钱
6628
HASS币
86

教程狂人论坛风云人物突出贡献

 楼主| 发表于 2018-4-16 09:46:06 | 显示全部楼层
本帖最后由 lidicn 于 2018-4-16 10:04 编辑
jyz_0501 发表于 2018-4-15 14:40
问一下超版,action里为什么没写 mediaplayer的entityid啊???这个声音从哪里出来呢??

还有一点,重启 ...

我的开机会一次播放多条,后面的会覆盖前面的。但不会造成严重的问题,就忽略了。可以增加判断开机事件,开机时不播放
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-24 21:29 , Processed in 0.179839 second(s), 31 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表