Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 2.24 KB

README.md

File metadata and controls

34 lines (27 loc) · 2.24 KB

Home assistant Sun card

Home assistant Sun card based on Google weather design

Preview

image image

Install

HACS

Home assistant Sun card is available by default on HACS directory. More info here.

Manually

  1. Download the home-assistant-sun-card.js file from the latest release available and save it in your configuration/www folder.
  2. Go to Configuration > Lovelace dashboard > Resources in Home Assistant and click on Add resource.
    1. Add /local/community/home-assistant-sun-card.js to the URL.
    2. Choose Javascript Module as Resource type.
  3. Go to your dashboard, enter in edit mode and click on Add card, you should be able to find Custom: Sun card in the list.

Note: If Custom: Sun card doesn't appear you will have to reload cleaning the cache.

Config

Name Accepted values Description Default
darkMode boolean Changes card colors to dark or light Home assistant dark mode state
language string1 Changes card language Home assistant language or english if not supported
showAzimuth boolean Displays azimuth in the footer false
showElevation boolean Displays elevation in the footer false
timeFormat '12h'/'24h' Displayed time format Locale based on Home assistant language
title string Card title Doesn't display a title by default

(1) Supported languages: de, en, es, fi, fr, hu, it, nl, pt-BR

Known issues

  • Home assistant seems to provide next events instead today's one