shaonianzhentan / cloud_music Goto Github PK
View Code? Open in Web Editor NEWThis project forked from maomao1996/vue-mmplayer
在HA里使用的网易云音乐播放器
Home Page: https://gitee.com/shaonianzhentan/ha_cloud_music
License: MIT License
This project forked from maomao1996/vue-mmplayer
在HA里使用的网易云音乐播放器
Home Page: https://gitee.com/shaonianzhentan/ha_cloud_music
License: MIT License
ha环境:
docker版 105.5
python版108.x
首先是切换播放器比较难,都是一闪而过需要多点几次才能选中。
然后是播放一曲之后就不播放了,不管是dlna还是vlc。
log里会循环出现这个错误,一直循环不播放也会报。
2020-04-30 17:05:45 ERROR (SyncWorker_8) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/ha_cloud_music/media_player.py", line 310, in interval
if ':' in _media_position:
TypeError: argument of type 'int' is not iterable
一首播放完了自动停止之后重新点击下一首会出现如下报错,但是正常会播放。
2020-04-30 17:26:17 ERROR (MainThread) [homeassistant.helpers.service] Service async_media_stop for media_player.dlna_m_red incorrectly returns a coroutine object. Await result instead in service handler. Report bug to integration author.
2020-04-30 17:26:18 ERROR (MainThread) [homeassistant.helpers.service] Service async_play_media for media_player.dlna_m_red incorrectly returns a coroutine object. Await result instead in service handler. Report bug to integration author.
云音乐版本4.6出现以下问题:
1、播放歌曲无声,但播放电台正常
2、拉动进度条提示错误,如下:
调用服务 media_player/media_seek 失败。expected float for dictionary value@data['seek_position']
调用服务 media_player/volume_set 失败。expected float for dictionary value@data['volume_level']
请问大佬这个是hassos系统问题还是插件有问题
感谢更新维护的这个项目,之前HA没有网页播放器,我尝试安装,虽然曲折,最后成功,各种功能十分牛*。
现在更换设备,再次安装时发现报错,遂来反馈,也可能是我操作问题,望指点。
操作环境:
ubuntu18.04
docker环境安装,具体可看图片。
https://github.com/Tao173/Photos/blob/master/3.jpg
网易的API也是docker环境安装,命令:
docker run -d -p 3000:3000 --name netease_cloud_music_api -e http_proxy= -e https_proxy= -e no_proxy= -e HTTP_PROXY= -e HTTPS_PROXY= -e NO_PROXY= binaryify/netease_cloud_music_api
安装完成报错,找不到切换播放器的接口。
https://github.com/Tao173/Photos/blob/master/2.png
https://github.com/Tao173/Photos/blob/master/1.png
具体HA日志:
https://github.com/Tao173/Photos/blob/master/ha_cloud_music-bug
再次感谢这个项目。
如题,我想在notered中,让我的mpd设备播放本地的某一首歌曲
qq音乐源的音乐无法通过dlna播放,但是在网页播放器有声音,migu的没有问题
环境:群晖docker Home Assistant 0.110.7,DLNA插件是虫子的,发声设备是斐讯R1。
一首歌播放完切换下一首时会发生各种奇怪的问题,有的时候播放一秒左右就没声音但是进度条在走,有的时候播放一秒左右直接暂停,点了播放没反应或者两个声音一前一后同时播放。
大佬可以写个清理tts临时文件的服务么?
感谢老哥的优秀项目,一直在关注和使用,最近看6.3升级很多,
但是只有选择master才能更新,什么时候可以发个Releases呀,
另外有一个问题,我是用的Xiaomi Miot Auto的项目接入的小爱音箱,HA服务里面调用tts没有问题,
自动化播放指定文本也可以使用,但是到云音乐播放选择成小爱的时候,他就无响应,
主要表现为:云音乐播放条进度不动,音乐时长为0,但是切换为网页播放器和mpd播放器之后,一切正常,进度条和音乐时长都出现了。
日志没有报错项目。。。
配置文件如下:
default_config:
tts:
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
media_player:
recorder:
exclude:
entities:
- media_player.yun_yin_le
请问网页播放器是怎么使用,是浏览器直接播放?
大佬,集成后广播可以播放,TTS语音正常,就是没法播放网易云api的歌曲,全部都是走进度条,没有声音出来。网易云api这边控制台一切正常,这是怎么回事?望搭救
如题,还没深入排除问题
Error while setting up ha_cloud_music platform for media_player
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/ha_cloud_music/media_player.py", line 125, in setup_platform
loop.run_until_complete(mp.api_music.login())
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 587, in run_until_complete
return future.result()
File "/config/custom_components/ha_cloud_music/api_music.py", line 32, in login
if res['code'] == 200:
TypeError: 'NoneType' object is not subscriptable
苹果safari浏览器和苹果app 点击播放器后 设置 语音 广播 最爱 这几个按钮点击不了
需要谷歌浏览器才可以点击
作者你好!
运行无错误,也能够正常播放uid收藏的音乐,但是:~~~
选择播放源“网页播放器”没声音?
另外选择dlna发现的播放源也没有声音?
不知是我配置的不对还是缺少了什么?
如题
上海公交怎么没了,docker下的ha没有vlc怎么办
不是播放器的问题,是网易云最近不知道加了什么,所有外链的歌单,包括个人的,都只能显示前10首音乐而已。我设置网页页面直接打开歌单地址。以前可以全部都看到。
现在不行了。
也是只有前10首,提示查看更多内容,请下载客户端,希望大神有空能解决一下!
播放音乐显示无法找到该首歌曲的链接,自动播放下一首。但是下一首依然无法播放
media_player:
搜索 我的歌单 登录都用不了 只有FM电台可以听
问题找到了
Platform error: media_player
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/config.py", line 762, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/loader.py", line 232, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/srv/homeassistant/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/homeassistant/.homeassistant/custom_components/ha_cloud_music/media_player.py", line 28, in
from .api_tts import ApiTTS
File "/home/homeassistant/.homeassistant/custom_components/ha_cloud_music/api_tts.py", line 2, in
from mutagen.mp3 import MP3
File "/srv/homeassistant/lib/python3.7/site-packages/mutagen/mp3/init.py", line 17, in
from mutagen.id3 import ID3FileType, delete
File "/srv/homeassistant/lib/python3.7/site-packages/mutagen/id3/init.py", line 33, in
from ._file import ID3, ID3FileType, delete, ID3v1SaveOptions
File "/srv/homeassistant/lib/python3.7/site-packages/mutagen/id3/_file.py", line 20, in
from ._tags import ID3Tags, ID3Header, ID3SaveConfig
File "/srv/homeassistant/lib/python3.7/site-packages/mutagen/id3/_tags.py", line 15, in
from mutagen._compat import PY3, itervalues, izip_longest
ImportError: cannot import name 'izip_longest' from 'mutagen._compat' (/srv/homeassistant/lib/python3.7/site-packages/mutagen/_compat.py)
大佬,能否支持播放mv音乐
日志
File "/home/pi/homeassistant/bin/hass", line 11, in
sys.exit(main())
File "/home/pi/homeassistant/lib/python3.6/site-packages/homeassistant/main.py", line 399, in main
exit_code = asyncio_run(setup_and_run_hass(config_dir, args))
File "/home/pi/homeassistant/lib/python3.6/site-packages/homeassistant/util/async_.py", line 27, in asyncio_run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.6/asyncio/base_events.py", line 471, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.6/asyncio/base_events.py", line 438, in run_forever
self._run_once()
File "/usr/local/lib/python3.6/asyncio/base_events.py", line 1415, in _run_once
event_list = self._selector.select(timeout)
File "/usr/local/lib/python3.6/selectors.py", line 445, in select
fd_event_list = self._epoll.poll(timeout, max_ev)
media_player:
- platform: vlc_telnet
name: VLC Player
host: 10.0.0.13
port: 4212
password: myvlc
- platform: ha_cloud_music
api_url: http://localhost:3000
ha 0.109.6支持最新版本云音乐吗 老大
0.9.3安装没有左侧栏进去操作
然后就会出现homeassistant无法通过web访问的情况
想要更换一个播放器 ios浏览器点设置又没反应了
Hassio0.103.2已安装Vlc和Kodi,但是插件依然报错检测到HA中没有安装播放器。请问在configuration.yaml中的media_player项除了ha_cloud_music还要把系统播放器加进去吗?
现在有段时间可以有段时间又失效
添加到HomeKit里提示不合规的配件
Home Assistant 2021.9.7
HA是天天升级,升级了云音乐就没办法使用
如题
大佬,怎么调用小爱音箱来播发
HA的官方安卓APP的下载地址为https://github.com/home-assistant/android/releases
我从上述地址下载安装了APP后,在APP里点击云音乐,详情页里没有显示,点击右上角的齿轮进去后,设置里提示“该实体(”media_player.yun_in_le")没有唯一的ID,因此无法由UI管理其设置。…………
这个问题可以解决吗?
error.....错误信息如下:
`2020-10-03 01:33:04 ERROR (MainThread) [homeassistant.components.media_player] Error while setting up ha_cloud_music platform for media_player
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 193, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/ha_cloud_music/media_player.py", line 65, in setup_platform
api_config = ApiConfig(hass.config.path(".shaonianzhentan/ha_cloud_music"))
File "/config/custom_components/ha_cloud_music/api_config.py", line 17, in init
os.mkdir(_dir)
FileNotFoundError: [Errno 2] No such file or directory: '/config/.shaonianzhentan/ha_cloud_music'`
Logger: frontend.js.latest.202011112
Source: components/system_log/init.py:193
First occurred: 上午12:05:45 (14 occurrences)
Last logged: 下午5:50:33
https://3#######打吗o.co/ha_cloud_music-web/card/ha_cloud_music.js?v=4.4:10:32 TypeError: null is not an object (evaluating 'this.hass.states[this.entity_id]')
https://3########打吗o.co/ha_cloud_music-web/card/ha_cloud_music.js?v=4.4:10:32 Uncaught TypeError: Cannot read property 'media_player.yun_yin_le' of null
:0:0 Script error.
是我设置的问题吗?还是目前只能用MPD?
请求添加API提供者地址。
2月 04 06:19:19 raspberrypi hass[539]: 2021-02-04 06:19:19 ERROR (MainThread) [aiohttp.server] Error handling request
2月 04 06:19:19 raspberrypi hass[539]: Traceback (most recent call last):
2月 04 06:19:19 raspberrypi hass[539]: File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
2月 04 06:19:19 raspberrypi hass[539]: resp = await self._request_handler(request)
2月 04 06:19:19 raspberrypi hass[539]: File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
2月 04 06:19:19 raspberrypi hass[539]: resp = await handler(request)
2月 04 06:19:19 raspberrypi hass[539]: File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 118, in impl
2月 04 06:19:19 raspberrypi hass[539]: return await handler(request)
2月 04 06:19:19 raspberrypi hass[539]: File "/usr/local/lib/python3.8/site-packages/homeassistant/components/http/security_filter.py", line 56, in security_filter_middleware
2月 04 06:19:19 raspberrypi hass[539]: return await handler(request)
2月 04 06:19:19 raspberrypi hass[539]: File "/usr/local/lib/python3.8/site-packages/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
2月 04 06:19:19 raspberrypi hass[539]: return await handler(request)
2月 04 06:19:19 raspberrypi hass[539]: File "/usr/local/lib/python3.8/site-packages/homeassistant/components/http/ban.py", line 72, in ban_middleware
2月 04 06:19:19 raspberrypi hass[539]: return await handler(request)
2月 04 06:19:19 raspberrypi hass[539]: File "/usr/local/lib/python3.8/site-packages/homeassistant/components/http/auth.py", line 127, in auth_middleware
2月 04 06:19:19 raspberrypi hass[539]: return await handler(request)
2月 04 06:19:19 raspberrypi hass[539]: File "/usr/local/lib/python3.8/site-packages/homeassistant/components/http/view.py", line 129, in handle
2月 04 06:19:19 raspberrypi hass[539]: result = await result
2月 04 06:19:19 raspberrypi hass[539]: File "/home/pi/.homeassistant/custom_components/ha_cloud_music/api_view.py", line 60, in post
2月 04 06:19:19 raspberrypi hass[539]: _result = await mp.api_music.search_music(_name)
2月 04 06:19:19 raspberrypi hass[539]: File "/home/pi/.homeassistant/custom_components/ha_cloud_music/api_music.py", line 165, in search_music
2月 04 06:19:19 raspberrypi hass[539]: if obj['code'] == 200:
2月 04 06:19:19 raspberrypi hass[539]: TypeError: 'NoneType' object is not subscriptable
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.