Skip to content

MikeBrink/home-assistant-picnic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Home Assistant component for Picnic.app

BuyMeCoffee hacs_badge

This library is still in development

Provides Home Assistant sensors for Picnic (Supermarket) based on the python-picnic-api repository.

This library is not affiliated with Picnic and retrieves data from the endpoints of the mobile application. Use at your own risk.

Install

Use HACS to install these sensors or copy the files in the /custom_components/picnic/ folder to [homeassistant]/config/custom_components/picnic/

Example config:

  sensor:
    - platform: picnic
      username: <username>            (required)
      password: <password>            (required)
      country_code: "NL"              (optional) (Choose from "NL" or "DE")

Sensors

You will have three sensors available.

Basket

The sensor picnic_basket indicates how many items you still have within your basket. Within the more dialog window you will also see the outstanding costs that you have.

Deliveries

The sensor picnic_delivery indicates the state of your next upcoming delivery. The state is either 'unknown' or the lower bound of the delivery time window. Within the attributes (more info dialog), you can also see other data.

Time Slots

The sensor picnic_delivery_time_slots indicates the first available delivery time slot. Within the attributes (more info dialog), you can also see all other available delivery time slots.

Automation Examples

PLACEHOLDER

Debugging

If you experience unexpected output, please create an issue with additional logging. You can add the following lines to enable logging

logger:
  default: error
  logs:
      custom_components.picnic: debug