-
Notifications
You must be signed in to change notification settings - Fork 9
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
Firmware download fails - IndexError: list index out of range #23
Comments
Same issue here, did anyone find a solution for this or is it the end of the road for this amazing project? |
Also seeing the same thing, seems to return a 500 response |
This seems to be because SureFlap are returning a |
Thanks @plambrechtsen, really appreciate your effort to try to bring this amazing project back to life. I guess getting your hands in one of these hubs is the best idea as you can play around with it and see what the new firmware is doing, but just in case if there is anything we can do to help just shout. |
Last week sureflap decided to block the surepy library by its user agent and bricked everyones integrations - I think that has renewed a desire for local control (it has for me at least!). Hopefully it can be fixed. |
I did not notice an issue in my PHL integration - or are you talking about their own Sure Pet app (another shiny outage for all their users)? |
Neither in this case, surepy is a open source library someone wrote to interact with the Sure Pet api without needing to use the Sure Pet app. This thread explains it better - Sure Pet wont engage with the community in any way and have now shown they are willing to take additional measures to block 3rd party access meaning the solution most people are using is looking like it might not have much of a future. |
@Ryanmt2 Read through the issue ... that's insane :-( Does anybody know what wireless protocol is used between the hub and the flaps (@plambrechtsen )? In case I need to replace a flap one day I'm really, really concerned to even shortly connect my hub back to their cloud to get a proper new config. And I hope my hub never dies. PHL is running so great here (apart from the message-of-death issue of the hub, but my watchdog gets it back to life then after max 70 minutes), we'll never want to miss the local installation anymore! |
Here's hoping all of us on the new firmware aren't screwed, but I'm guessing we are. |
According to some comments in the thread @Ryanmt2 mentioned (i.e. https://community.home-assistant.io/t/local-deployment-for-sureflap-surepetcare-connect-using-only-local-mqtt-broker/274494/295) it seems the communication between the hub and the flap is zigbee, but I am not sure if it is standard zigbee and with a known key so it can be reproduced. Obviously being able to connect the flap to our zigbee network so the hub is not required anymore would be a dream. @plambrechtsen might have more details about this. |
https://github.com/plambrechtsen/pethublocal The original repo details some alterative hub options that were investigated before parking the idea in favour of the current solution. It is indeed zigbee The wemos d1 hub sounds like a dream if there is ever any suitable firmware created! |
Perfect, then if it is zigbee, why don´t we just try to connect the flap to a zigbee coordinator like any other zigbee device so it becomes part of the zigbee network? why is another hub (i.e. wemos d1 hub) required? For instance this guide explains how to add support for new devices to zigbee2mqtt: https://www.zigbee2mqtt.io/advanced/support-new-devices/01_support_new_devices.html Just asking because if nobody has explored this option before, it might be worth a try. |
If I recall correctly, it is essentially ZigBee but with enough of a change to the packet headers (or something like that) so that it's not recognised as ZigBee and thus needs it's own transceiver to receive the data. |
You are right, I have done a small test disconnecting the sure hub, then enabling the "permit join" in my zigbee2mqtt and then putting the flap in pairing mode (which according to the Sure app just requires to click the settings button located at the left of the flap), and unfortunately the flap has not joined the zigbee network (1st step of the guide https://www.zigbee2mqtt.io/advanced/support-new-devices/01_support_new_devices.html), so it seems they have changed the protocol enough so that it is not recognised by the zigbee coordinator, which is a pity because it would have been the easiest solution. |
Hello,
I can't find the link back but at some point people mentioned a microchip
implementation of this 2.4GHz zigbee-like protocol. There is probably some
documentation available for the communication protocol but figuring the
binary representation of states and commands would probably be a
challenge....
I also think bypassing the hub is the way to go though... This cloud thing
and their anti-open-source politics is ridiculous.
Another (challenging) option is to go lower level and plug an esp32 right
to the sensors/actuators... When mounting the cat flap I could see a motor
to control the lock, a magnetic sensor on the door hinge (probably to infer
the cat direction), and an antenna coupled to a chip-reader chip (?)... Not
sure how difficult (probably a lot) but depending on the people that are
motivated to give it a try, there are different layers to attack.
Not complaining about the physical build, which is a good base, otherwise
it might be simpler to just start a DIY project from scratch ;)
|
It's going to be a heavy lift to replace the hub. I doubt that's likely to happen. And it may not even matter if we can't downgrade the firmware. It's possible they've locked us out of everything. |
I had a go at this before I came to this project. I think the way forward is with working on intercepting the packets in flight with an appropriate ZigBee sniffer that will recognise the modded packets. At the moment (thanks to this project) we can see read the actions that each transmission performs so hopefully it's a just a case of process of elimination. As far as I know, the end devices can't be updated remotely, so whatever they do with the hub won't matter, it will still have to speak unencrypted to the devices. |
In case anyone may have missed it, @plambrechtsen's response about rolling your own hub is towards the bottom of this post. It lists some of the things that would need to be done. |
I was planning to buy a Cat Flap Connect + hub soon, but I'm pretty dedicated to local-only control. Would a new device likely be impacted by this if it's never been connected to the cloud/can I set it up without having to connect it? Does this mean I should wait and see how this resolves? The thread linked below indicates the issue is resolved for the cloud-based HA integration. |
My understanding: it is quite a risky endavaour for two reasons:
And watch out for the three-headed monkey ;) |
pethublocal fails to download firmware with the following error. Does not seem linked to DNS / network issue as I tried from two different hosts on different networks.
The text was updated successfully, but these errors were encountered: