Hi again everybody, as some of you may notice i am working on shopping list integration.
I got nice results, but i am unable to update .shopping_list.json. It seems like it only updates when an item is complete MANUALLY from shopping list card.
Also i think service âshopping_list.complete_itemâ does not work, or i can not make it work.
I am pretty sure i am not the first to get to this point, but i didât find the answer.
What is the best way to trigger .shopping_list.json updating?
Plenty of services that you can use in automations etcâŚ
The instruction has to be âexactâ and does work, try it out from here and then you can copy the yaml elsewhere
For now, i got this conclussions (i may be wrong):
Shopping list integration works over a file called â.shopping_list.jsonâ. This file is located in /config folder.
This file contains a list of items (products), which has an attribute âcompleteâ with two possible values (false/true). This is a dinamic file. It gets updated when you make changes from shopping list card.
I assume this is not a problem if you work only within Home Assitant, but i am working with Bring! shopping list app. I can get shopping list card syncronized, but it doesnât update â.shopping_list.jsonâ, so the card is syncronized, but not the base file.
The only way i found to trriger file refresh is to add a product to the shopping list from Home Assistant. I am looking for a solution to refresh the file when the shopping list card is syncronized with Bring! app.
As i am writting i think i might found a provisional solutionâŚ
What sensors do that integration provide? You could try calling the HA update service on one of the sensors, which might force the update youâre looking for. You can go even further by watching the file with a file watcher and then trigger an automation to call the abovementioned service.