Skip to content
Gives you information about the latest beer available at Systembolaget in Sweden, also known as "Små partier".
Python
Branch: master
Clone or download
Latest commit 849e126 Jan 10, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
custom_components/beerbolaget Update __init__.py Jan 10, 2020
LICENSE Updated structure of component. Jun 27, 2019
README.md Update README.md Oct 9, 2019
info.md Update info.md Aug 6, 2019

README.md

Beerbolaget

Beerbolaget is a component which shows the latest beer available at Systembolaget in Sweden, also known as "Små partier". This component is a great match with the custom card for Home Assistant, Beerbolaget-Card.

What can beerbolaget do?

  • Tell you if there is a new release of beer coming this week.
  • Show the latest batch of beer available (or which will become available current week).
  • Supply image information for available beer.
  • Show availability of those beers at choosen local store.
  • Display the beers rating using data from untappd
  • Display which beers you have previously checked in using untappd, and the rating you gave.

Upcoming features

  • Display the beers rating using data from ratebeer
  • Show availability of those beers at the webstore.

Setup

To add this component to your home assistant configuration, download the folder (beerbolaget) and place it under <config_dir>/custom_components, or install it through HACS.

Then type the following in your configuration.yaml

beerbolaget:

Required/Options

api_key is required to use this component.

Name Default Supported options Description
api_key None String API key to access the api owned by systembolaget.se
image_url None String Source to use when collecting image data for available beer. (https://www.systembolaget.se/api/productsearch/search/sok-dryck)
store None String Local store to use when checking availability of beers.
untappd_client_id None String API client id to access the api owned by untappd
untappd_secret None String API client secret to access the api owned by untappd
untappd_token None String API token to access the api Untappd API token

Example

beerbolaget:
  api_key: !secret systembolaget
  image_url: "https://example.com/api"
  store: "Avenyn"
  untappd_client_id: !secret untappd_client
  untappd_secret: !secret untappd_secret
  untappd_token: !secret untappd_token

Automation example

# Beerbolaget release notification
- alias: Beerbolaget Release
  initial_state: on
  trigger:
    platform: state
    entity_id: sensor.beerbolaget
    from: 'False'
    to: 'True'
  action:
    service: notify.mobile_app_xxx_iphone
    data:
      title: "Beerbolaget"
      message: "Nya Små partier: {{ states.sensor.beerbolaget.attributes.release_date }}"
      data:
        push:
          badge: 0
You can’t perform that action at this time.