codetheweb / anylist

📋 a wrapper for AnyList's API (unoffical, reverse engineered)
88 stars 23 forks source link

Get recent items for a list #28

Closed kevdliu closed 1 year ago

kevdliu commented 1 year ago

Hello,

Thank you so much for making this library! With Google removing third-party shopping list support in Google Assistant, I was able to use this library to integrate Anylist with Home Assistant. The only thing missing is automatic categorization of items. I'm not too familiar with the Anylist API but it seems like they are doing that client side? One idea I have for automatically categorizing items is use the recent items list as a lookup table for the category of an item. This way, once I manually assign a category to an item, future insertions of the item will have the same category applied.

kevdliu commented 1 year ago

Never used protobuf before but I'm slowing getting more familiar with it. Going to see if I can create a PR for it

kevdliu commented 1 year ago

Opened a PR here https://github.com/codetheweb/anylist/pull/29

Daneish commented 1 year ago

Hi kevdliu, if you were willing to share your AnyList Home Assistant integration, I would love to use it!

kevdliu commented 1 year ago

Hi kevdliu, if you were willing to share your AnyList Home Assistant integration, I would love to use it!

Yeah sure I can try to clean it up and put it up on my github.

shirasp commented 1 year ago

Same here! I would love to have my AnyList available in Home Assistant!

Daneish commented 1 year ago

Yeah sure I can try to clean it up and put it up on my github.

That would be excellent, thank you so much!

kevdliu commented 1 year ago

Hopefully I'll have some time in the coming weekend(s) to get around to it, I'll update here when it's up. With home assistant 2023.8 adding support for intent wildcards I'm planning to migrate to that instead of my current implementation.

kevdliu commented 1 year ago

Found some time this weekend to put it on Github. For everything to work you need both an addon (which runs a server that uses this library to communicate with Anylist) and a custom integration (which interfaces Home Assistant with the addon).

The addon is here: https://github.com/kevdliu/hassio-addon-anylist The custom integration is here: https://github.com/kevdliu/hacs-anylist.

If you run into any issues or have questions please post them in the issue tracker of the corresponding repository.

codetheweb commented 1 year ago

very cool, happy to link to those from the readme in this repo if you open a PR :)

Daneish commented 1 year ago

Found some time this weekend to put it on Github.

That’s amazing! Thank you so much for this. I’ve got it working, and I’m playing around with it now.

If you run into any issues or have questions please post them in the issue tracker of the corresponding repository.

Will do!