I always used an automation to send the shopping-list items to my phone like described here:
After todays update to HA Core 2023.6.1 I the sensor.shopping_list has only 1 attribute, which contains the number of active items in the list, but not the item names anymore.
This also brings only the number of items in the shopping_list in the message.
I tried in terminal jq -r '.[] .name' .shopping_list.json and i get listed all the names of the items on my shopping list. But if I use the same command in my .yaml, the message is “9 to buy” instead of “Butter, Milk to buy”.
Is there anyway to create multiple “Shopping Lists” based on the name prefix to use in automations?
For example, if I have items “Giant - Milk” and “Target - Deoderant” and I have each place set up as a location in HA, if I went to Giant it would only return the list of items starting with “Giant”? I think it would be a new json_attribute, but I’m not sure how I’d go about filtering the list down. Any thoughts?
Here’s a condition I use with a zone enter trigger around my local shop:
- condition: and
conditions:
- condition: trigger
id: hill_st
- condition: template
value_template: "{{ '### HILL ST ###' in states('sensor.shopping_list_items')}}"
It would be a lot easier if we had multiple lists.
I have not updated yet but I think what I am going to do is have separate todo lists for each shopping zone. The state of the todo list is the number of unchecked items, so the condition should be able to be simplified to something like this:
- condition: and
conditions:
- condition: trigger # zone trigger
id: hill_st
- condition: numeric_state
entity_id: todo.hill_st
above: 0
I am using Node-RED to filter the data contained in the file to obtain the list of items in this case, I can only use the “local” lists…
Is there any update planned to be able to obtain the data stored in each list? A good option would be to have in each list all entities, the items in the attributes field with both completed and uncompleted. It’s basically what I’m doing through Node-RED.
Okay, I have looked for the local to do list but cannot figure out where the data itself is stored. As I understand from the above discussion, there is no solution to this yet right?
The data is stored in a ics file in the .storage folder. It’s a file called “local_todo.[your todo list name].ics”. But there isn’t yet a smooth way to extract the attributes, yet.