Closed kukudemajia closed 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.
目前这个功放机的DLNA无法兼容
出现以下错误,请问怎么解决呢? 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状态 但是没有声音输出 系统运行后台日志总是出现类似上面的出错提示哦