I am fairly new to home assistant. I have loaded your python script and am able to see the call service for the script, however when I run it nothing is sent. I replaced XXX, YYY, ZZZ, and BBB with [email protected] and password for password. I also update the path to my .shopping_list.json (I am running docker on UNRAID so its in my root folder so just ā.shopping_list.jsonā. I also went and changed my security settings in gmail, is this script still working is there a change required?
This is the error I am getting:
Log Details (ERROR)
Logger: homeassistant.components.shell_command
Integration: shell_command , issues)
First occured: 11:14:12 AM (2 occurences)
Last logged: 11:24:39 AM
Sorry for being a bit oftopic here, but Iād like to propose a new function to Shopping List and since everyone here are using it - I think it may be a good place to bring attention.
Please vot for it here: Shopping list - add possibility to reorder items
It would be great and very usefull to have a ShoppingList Sensor directly in HASSā¦
I want to create App notification, if something on my list and I am currently in my default supermarket.
I know that this topic is a little old, but I have made some modifications on the python script from @Mark_Meijer to create a more complete sensor for shopping list
This is the first time that I do something in python, so be nice
Different method is to call the shopping list JSON directly from the undocumented API using a REST sensor. However the value template ignores the ācompleteā status, which isnāt a problem for me. Nice and simple
# Shopping list
- platform: rest
name: Grocery List
headers:
authorization: !secret shopping_list
content-type: 'application/json'
resource: http://<HA-IP>:8123/api/shopping_list
value_template: "{{ value_json | map(attribute='name') | list | join(', ') }}"
method: GET
scan_interval: 60
Biggest FR I need for shopping list is to be able to limit the amount of items shown by the shopping list card. Mine gets so long it takes over my whole dashboard!