charleyzhu / HomeAssistant_Components

Apache License 2.0
103 stars 26 forks source link

DLNA运行中的错误提示,劳烦帮忙看看,谢谢 #3

Closed kukudemajia closed 7 years ago

kukudemajia commented 7 years ago

出现以下错误,请问怎么解决呢? 2017-08-08 18:19:35 ERROR (MainThread) [homeassistant.helpers.entity] Update for media_player.5fbeacdc86e246f7942d7c962294d468 fails Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/homeassistant/helpers/entity.py", line 225, in async_update_ha_state yield from self.hass.async_add_job(self.update) File "/usr/lib/python3.5/asyncio/futures.py", line 380, in iter yield self # This tells Task to wait for completion. File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup future.result() File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result raise self._exception File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run result = self.fn(*self.args, **self.kwargs) File "/root/.homeassistant/custom_components/media_player/dlna.py", line 71, in update resp = self._device.GetTransportInfo() File "/root/.homeassistant/custom_components/media_player/dlna.py", line 304, in GetTransportInfo ["CurrentTransportState", "CurrentTransportStatus", "CurrentSpeed"]) File "/root/.homeassistant/custom_components/media_player/dlna.py", line 423, in sendRequest respXml = etree.fromstring(respText) File "/usr/lib/python3.5/xml/etree/ElementTree.py", line 1345, in XML return parser.close() File "", line None xml.etree.ElementTree.ParseError: no element found: line 1, column 0

识别出三个设备,其中有小米电视机2,还有安桥功放机 我的小米电视机可以TTS播放没问题 我现在是想直接连接我的安桥功放机输出声音,但是不成功,会自动切换到DLNA状态 但是没有声音输出 系统运行后台日志总是出现类似上面的出错提示哦

charleyzhu commented 7 years ago

兼容性问题,我只能说适配了一部分设备,写代码的时候家里只有小米和叮咚音响

kukudemajia commented 7 years ago

能用其实已经不错了,谢谢了 我附上我的安桥功放机ht-r758的 http://192.168.0.192:8888/upnp_descriptor_0 This XML file does not appear to have any style information associated with it. The document tree is shown below.

1 0 urn:schemas-upnp-org:device:MediaRenderer:1 HT-R758 ONKYO http://www.onkyo.com AV Receiver HT-R758 HT-R758 http://www.onkyo.com uuid:021c7600-6c76-0074-721e-00686c740470 urn:schemas-upnp-org:service:RenderingControl:1 urn:upnp-org:serviceId:RenderingControl /upnp_control_0 /upnp_event_0 /scpd/RenderingControl_1 urn:schemas-upnp-org:service:ConnectionManager:1 urn:upnp-org:serviceId:ConnectionManager /upnp_control_1 /upnp_event_1 /scpd/ConnectionManager_1 urn:schemas-upnp-org:service:AVTransport:1 urn:upnp-org:serviceId:AVTransport /upnp_control_2 /upnp_event_2 /scpd/AVTransport_1 http://192.168.0.192/ VEN_1666&DEV_1200&REV_01 VEN_0033&DEV_000C&REV_01 DMR-1.50 Multimedia.DMR MS_DigitalMediaDeviceClass_DMR_V001 image/jpeg 120 120 24 http://192.168.0.192/icon/AVR_120.jpg image/jpeg 48 48 24 http://192.168.0.192/icon/AVR_048.jpg image/jpeg 32 32 24 http://192.168.0.192/icon/AVR_032.jpg image/png 120 120 24 http://192.168.0.192/icon/AVR_120.png image/png 48 48 24 http://192.168.0.192/icon/AVR_048.png image/png 32 32 24 http://192.168.0.192/icon/AVR_032.png MediaDevices 0 1
kukudemajia commented 7 years ago

目前这个功放机的DLNA无法兼容