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.
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")
You will have three sensors available.
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.
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.
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.
PLACEHOLDER
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