Does it support "Wemo Mini Smart Plug"?
yeralin opened this issue · 5 comments
yeralin commented
Does the library support "Wemo Mini Smart Plug"?
iancmcc commented
Probably not yet, but it's a simple addition. If you've got one we can add the support pretty quickly. I don't have one yet.
…On Feb 23, 2017, 5:18 PM -0600, Daniyar Yeralin ***@***.***>, wrote:
Does the library support "Wemo Mini Smart Plug"?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub (#154), or mute the thread (https://github.com/notifications/unsubscribe-auth/AADic7CEmMPHzCoxAqWB1cn7zb_T3IRLks5rfhPMgaJpZM4MKoNz).
yeralin commented
Yep, I have one. You can explain the process to me, and I can try myself? Or if it is easier, can you add support yourself?
iancmcc commented
Sorry, I haven't forgotten, but my day job got extremely busy.
The basic idea is simply to watch logging during discovery (i.e., run `wemo -d list`) and look for this log message:
https://github.com/iancmcc/ouimeaux/blob/develop/ouimeaux/environment.py#L137
Assuming that the smart plug has its own USN, you'll get it logged, and then it's a simple matter of adding it to the checks right above that log message, probably using `klass = Switch` (if it has extra functionality, it could have its own class to support that, but Switch will most likely work).
…On Feb 28, 2017, 7:18 PM -0600, Daniyar Yeralin ***@***.***>, wrote:
@iancmcc ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.