Skip to content
Our Groceries Integration for Home Assistant
Python Shell Dockerfile
Branch: master
Clone or download
ljmerza Add native services for add/remove/copy. (#9)
Add native services for add/remove/copy.
Latest commit b87c942 Jan 3, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.devcontainer
.github add dev files Aug 15, 2019
.vscode add dev files Aug 15, 2019
custom_components/ourgroceries Add native services for add/remove/copy. Jan 1, 2020
.gitignore add dev files Aug 15, 2019
CONTRIBUTING.md add dev files Aug 15, 2019
LICENSE Create LICENSE Jul 20, 2019
README.md Add native services for add/remove/copy. Jan 1, 2020
info.md Update info.md Jul 21, 2019
requirements.txt add dev files Aug 15, 2019
resources.json added resources.json Jul 31, 2019

README.md

Home Assistant Our Groceries Sensor

Gets your our groceries lists.


GitHub Release License

Project Maintenance GitHub Activity

Installation

  • Add the ourgroceries folder in your custom_components folder

Options

Name Type Requirement default Description
username string Required your our groceries username
password string Required your our groceries password

In your configuration.yaml file add:

ourgroceries:
  username: !secret our_groceries_username
  password: !secret our_groceries_password

Scriptable Services

Add to list

Adds one or more items to a list.

Name Type Requirement default Description
list_id string Required name or ID of the OurGroceries list
items string OR string[] Required item(s) to be added to the list
service: ourgroceries.add_to_list
data:
  list_id: "My List"
  items:
    - "Milk"
    - "Eggs"

Remove from list

Removes one or more items from a list.

Name Type Requirement default Description
list_id string Required name or ID of the OurGroceries list
items string OR string[] Required item(s) to be removed from the list
service: ourgroceries.remove_from_list
data:
  list_id: "My List"
  items:
    - "Milk"
    - "Eggs"

Copy to list

Copies all items from one list to another.

Name Type Requirement default Description
list_id string Required name or ID of the destination OurGroceries list
from_list_id string Required name or ID of the source OurGroceries list
unique_only boolean Optional false When true, only copies items that are not already on the destination list
service: ourgroceries.copy_to_list
data:
  list_id: "My List"
  from_list_id: "Source List"
  unique_only: true

Enjoy my card? Help me out for a couple of 🍻 or a ☕️!

coffee

You can’t perform that action at this time.