homeassistant-litter-robot
homeassistant-litter-robot copied to clipboard
Feeder-Robot
Just was curious if there's any thoughts on adding support for Feeder-Robot to this project as well.
Probably a bit outside of the scope of a litter robot project, but it'd at least be able to share some authentication and setup. I just purchased one so might be able to poke around and see how feasible it is when it arrives (although I'm assuming it would use the same general setup as Litter-Robot).
Seems like a fine integration to add to me! If you can capture the request/response for things like listing robots and sending feeder commands using a tool like Charles proxy we can get started
I currently use this integration for my litter robot. I too would like to see the feeder robot functionality added and would like to help.
Edit: -Loaded up Charles proxy on my iOS device, got the cert trusted and all, but the autopets app refuses to work when I'm connected to the proxy. (I've set up a global include filter on the ssl proxy also). Any ideas on how to get this to work? My guess is, the new AutoPets app must be using SSL Certificate pinning?
Hmm I haven't seen an app pin certificates before. Alternatively we can take a look at a decompiled app and then look for the feeder commands and responses. I can get a branch for you to try some time soon based on that and hope it works!
Hi Josh, yes, please let me know how I can help. I noticed that they switched iOS apps when they came out with the feeder, and so I wonder if they made some changes to the security of the app when they did that? I'm not sure... and it's totally possible I don't know what I'm doing, but I did spend a lot of time with it, and I was not seeing the requests when trying to proxy it. I've tried several methods to bypass the pinning using Frida (not a Frida gadget, but on an actual rooted device), but still wasn't able to get it to work - I think due to the way Nougat+ doesn't honor the user signed certs... so anyways, I will hopefully get back to this to spend more time with it soon.
For what it's worth, I finally was able to give it a look today and was seeing the same thing as @rdgerken. Nothing showing up in Charles, and couldn't seem to get things to log anywhere. :\
@holman - Thanks for confirming. I haven't given up on this yet, I just haven't had much time to get back to it. I've found a lot of resources that use an older build of Android and Frida that I think could work. Hopefully Josh has some ideas. I've not done a lot with SSL proxying in the past.
I am thinking a whole lot of extra logging around the API responses within the addon should help -- I can set up a test branch if you need help
I would like to contribute to HA community with this integration. I've recently purchased the feeder robot and have the litter robot as well. Would like to learn how to help!
I have Android phone just as a note
Took another look at this today now that I have an M1 and can just load the app on my laptop directly now. Still coming up blank. For some reason Charles just isn't seeing a request at all come through- not any errors or anything, and I'm just seeing the JWT auth requests/responses. (And, compared to the iOS experience, the app still works fine.) Can't actually see where they're pulling client data. So I guess they're doing something really weird? Dunno.
Saw some calls in Wireshark to a Hasura instance (https://graphql.whisker.iothings.site
), which is promising if all they're using is GraphQL for the new devices, although I couldn't sort out a way to query that directly. Would be great if it were just simple GraphQL queries for everything. Anyway, it's all kinda odd, although I still don't have much experience doing this so maybe I'm missing something super basic.
I doubt it will go far, but I just submitted a support ticket requesting a developer API for both products be opened up and explained my current litter robot use case and my desired use of a future feeder robot purchase.
Has anyone made any progress on feeder robot? Would be awesome to tell Google to give a snack