Skip to content

royto/linky-card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linky card

A custom Lovelace component for displaying linky info for Home Assistant.

Warning: this card use a custom integration of Linky and not the default version of Home Assistant.

The card is initially based on the work of @Imbuzi. I convert it to Lit Element and add some configuration option.

logbook card example

GitHub license

Installation

HACS

This card is not yet available in HACS (Home Assistant Community Store) but can be added as custom repository in the settings tab.

Manual

Download the linky-card.js from the latest release and store it in your configuration/www folder. Configure Lovelace to load the card:

resources:
  - url: /local/linky-card.js?v=1
    type: module

Using the card

Options

Card options

Name Type Required Since Default Description
type string required v0.1 custom:linky-card
entity string required v0.1 The linky sensor entity_id.
showHistory bool optional v0.1 true Display History
showPeakOffPeak bool optional v0.1 true Activate Peak(heure pleine) and OffPeak mode (heures creuses)
kWhPrice number optional v0.2 undefined Calculate Price (only available if showPeakOffPeak is false)

Example usage

Default config

type: "custom:linky-card"
entity: sensor.linky

No history

Example with Peak OffPeak hour disabled

type: "custom:linky-card"
entity: sensor.linky
showPeakOffPeak: false

No history

Example with no history

type: "custom:linky-card"
entity: sensor.linky
showHistory: false

No history

Example with Price

entity: sensor.linky
showHistory: true
showPeakOffPeak: false
type: 'custom:linky-card'
kWhPrice: 0.128

Price