ICA integration for Home assistant. Forked from https://github.com/dennisgranasen/ha-ica-todo. But very much rewritten since...
NOTE: Currently under development and might be unstable!
- Regex pattern matching for specifying Quantity and Unit
- Assign due date based on current offer for items synced from ICA
- Assign appropriate ArticleGroupId. Using existing values in /common, /baseitems, or do a local or API lookup
- Get current offers in favorite stores. If any "productEan" matches one of my favorite products "baseitems", then automatically add it, with a due date => Can be done by writing an automation and listening on ica_event
Integration
- Shopping list picker for which lists to track
- Implement services and events to use for automations (notifications, etc.)
- Translate strings [se, en]
- Implement config flows step for Reauth / refresh tokens
- Update config entry with token, if doing full auth
- Refresh login when expiry was passed
- Refresh login when 401 was returned during fetching of data
- Invoke a new login if an attempted "Refresh login", failed
- Implement Blueprint automation for tracking new offers
Shopping lists
-
Categorize added items into the correct article group!
-
Time limited offers to be automatically added (if exists under favorites)
-
Checking off items should sync between store-lists (including time limited offers)
-
Adding items to Trello checklist should create them in the "Master"-list
-
Adding items to a shopping list should sync them to Trello checklist too?
-
User should use the "store"-list when shopping, which should contain existing offers for that store, and the wanted items from "Master"-list
-
Adding items to the "Master"-list should calculate the sum of quantities and update accordingly
-
Implement the different
CONFLICT_MODES -
Allow for (scheduled) notification, when favorite item(s) are on discount/offer
-
Avoid getting all shopping lists before updating individual lists. Since integration has config on the ID's. Only fetch during config_flow
-
Check if the 'Ica To-Go app' can be reverse engineered. That way we could possibly scan ONCE, for both for ICA purchase and for Grocy tracking.
Seems to authicate via ims.icagruppen.se, via Mobilt BankID. Which will probably unlock the door. Not sure how much to fool around here since everything is tracable. App gets current offers for the store. But starting to scan items will add them to the cart. Which kind of commits that you want to purchase them... Not sure what to benefit whit this app as of now
Barcode/QR/Bower
- Check API possibilities for scanning/shopping items with the phone?
- Check if can integrate with the 'Bower recycling app'
Recipes
- Able to export Ica recipe into Trello
- Find recipes that match ingredients that are currently on offer (or in a shopping list)
- Service to list recipes possible with the current pantry inventory
Docs
- Document installation/configuration
- Document use-case examples
- Document Automation examples