async def play_by_music_url(
self, deviceId, url, _type=2, audio_id="1582971365183456177", id="355454500"
):
_LOGGER.debug("play_by_music_url url:%s, type:%d", url, _type)
audio_type = ""
if _type == 1:
# If set to MUSIC, the light will be on
audio_type = "MUSIC"
music = {
"payload": {
"audio_type": audio_type,
"audio_items": [
https://github.com/yihong0618/MiService/blob/57fdc6f18d214c3a6e09b684b80a81f00066ebf6/miservice/minaservice.py#L145
此处的type为什么设置为隐藏参数呢
按照默认情况,payload中的
audio_type
会为空。 实际测试中L06A
音箱在audio_type
设置为"MUSIC"
时可以在小爱音箱app中显示播放控件,为空时不显示。