Skip to content

amitfin/lovelace-daily-schedule-card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Daily Schedule Card

HACS Badge

GitHub Release

Project Maintenance

Lovelace card for Daily Schedule Integration entities.

Note: The custom integration is a prerequisite and can be installed via HACS using this link.

Usage

image

Time Ranges

Each range has from and to. If the to is less than or equal from it's treated as time in the following day. One interesting case is when from equals to. This type of range covers the whole day (always on).

There are 3 ways to specify time:

  1. A fixed time (e.g. 12:30).
  2. Sunrise with an optional negative / positive offset.
  3. Sunset with an optional negative / positive offset.

Lovelace Card Configuration

Visual Editor

image

Code Editor

General

Name Type Required Default Description
type string True - Must be custom:daily-schedule-card
title string False - Title of the card
card bool False True if title is supplied Whether to render an entire card or rows inside the entities card
template string False Null Template for rendering the value. Has access to entity_id

Entities

Name Type Required Default Description
entity string True - The binary_sensor entity ID
name string False Friendly name of the entity Name to display
template string False Null Per-entity template (overrides card's template)

Note: you can also just give the entity ID (with no entity:) if you don't need to specify the name explicitly.

Entities Card Example

type: entities
entities:
  - type: custom:daily-schedule-card
    entities:
      - entity: binary_sensor.venta_schedule
        name: Venta

Entire Card Example

type: custom:daily-schedule-card
title: Timers
entities:
  - binary_sensor.swimming_pool_filter_schedule

Template Example

type: custom:daily-schedule-card
card: true
template: >-
  {{ state_attr(entity_id, 'effective_schedule') |
  map(attribute='from') | map('truncate', 2, True, '')
  | join(' | ') }}
entities:
  - binary_sensor.let_the_dog_out

Install

The custom card is properly registered when installing via HACS.

Otherwise, the JS file can be downloaded from latest releases. Follow these instructions to register the custom card.

About

Home Assistant Custom Card for Daily Schedule Integration

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •