π¬π§ English | π¨πΏ ΔeΕ‘tina
A custom Home Assistant card that displays sensor values with a beautiful flip animation effect, similar to classic split-flap displays found in train stations and airports.
- π¨ Smooth flip animation for number transitions
- π― Configurable digits per card (1 or 2 digits)
- π Customizable styles and colors
- π± Tap action support
- πΌοΈ Optional background hiding
- β‘ Real-time value updates
Single digit per card:
βββββ βββββ βββββ βββββ
β 0 β β 0 β β 6 β β 3 β
βββββ βββββ βββββ βββββ
Two digits per card:
ββββββ ββββββ ββββββ ββββββ
β 01 β β 02 β β 04 β β 09 β
ββββββ ββββββ ββββββ ββββββ
For time use https://github.com/Thyraz/pqina-flip-clock-card
- Add this repository to HACS as a custom repository
- Search for "Flip Display Card" in HACS
- Install the card
- Add the card to your Lovelace configuration
- Download all files
- Copy it to
/config/www/flip-display-cardfolder - Add resource reference in Lovelace:
resources:
- url: /local/flip-display-card/dist/flip-display-card.js
type: moduletype: custom:flip-display-card
entity: sensor.temperaturetype: custom:flip-display-card
entity: sensor.time
hideBackground: false
digits_per_card: 1
number_of_cards: 4
styles:
width: 50%
fontSize: 15cqw
height: 30cqw
textColor: "#ff5722"
frontFlapColor: "#263238"
rearFlapColor: "#1a1a1a"
textOffsetVertical: 0.05em
frontFlapShadowOpacity: 0.6
| Option | Type | Default | Description |
|---|---|---|---|
entity |
string | required | Entity ID to display |
digits_per_card |
number | 2 |
Number of digits per card (1 or 2) |
number_of_cards |
number | 4 |
Number of digits per card (1-99) |
hideBackground |
boolean | false |
Hide card background |
tap_action |
object | - | Action to perform on tap |
styles |
object | - | Custom CSS properties |
number_of_cards: 3
-
number_of_cards: 1- Shows 3 cards with 1 digit each (0-9)- Displays up to 4-digit numbers
- Example:
63β063
-
number_of_cards: 2- Shows 4 cards with 2 digits each (00-99)- Displays up to 8-digit numbers
- Example:
1234567β01234567
-
digits_per_card: 1- Shows 4 cards with 1 digit each (0-9)- Displays up to 4-digit numbers
- Example:
63β0063
-
digits_per_card: 2- Shows 4 cards with 2 digits each (00-99)- Displays up to 8-digit numbers
- Example:
1234567β01234567
type: custom:flip-display-card
entity: sensor.living_room_temperature
digits_per_card: 1
hideBackground: false
styles:
fontSize: 3em
color: '#2196F3'type: custom:flip-display-card
entity: sensor.visitor_counter
digits_per_card: 2
hideBackground: true
styles:
fontSize: 2.5em
height: 2.2emtype: custom:flip-display-card
entity: sensor.power_consumption
digits_per_card: 1
tap_action:
action: more-info
styles:
fontSize: 4em
color: '#ff9800'You can customize the appearance using the styles property. Common options:
fontSize- Size of the digits (e.g.,3em,48px)height- Height of each card (e.g.,2em)color- Text color (e.g.,#ff6600,red)background- Background color- Any other CSS property in camelCase
- The card automatically removes decimal points and non-numeric characters
- Values are padded with zeros on the left if shorter than the display capacity
- For
digits_per_card: 1, maximum 4 digits are shown - For
digits_per_card: 2, maximum 8 digits are shown - The flip animation updates every second
Built with PQINA Tick library for the flip animation effect and https://github.com/pmongloid/flipdown-timer-card.
MIT License
If you like this card, please β star this repository!
Found a bug or have a feature request? Please open an issue.
