Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xiaomi WiFi Speaker support #69

Closed
syssi opened this issue Sep 8, 2017 · 1 comment
Closed

Xiaomi WiFi Speaker support #69

syssi opened this issue Sep 8, 2017 · 1 comment

Comments

@syssi
Copy link
Collaborator

syssi commented Sep 8, 2017

-> 192.168.2.44 data= {"id":2893,"method":"get_prop","params":["umi"]}
<- 192.168.2.103 data= {"result":["{ \"DeviceName\": \"Mi Internet Speaker\", \"channel_title\": \"音箱下载\", \"current_state\": \"PLAYING\", \"hardware_version\": \"S602\", \"play_mode\": \"REPEAT_ALL\", \"track_artist\": \"Kygo&M83\", \"track_duration\": \"00:04:58\", \"track_title\": \"Wait(Remix)\", \"transport_channel\": \"PLAYLIST\" }"],"id":2893}
-> 192.168.2.44 data= {"id":2894,"method":"get_prop","params":["rel_time"]}
<- 192.168.2.103 data= {"result":["00:04:00"],"id":2894}
-> 192.168.2.44 data= {"id":2895,"method":"power","params":[]}
<- 192.168.2.103 data= {"result":"ok","id":2895}
-> 192.168.2.44 data= {"id":2896,"method":"get_prop","params":["rel_time"]}
<- 192.168.2.103 data= {"result":["00:04:02"],"id":2896}
-> 192.168.2.44 data= {"id":2897,"method":"get_prop","params":["rel_time"]}
<- 192.168.2.103 data= {"result":["00:04:03"],"id":2897}
-> 192.168.2.44 data= {"id":2898,"method":"vol_up","params":[5]}
<- 192.168.2.103 data= {"result":"ok","id":2898}
-> 192.168.2.44 data= {"id":2899,"method":"vol_down","params":[5]}
<- 192.168.2.103 data= {"result":"ok","id":2899}
-> 192.168.2.44 data= {"id":2900,"method":"previous_track","params":[]}
<- 192.168.2.103 data= {"result":"ok","id":2900}
-> 192.168.2.44 data= {"id":2901,"method":"next_track","params":[]}
<- 192.168.2.103 data= {"result":"ok","id":2901}
-> 192.168.2.44 data= {"id":2902,"method":"get_prop","params":["rel_time"]}
<- 192.168.2.103 data= {"result":["00:00:00"],"id":2902}
-> 192.168.2.44 data= {"id":2903,"method":"get_prop","params":["umi"]}
<- 192.168.2.103 data= {"result":["{ \"DeviceName\": \"Mi Internet Speaker\", \"channel_title\": \"音箱下载\", \"current_state\": \"PLAYING\", \"hardware_version\": \"S602\", \"play_mode\": \"REPEAT_ALL\", \"track_artist\": \"Kygo&M83\", \"track_duration\": \"00:04:58\", \"track_title\": \"Wait(Remix)\", \"transport_channel\": \"PLAYLIST\" }"],"id":2903}
-> 192.168.2.44 data= {"id":2904,"method":"get_prop","params":["rel_time"]}
<- 192.168.2.103 data= {"result":["00:00:08"],"id":2904}
-> 192.168.2.44 data= {"id":2905,"method":"next_channel","params":[]}
<- 192.168.2.103 data= {"result":"ok","id":2905}
-> 192.168.2.44 data= {"id":2906,"method":"get_prop","params":["rel_time"]}
<- 192.168.2.103 data= {"result":["00:00:00"],"id":2906}

Capture of @octa22. Thanks!

cp. aholstenson/miio#41.

@syssi syssi changed the title Xiaomi WiFi Speakter support Xiaomi WiFi Speaker support Sep 8, 2017
rytilahti added a commit that referenced this issue Oct 1, 2017
First steps towards fixing #69, we require feedback
from someone who owns the device to complete it.
rytilahti added a commit that referenced this issue Oct 1, 2017
First steps towards fixing #69, we require feedback
from someone who owns the device to complete it.
rytilahti added a commit that referenced this issue Oct 1, 2017
First steps towards fixing #69, we require feedback
from someone who owns the device to complete it.
rytilahti added a commit that referenced this issue Oct 2, 2017
* Initial support for wifi speakers

First steps towards fixing #69, we require feedback
from someone who owns the device to complete it.

* Fix import order to make tests pass

* add the required parameter to volume up and volume down

* Revise based on code review, add an example & some docstrings, plus fix invalid send() in status()
@rytilahti
Copy link
Owner

Closed with #291.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants