-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Does not support EP40: Outside outlet device with two switched outlets. #11
Comments
A generous donor is providing an EP40 for testing and development. Thanks for the documentation and pull requests, we'll get it working one way or another. |
Received the EP40. Here is a sample of a command to turn on outlet 1. {
"context" : {
"child_ids" : [ "800648C61B22DD1DE8AFD8858B29192022087E7200" ],
"source" : "46a4d58b-6279-432c-ae23-e115c2db8354"
},
"system" : {
"set_relay_state" : {
"state" : 1
}
}
} Outlet 2 is the same but uses the other child ID from the {
"system" : {
"get_sysinfo" : {
"alias" : "EP40",
"child_num" : 2,
"children" : [
{
"alias" : "Plug 1",
"id" : "800648C61B22DD1DE8AFD8858B29192022087E7200",
"next_action" : {
"type" : -1
},
"on_time" : 0,
"state" : 0
},
{
"alias" : "hv",
"id" : "800648C61B22DD1DE8AFD8858B29192022087E7201",
"next_action" : {
"type" : -1
},
"on_time" : 0,
"state" : 0
}
],
"deviceId" : "800648C61B22DD1DE8AFD8858B29192022087E72",
"err_code" : 0,
"feature" : "TIM",
"hwId" : "B3B7B05B758C3EDA8F9C69FECDBA2111",
"hw_ver" : "1.0",
"latitude_i" : 373548,
"led_off" : 0,
"longitude_i" : -1219823,
"mac" : "F0:A7:31:C6:48:65",
"mic_type" : "IOT.SMARTPLUGSWITCH",
"model" : "EP40(US)",
"ntc_state" : 0,
"oemId" : "2F9215F1DCBF7DC17F80E2B0CACD47FC",
"rssi" : -53,
"status" : "new",
"sw_ver" : "1.0.3 Build 220803 Rel.172301",
"updating" : 0
}
}
} Renaming an individual outlet: {
"context": {
"child_ids": [
"800648C61B22DD1DE8AFD8858B29192022087E7201"
],
"source": "46a4d58b-6279-432c-ae23-e115c2db8354"
},
"system": {
"set_dev_alias": {
"alias": "plug2"
}
}
} |
…utlets [working, partially tested, needs XML documentation]
This library is working with the EP40 on the The high-level API is backwards compatible with version 1.0 of this library, so I plan to release this as 1.1. A new Example usage: using IKasaMultiOutlet ep40 = new KasaMultiOutlet("192.168.1.100");
ep40.System.SetOutletOn(0, true); // turn on the first outlet The readme documentation has been updated, but more XML documentation is required in the C# files. I have tested the system commands successfully, but not the timer or schedule commands yet. I also updated the device firmware from factory version 1.0.3 to the latest version 1.0.4 and haven't noticed any differences yet. |
Added all XML documentation, published as prerelease version |
Thanks for this repo! It does not seem to work with the outside plug EP40 with two switches. Refer to the draft pull request to see my attempt to get this to work. Documentation found https://community.home-assistant.io/t/tp-link-kasa-kp400-2-outlet-support/113135/9 suggests adding a 'context' node like:
{"system":{"set_relay_state":{"state":0}},"context":{"child_ids":["000000000000000000000000"]}}.
This did not seem to work for me, however it may be close to the correct solution.
Draft PR: #10
I have not tried lostmsu's power strip solution in from PR #3.
The text was updated successfully, but these errors were encountered: