Giter Site home page Giter Site logo

ha_cellar_tracker's Introduction

Cellar Tracker logo
Home Assistant Cellar Tracker custom integration

The cellar tracker implementation allows you to integrate your Cellar Tracker data in Home Assistant.

Disclaimer

This is an unofficial integration of Cellar Tracker for Home Assistant, the developer and the contributors are not, in any way, affiliated to CellarTracker! LLC.

"CellarTracker!" is a trademark of CellarTracker! LLC

Requirements

Installation

The integration should be available in HACS under Custom Integration, if that is not the case, just add manually the repository:

HACS Adding a repository

Configuration:

Add your CellarTracker! username and password in secrets.yaml:

cellar_tracker_username: YOUR_USERNAME
cellar_tracker_password: YOUR_PASSWORD

Then go to configuration.yaml and add:

cellar_tracker:
  username:  !secret cellar_tracker_username
  password:  !secret cellar_tracker_password

Dashboard visualization

CellarTracker! Dashboard

To create a new dashboard for CellarTracker! go to Configuration -> Dashboards -> Add a new dashboard (the following is just a suggestion)

CellarTracker! Dashboard Creation

To populate your Dashboard:

Glance Card Visualization

type: glance
entities:
  - entity: sensor.cellar_tracker_total_bottles
  - entity: sensor.cellar_tracker_total_value

Bottles by Country

type: custom:flex-table-card
title: Bottles by Country
entities:
  include: sensor.cellar_tracker_country*
columns:
  - name: Country
    data: sub_type
  - name: Count
    data: count
  - name: Percentage
    data: '%'
    modify: parseFloat(x).toFixed(0)
    suffix: '%'
  - name: Average Value
    data: value_avg
    prefix: €  #change here according to your currency
    modify: parseFloat(x).toFixed(0)
sort_by: count-

Bottles by Producer

type: custom:flex-table-card
title: Bottles by Producer
entities:
  include: sensor.cellar_tracker_producer*
columns:
  - name: Producer
    data: sub_type
  - name: Count
    data: count
    modify: parseFloat(x)
  - name: Percentage
    data: '%'
    modify: parseFloat(x).toFixed(0)
    suffix: '%'
  - name: Average Value
    data: value_avg
    prefix: €  #change here according to your currency
    modify: parseFloat(x).toFixed(0)
sort_by: count-

Bottles by Vintage

type: custom:flex-table-card
title: Bottles by Vintage
entities:
  include: sensor.cellar_tracker_vintage*
columns:
  - name: Vintage
    data: sub_type
  - name: Count
    data: count
  - name: Percentage
    data: '%'
    modify: parseFloat(x).toFixed(0)
    suffix: '%'
  - name: Average Value
    data: value_avg
    prefix: €  #change here according to your currency
    modify: parseFloat(x).toFixed(0)
sort_by: count-

Bottles by Varietal

type: custom:flex-table-card
title: Bottles by Varietal
entities:
  include: sensor.cellar_tracker_varietal*
columns:
  - name: Varietal
    data: sub_type
  - name: Count
    data: count
  - name: Percentage
    data: '%'
    modify: parseFloat(x).toFixed(0)
    suffix: '%'
  - name: Average Value
    data: value_avg
    prefix: €  #change here according to your currency
    modify: parseFloat(x).toFixed(0)
sort_by: count-

Contribute

Feel free to contribute by opening a PR, issue on this project

ha_cellar_tracker's People

Contributors

ahoernecke avatar fdicarlo avatar heikkih avatar sh00t2kill avatar cheard avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.