-
Notifications
You must be signed in to change notification settings - Fork 3
Doesn't work with newer HS100 switches hardware 5.26 #4
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
Comments
Please make sure to scrub personal information from any of this before submitting as the username and password are in clear text here like that from the logs and information. I will look into this as to why it wasn't finding it, there was an error in the device discovery, so I may need to add some more logging to find out what was going on. In the meantime, would you be able to do the following for me from the Homebridge Web UI Terminal: Don't use the (), just your information there. If you could post the outputs here all of that and let me know. Thanks! |
Here you go, hidden the personal info also. Appreciate your help, it looks like it can discover those devices on the network. pi@homebridge:/var/lib/homebridge $ cd kasa-python == Primary features == == Information == == Configuration == == Debug == == Front Porch Lights - HS200(US) == == Primary features == == Information == == Configuration == == Debug == == Deck Lights - HS210(US) == == Primary features == == Information == == Configuration == == Debug == == Authentication failed for device == == Hallway West - HS210(US) == == Primary features == == Information == == Configuration == == Debug == == Kitchen Fan - HS200(US) == == Primary features == == Information == == Configuration == == Debug == == Unsupported device == == Unsupported device == == Unsupported device == == Authentication failed for device == == Hallway East - HS210(US) == == Primary features == == Information == == Configuration == == Debug == == Garage Lights - HS200(US) == == Primary features == == Information == == Configuration == == Debug == Found 9 devices == Primary features == == Information == == Configuration == == Debug == == Front Porch Lights - HS200(US) == == Primary features == == Information == == Configuration == == Debug == == Hallway East - HS210(US) == == Primary features == == Information == == Configuration == == Debug == == Kitchen Fan - HS200(US) == == Primary features == == Information == == Configuration == == Debug == == Authentication failed for device == == Authentication failed for device == == Deck Lights - HS210(US) == == Primary features == == Information == == Configuration == == Debug == == Hallway West - HS210(US) == == Primary features == == Information == == Configuration == == Debug == == Authentication failed for device == == Unsupported device == == Unsupported device == == Unsupported device == == Garage Lights - HS200(US) == == Primary features == == Information == == Configuration == == Debug == Found 10 devices |
Ok, so it's finding devices. That's the good part. It looks like the three device ip's 100, 103, and 105 are not supported by the python-kasa library. Unfortunately there nothing I can do until they do support them. I can't wait try to get some more information from you and see if we can submit the device for support and that might speed things up. 3 device ip's 158, 163, and 164 are still failing authentication with the credentials provided, going to see if there's a better way or different way to pass credentials for authentication. Will let you know what I need for the device submission and when I have another version to test for authentication. |
@nikhilsharmac can you try v2.5.8? |
@nikhilsharmac Ok, what about the plugin logs? Can you scrub any personal information from them and post them as well, the terminal information shows me that there's an authentication error, now I need to figure out why in the plugin. |
@nikhilsharmac if you have the ability to set up a test machine, you will need to make sure that git and python are installed and run the following commands to get a json file to upload to the developer of the plugin for your device that is having the authentication errors, 163, 164, or 158: You can do this all from the WSL on a windows machine if you have it as well. Please let me know if you need assistance with this. Upload the json file here after you get it if possible or you should be able to copy and paste the information from the WSL Terminal here as well. You should not do this from the Homebridge Web UI Terminal, you cannot install things through that terminal so it would not work either way. |
homebridge-kasa-python.log (1).txt |
@nikhilsharmac Can you run the following commands from the Homebridge Web UI Terminal: Can you post that output here? |
pi@homebridge:/var/lib/homebridge $ cd kasa-python |
@nikhilsharmac Ok, let's try the following from the Web UI: Did you put the username and password in quotes last time or just plain? I don't think the other commands will work in Windows, I think it has to be a Linux machine, Ubuntu or Debian |
Just plain. entering the one you sent above rn, i put them in quotes next time That command is producing a very long output that it won't let me scroll up all the way |
We can setup a team viewer session if that would help debugging this issue better. |
I can't right now but I have time tomorrow. |
Okay, I really appreciate your help, let me know when at your earliest convenience. |
@nikhilsharmac do you have discord? We could communicate there quicker for trying to get this issue resolved during a remote connection. |
I've submitted an issue and pull request to the python-kasa library for the issues we're still having with the last three devices. I'll update you once I know more. |
@nikhilsharmac can you clear your Homebridge log and restart Homebridge? I'd like to get a clean log of the plug-in for the issue with the library. When getting the log, open the plug-in logs, let it finish discovering devices, then close the plug-in logs, then open them again and download. |
@nikhilsharmac going to make the changes from our discussion earlier and update the issue here once I have something to test. Thanks! |
@nikhilsharmac v2.6.0 is out now, please let me know if all 10 devices are found now. |
Updated it. Those three are still missing from HomeKit app and homebridge ui |
@nikhilsharmac Can you post a log after restarting? |
@nikhilsharmac Ok, it's an issue with the deviceId on my end, it finds and connects correctly now though. Just doesn't populate yet. I'll push another update later today. |
@nikhilsharmac please give v2.6.2 a shot and see if you can control access the device and control it in Homebridge and Home App and in the Kasa/Tapo App. |
Try v2.6.3 and let me know. |
Give v2.6.8 a shot and if you're good, close out the issue please. |
All devices are working now with the new update. |
I recently bought some more HS100 switches from amazon, I have 3 more which I bought earlier this year which work perfectly fine, the new ones with the new hardware version are not discoverable and can't be detected.
[Logs:]
Plugin Config:
{
"name": "KasaPython",
"enableCredentials": true,
"username": "",
"password": "",
"powerStrip": false,
"platform": "KasaPython"
}
Environment:
The text was updated successfully, but these errors were encountered: