已抓包到命令,但怎么接入homeassistant就没头绪,求大神帮助。一个HAME wifi音乐路由器,有APP,以下信息就是从APP抓取的,频道1-6:key1-6(1.流行音乐 2.欧美音乐 3.轻音乐 4.......) cmd=15应该是播放命令,每次选择一个频道播放,跟着就自动GET cmd=15。
GET [url]http://192.168.1.128:1064/control?cmd=28&key=2[/url]
200 OK (text/html)
GET [url]http://192.168.1.128:1064/control?cmd=15[/url]
200 OK ()
GET /control?cmd=28&key=1 HTTP/1.1
Host: 192.168.1.128:1064
Connection: keep-alive
Accept: */*
User-Agent: SndPod/7.1.7 (iPhone; iOS 12.1.2; Scale/3.00)
Accept-Language: zh-Hans-CN;q=1, en-CN;q=0.9
Accept-Encoding: gzip, deflate
Connection: keep-alive
HTTP/1.1 200 OK
Date: Fri, 11 Jan 2019 03:13:24 GMT
Content-Language: en
Content-Length: 2
Content-Type: text/html; charset="utf-8"
Server: UPnP/1.0 DLNADOC/1.50 Platinum/0.6.9.1
GET /control?cmd=15 HTTP/1.1
Host: 192.168.1.128:1064
Connection: keep-alive
Accept: */*
User-Agent: SndPod/7.1.7 (iPhone; iOS 12.1.2; Scale/3.00)
Accept-Language: zh-Hans-CN;q=1, en-CN;q=0.9
Accept-Encoding: gzip, deflate
Connection: keep-alive
|