-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
HS100 Hardware V4.1 Firmware 1.1.0 - No Detection Even When IP Manually Specified #154
Comments
Same here. Took quite some time to understand what was happening - half my devices had automatically updated their firmware (and were no longer working) and the others were running as normal. Updated the others and now nothing can be switched on/off, however, at least its all consistent! |
My older hardware version devices do not have firmware updates so hopefully they will continue to function. Something has changed under the hood, hopefully it is resolvable. Suspect some packet sniffing in the future. If I get time I will try and what is sent between the different devices. At least it looks like we know where the problem is located! |
Can you confirm you're using v6.1.0 of the plugin? Where did you purchase your plugs? I may need to get one... |
Yep confirmed 6.1.0. They were purchased from Amazon UK a while back. If needs be I can pop one in the post to you but will need to check postage costs to the USA. If it is not rude to ask how did you reverse engineer the protocol, wireshark packet watching? I can see if I can capture data for you at the very least. |
@ghostseven, it may be helpful if you can install tplink-smarthome-api and run some of the commands to see if your devices respond to them. If I can get some basic output from your device I can use my tplink-smarthome-simulator project to mimic a real device and see how the kasa app communicates with it. For example: Install:
Discovery: (this sends out a UDP broadcast that devices are supposed to respond to)
Do you see your devices responding? If not, try setting a more specific broadcast address (perhaps
If you get any results from getSysInfo that would be most helpful, please post your results!
|
@ghostseven It's been years since I used wireshark for this, but someone made a dissector to decrypt the (very simple) encryption. https://github.com/softScheck/tplink-smartplug Hopefully TP-Link didn't change it in the new firmware! |
6.1.0 confirmed for me also |
Looks like port 9999 is no longer open
|
And next bit of investigation, only port 80 appears open
|
@Justanotherhomosapien Try it on port 80:
|
@Justanotherhomosapien And try nmap with UDP |
I get timeouts when trying this against any of the plugs in question. |
Result for UDP nmap scan blake@nash:~$ sudo nmap -p0-65535 192.168.0.154 -sU Nmap done: 1 IP address (1 host up) scanned in 35.37 seconds Result for TCP nmap scan blake@nash:~$ sudo nmap -p0-65535 192.168.0.154 -sT Nmap done: 1 IP address (1 host up) scanned in 30.08 seconds So we do have 20002 on UDP open as well |
Timeouts here also I'm afraid.
Nmap UDP results
|
So some Wireshark analysis (packet capture attached). A pretty massive change to the way that the switches have previously operated! |
I am going to sit down today with wireshark and see what I can find out. May not be until later though |
I am getting nonsensical wireshark traffic from both the old (working) and newer plugs, I am fairly sure it is my setup as even with old working plugs I get nothing on port 9999. I am going to try and setup a raspberry pi as a wireless AP and direct cap from there. This will take a little longer though. |
I have opened a ticket here with wireshark PCAP data, still does not make a lot of sense to me. |
Thank you! |
@Justanotherhomosapien not sure if that file you attached it right, its only 300bytes |
There is some wireshark data on the post I linked if that helps. |
Thats is really interesting, I will read in more depth, I do wonder why I did not see any UDP traffic in my capture though. I wonder if I am doing something wrong. |
That really was it - a single UDP broadcast was all that I could find happening. I see that @ghostseven has uploaded what is probably a better capture file - I was going to download that to compare with my results. |
Just wanted to report the same issue, but didn't see the point of opening a new thread. The plug on V1.0.3 continues to work on HomeBridge. The rest are undetectable. |
Commenting to confirm - same here. |
Is anybody in in North America having this issue? None of my devices have a firmware upgrade, would like to see where I can acquire a device with newer firmware. |
Not sure how to help with that part - even if I send you a UK model, I'd also need to send a UK power outlet & you'd have to find 240V to hook it up to :( |
I can't offer much, other then remote diagnostics if you need anything. I have 3 on the new firmware and 1 on the old. |
Similar discussion over at Home Assistant home-assistant/core#43088 |
I’m seeing the same. Hardware v1 firmware 1.2.5 working fine. Hardware 4.1 on 1.1.... nothing. No response to getSysInfo on the ip’s of the v4.1 models. Also in the UK. If there are any tests I can run I’m very happy to help. |
Same here too. Just stopped working and the HW is 4.1 and Firmware 1.1.0. My other 4 plugs are fine |
My three model HS100, hardware version 1.0, with firmware 1.2.6 were all not working yesterday with Home Assistant, but this morning, all started working again. Port 9999 (abyss) was open yesterday on each and is the same still today. I made no changes over night, power cycled the HS100, and had tried rebooting Home Assistant several times yesterday with no change. They each worked normally yesterday from the Kasa app. |
Apparently TP Link closed the local port 9999 and now force all traffic to go via the encrypted webserver on port 80. There seems to be some work going on here to find a workaround if that helps: python-kasa/python-kasa#117 |
I’m in the UK with a (now almost useless) 1.1.0 plug. I’d be happy to help with any testing or debugging you need |
FWIW, I'm getting the same failure errors in my US-based HS200 and HS210 wall switches. All updated to to 1.5.7 (2.0 hardware) and nothing shows up in homebridge or HOOBs using any version of the tplink plugin. |
Are we any closer on sorting these? I've got a bunch of lights and devices that aren't usable now! Hope we can get somewhere soon! <3 |
Yes progress is being made with https://github.com/python-kasa/python-kasa There is a proof of concept working version that is being tested and will be integrated into the main library. When that is complete and functional I suspect that this will be used as a reference for this project. Edit: I originally incorrectly stated that python-kasa was what this project was based on and that is totally incorrect. My apologies. |
Thanks for the update ! |
This plugin is not related to and does not use python-kasa. However I will be using what people have learned to try to add support for the new firmware since I am unable to get a hold of a device with the new firmware myself. |
@plasticrake where are you based? Also if you have HW version 4.1 HS110 the latest firmware from the KASA app will give you what you want. |
@plasticrake my apologies, sorry I made a bad assumption! Sorry to state your plugin was based on this! |
@plasticrake I have a spare plug that I can send your way if it helps with the integration... |
Issue is affecting me as well. It's a damn shame that Kasa made breaking changes to their API. Should've come out with a new SKU... I'm gonna sell all my Kasa devices--already purchased some Meross ones to replace them. |
Got hit with this issue, after my plug auto updated to firmware 1.1. Do note that Kasa can retroactively flash back older firmware, on request. |
@plasticrake let me know if you need any help. Happy to ship a hs2xxx switch or perform diagnostic steps on my end if you need. I have about 50 Kasa switches installed. |
Is this a lost cause now? Time to jump ship from the TP Links? |
This issue is due to TP-LINK firmware update (ver 1.1.0). This only impacts HS100/HS110 (UK) Hardware Ver 4 variants. Essentially, as others above have already discovered they have blocked access to the local api port. There is/was a temporary beta firmware available on request (ver1.1.1) Link here on the Home Assistant forum which has some good info Issue thread here (specifically wrt Home Assistant but it's the same root cause) Link to TP-LINK announcement about beta firmware 1.1.1 |
Firstly sorry to post here about a different plugin, if this is not wanted I can remove it. I have as of today, got a very hacky method (it calls command line methods of kasa) to get these plugs (HS100, HS110 HW:4.1 SW:1.1.0) working on homebridge. It is based on the work of @SimonWilkinson, who has done some fantastic work with the python-kasa repository. None of this is on a proper repo yet and it requires some manual install of a forked version of python-kasa and my plugin for homebridge. You can look here https://github.com/ghostseven/homebridge-hs-plug for the plugin and here https://github.com/ghostseven/python-kasa for the fork of python-kasa. There are no full instructions yet but feel free to open issues on my repo to ask questions. I will try and write something up soon(ish). |
Thanks @ghostseven. That's very good to hear. I just grabbed the code from the links and will take a look later on. BTW: I appears the HS100/HS110 HW: 4.1 are now on the way out. Retailers here in Ireland are being told that are entering 'discontinued' status. Appears TP-LINK are replacing them with the Tapo branded plugs instead. |
@ghostseven Hi Blake, When you have time I'd love to see the instructions for this. I cloned your repo (and Simon's but can quite figure out how to merge your changes into the python-kasa project. |
Sure, if you clone my fork of python-Kasa that should have the changes. (It was broken due to hs100 plugs not having energy meters).
I will try and write some instructions up soon :)
Thanks
Blake
…On 27 Feb 2021, 22:05 +0000, cliffordm ***@***.***>, wrote:
@ghostseven Hi Blake, When you have time I'd love to see the instructions for this. I cloned your repo (and Simon's but can quite figure out how to merge your changes into the python-kasa project.
Thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@ghostseven Hi Blake - good news I got this working! Many thanks! So, for the benefit of anybody else the arrives in the thread, I had one of my TP-LINK HS100(UK) Ver4 plugs that had been upgraded to firmware 1.1.0 (this version of the firmware shut off port 9999 and basically hoses local control of the plug - except via the official TP-LINK Kasa app. Using above instructs from @ghostseven I've once again able to gain control locally. Most importantly via command line using the python-kasa app. Thanks again Blake. You're about to make a lot of people very happy over on the Home Assistance forums too :) |
That is great news! I am sitting down today (currently in progress) writing up a more complete guide (it will be on GitHub) and getting the plug-in published on npm. That should make it all a bit easier!
Thanks
Blake
…On 28 Feb 2021, 14:07 +0000, cliffordm ***@***.***>, wrote:
@ghostseven Hi Blake - good news I got this working! Many thanks!
So, for the benefit of anybody else the arrives in the thread, I had one of my TP-LINK HS100(UK) Ver4 plugs that had been upgraded to firmware 1.1.0 (this version of the firmware shut off port 9999 and basically hoses local control of the plug - except via the official TP-LINK Kasa app. Using above instructs from @ghostseven - I've once again able to locally.
Most importantly via command line using the python-kasa app.
I've verified I can retrieve state from my device as well as toggle it on or off as needed.
Thanks again Blake. Your about to make a lot of people very happy over on the Home Assistance forums too :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@cliffordm I have published the plugin now and there are better instructions. I hope this helps! |
|
Maybe a duplication or similar to #153
All HS100 Hardware V4.1 devices suddenly stopped working (work fine from Kassa App). Have reset them, have tried different versions of plug-in and config settings. Even manually specified devices. I have also reset homebridge. They now do not discover or show up.
I think this is possibly due to a firmware update from TP Link. I have a selection of HS100 devices some on hardware 2.0 and hardware 2.1 (these are all working).
Expected Behavior
The device appear in discovery or when manually specified
Current Behavior
Device does not appear
Steps to Reproduce (for bugs)
Setup a HS100 with hardware V4.1 and Firmware 1.1.0 device will not appear.
Versions
node --version
v12.19.0
homebridge --version
1.2.3
Linux nash 5.4.60-1-pve Error loading plugin homebridge-hs100 #1 SMP PVE 5.4.60-1 (Mon, 31 Aug 2020 10:36:22 +0200) x86_64 x86_64 x86_64 GNU/Linux
Configuration
Homebridge Log / Command Output
The text was updated successfully, but these errors were encountered: