Integrate Anylist lists into Home Assistant based off of the wonderful work of Max Isom at: https://github.com/codetheweb/anylist
This is an attempt to create a means of pushing grocery items to a list on Anylist. Currently, the list ("Test List") is hard-coded in the module. You need to format a call to this module as:
node anylist.js <username> <password> <command> <item>
We assume commands come in in the form of:
'command', 'item' or 'command', 'amount', 'item'
acceptable commands are:
read
add
delete
remove
check if
check off
check
is
are
process command, item and quantiy.
We assume the command is first, followed by a quantity or item, followed by an item (in possibly multiple words), followed by useless stuff e.g. "add 5 apples to the list", or "add apples".
Note that "delete" actually removes the item from the list. "remove" is the same as "check off", simply indicating that the item has been checked off.
The hope is to add this module as an "integration" or something to Home Assistant so that when using a "Willow" device (see https://github.com/toverainc/willow) as a substitute for an Alexa device, I can replicate the current usecase of asking Alexa to add (or subtract) items from a grocery list saved on Anylist.
If anyone has a good idea of how to integrate this into Home Assistant, please let me know. I'm just learning that part.