DurgNomis-drol / google_home_timers_card

Card for Home Assistant Google Home integration.
MIT License
34 stars 16 forks source link
home-assistant home-assistant-frontend home-automation lovelace lovelace-cards lovelace-custom-card lovelace-ui

DEPRECATED

As the main integration does not work for me anymore, i won't be updating this. Feel free to fork, copy or ask to be a collaborator here if you want to maintain this.


Original Readme

Card for Home Assistant Google Home integration

Important to know!

It will not be a smooth countdown (It will jump some seconds), but it will always be done at the right time.

Installation

Prerequisites

Make sure you have Home-Assistant Google home integration installed.

HACS

Since the integration is under active development, it is not yet added to HACS default repository, only manual installation is available for early testers

To install the integration follow HACS description to add custom repository. Provide https://github.com/DurgNomis-drol/google_home_timers_card as repository URL and select the "Lovelace" category. We recommend you select the latest release.

Manual installation

  1. Download googletimers-card.js and right click and save it.
  2. Copy it into the 'www' folder. If 'www' does not exists in your config folder, then just create it.
  3. Add it to lovelace by going to lovelace Dashboards and then Resources.
  4. and then input /local/googletimers-card.js and change resourcetype to javascript-module
  5. Restart Home Assistant or clear browser cache.

YAML installation - Not recommended

Follow step 1 -> 2 above and then add this to your ui-lovelace.yaml file.

lovelace:
  resources:
    - url: /local/googletimers-card.js
      type: module

Usage

The countdown is done client-side. This means that it will always fire at the correct time.

Options

Name Type Default Supported options Description
type string Required custom:googletimers-card Type of the card.
entity string Required sensor.kitchen_timers Has to be a timer sensor from google_home integration.
title string Optional Any string that you want Name displayed in the header. Defaults to the entity name.
icon string Optional mdi:kitchen Icon displayed in the header. Defaults to the entity icon.
hide_header boolean false true or false Whether to show the header or not.
show_fire_time boolean false true or false Whether to also show the time when it's done.
alarms_entity string Optional sensor.kitchen_alarms To show alarms as well.

Example

type: 'custom:googletimers-card'
entity: sensor.kitchen_timers
alarms_entity: sensor.kitchen_alarms
title: Kitchen

Bugs/Features

Please open a issue if you have found a bug or even better make a PR if you can fix it :smile: