Flipdown Timer Card

November 18, 2022 · View on GitHub

hacs_badge

Flipdown Timer Card

Card for timer entities in the Lovelace user interface of Home Assistant Default

Features

  • Set timer duration on the card
  • Display timer
  • Flip together if you have multiple cards

Installation

  • Install using HACS.
  • Or Download the 'flipdown-timer-card.js' from the latest release.

Configuration

NameTypeRequirementDescriptionDefault
typestringRequiredcustom:flipdown-timer-card
entitystringRequiredTimer, Input_datetime(with both date and time) entity
durationstringOptionalTimer duration indicated when idle. Should be 'hh:mm:ss'
themestringOptionalColorscheme hass, dark, lighthass
show_titlebooleanOptionalShow card titlefalse
show_headerbooleanOptionalShow rotor headingsfalse
show_hourstringOptionalShow hour rotors true, false, autofalse
stylesobjectOptionalCard style
localizeobjectOptionalCard text localization

Duration

Home Assistant timer updates default duration whenever timer starts. if duration is set on this card, it will override default timer duration when idle.

Auto Hours

Set show_hour to auto to enable auto hours. It toggles between HH:MM and MM:SS mode depend on remaining time. HH:MM will be displayed when in idle state. To know what is being displayed, it is recommned to enable the headers.

Non-timer entity

  • Input_datetime entities with both time and date.
  • Alexa next alarm sensor from Alexa Media Player.

Styles Object

Object key Description Default
rotor width single rotor width 50px
height single rotor height 80px
fontsize font size on rotors 4rem
button width button width 50px
height button height(only works when button position is below) 20px
location button location : right, bottom, hide right
fontsize font size on buttons 1em

Localize Object

Localize(customize) strings on buttons and headings.

KeyValue
buttonstart, stop, cancel, resume, reset in your language(5 words)
headerHours, Minutes, Seconds in your language(3 words)

Full Example

type: custom:flipdown-timer-card
entity: timer.timer
show_hour: false
show_title: false
show_header: false
theme: dark
duration: "00:00:00"
localize:
  button: 시작, 정지, 취소, 계속, 리셋
  header: 시, 분, 초
styles:
  rotor:
    width: 60px
    height: 80px
    fontsize: 4rem
  button:
    width: 60px
    height: 30px
    fontsize: 1.5em
    location: bottom

Notes

  • Timing error(<1s) may occur due to flipping effect.

Credits