Skip to content

brunosabot/lovelace-nonow-calendar

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

Lovelace Nonow Calendar

A custom Lovelace component for displaying a calendar for Home Assistant.

Current version: 0.0.1

Screenshots

Overview

Install

Simple install

  1. Download and copy lovelace-nonow-calendar.js into your config/www directory.

  2. Add a reference to lovelace-nonow-calendar.js inside your ui-lovelace.yaml.

resources:
  - url: /local/lovelace-nonow-calendar.js?v=0.0.1
    type: module

Installation using Git

Clone this repository into your config/www folder using git.

$ git clone https://github.com/brunosabot/lovelace-nonow-calendar.git

Add a reference to the card in your ui-lovelace.yaml.

resources:
  - url: /local/lovelace-nonow-calendar/lovelace-nonow-calendar.js?v=1
    type: module

Updating

  1. Find your lovelace-nonow-calendar.js file in config/www or wherever you ended up storing it.

  2. Replace the local file with the latest one attached in the here: lovelace-nonow-calendar.js.

  3. Change the version number with the new one to the end of the cards reference url in your ui-lovelace.yaml like below.

resources:
  - url: /local/lovelace-nonow-calendar.js?v=0.0.2
    type: module

You may need to empty the browsers cache if you have problems loading the updated card.

Using the card

Options

Card options

Name Type Default Since Default Description
type string required v0.0.1 custom:lovelace-nonow-calendar
entities string required v0.0.1 A list of calendar entities
daysToShow integer optional v0.0.1 7 How many day to show in the calendar
loadingMessage string optional v0.0.1 Loading... The loading message
noEventMessage integer optional v0.0.1 No upcoming event The message display when there is no events
title integer optional v0.0.1 Calendar The card title
showColor integer optional v0.0.1 true Show the color chip in the calendar view
showLocation integer optional v0.0.1 true Show the event location in calendar view

Entities

Name Type Default Since Default Description
entity string required v0.0.1 A calendar entity
color string optional v0.0.1 auto-generated The calendar associated color

Example usage

Simple usage

- type: custom:lovelace-nonow-calendar
  entities:
    - entity: calendar.my_calendar_name

Advanced configuration

- type: custom:lovelace-nonow-calendar
  daysToShow: 2
  loadingMessage: Work in progress...
  noEventMessage: Nothing yet.
  title: Nonow's calendar
  showColor: false
  showLocation: false
  entities:
    - entity: calendar.my_calendar_name
      color: "rgb(64, 189, 245)"

License

This project is under the MIT licence

About

A lovelace calendar card for Home Assistant

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published