{"id":13588738,"url":"https://github.com/AitorDB/home-assistant-sun-card","last_synced_at":"2025-04-08T06:32:38.768Z","repository":{"id":40433756,"uuid":"366482637","full_name":"AitorDB/home-assistant-sun-card","owner":"AitorDB","description":"Home assistant sun card based on Google weather design","archived":true,"fork":false,"pushed_at":"2023-03-17T10:15:06.000Z","size":308,"stargazers_count":409,"open_issues_count":67,"forks_count":186,"subscribers_count":13,"default_branch":"main","last_synced_at":"2024-11-06T08:43:05.957Z","etag":null,"topics":["custom-card","hacs","home-assistant","sun","sun-card"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AitorDB.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-05-11T18:46:52.000Z","updated_at":"2024-10-28T13:42:49.000Z","dependencies_parsed_at":"2024-01-14T04:48:50.683Z","dependency_job_id":"9f938e30-d073-4fff-91f4-85f78c39cd7c","html_url":"https://github.com/AitorDB/home-assistant-sun-card","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AitorDB%2Fhome-assistant-sun-card","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AitorDB%2Fhome-assistant-sun-card/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AitorDB%2Fhome-assistant-sun-card/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AitorDB%2Fhome-assistant-sun-card/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AitorDB","download_url":"https://codeload.github.com/AitorDB/home-assistant-sun-card/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247792150,"owners_count":20996878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["custom-card","hacs","home-assistant","sun","sun-card"],"created_at":"2024-08-01T15:06:53.637Z","updated_at":"2025-04-08T06:32:33.925Z","avatar_url":"https://github.com/AitorDB.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Home assistant Sun card\nHome assistant Sun card based on Google weather design\n\n## Preview\n![Light mode preview](https://user-images.githubusercontent.com/6829526/118412152-54d93900-b690-11eb-8b2b-e87b4cbcca7f.png)\n![Dark mode preview](https://user-images.githubusercontent.com/6829526/118412162-64f11880-b690-11eb-9bd7-b8c6c7d8efd8.png)\n\n## Requirements\n- This card uses [Sun integration](https://www.home-assistant.io/integrations/sun/) so it needs to be enabled\n\n## Install\n### HACS\nHome assistant Sun card is available by default on HACS directory. More info [here](https://hacs.xyz/).\n\n### Manually\n1. Download the `home-assistant-sun-card.js` file from the [latest release available](https://github.com/AitorDB/home-assistant-sun-card/releases) and save it in your `configuration/www` folder.\n1. Go to `Configuration \u003e Lovelace dashboard \u003e Resources` in Home Assistant and click on `Add resource`.\n    1. Add `/local/community/home-assistant-sun-card.js` to the URL.\n    1. Choose `Javascript Module` as Resource type.\n\n## Set up\n### Using UI\n1. 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.\n1. Once in the UI editor you can modify the card behavior by adding some of the config that you will find below\n\nNote: If `Custom: Sun card` doesn't appear you will have to reload cleaning the cache.\n\n### Using YAML\n1. You just need to add a new card with `type: 'custom:sun-card'` to your cards list and any of the config that you will find below if you want to customize more your card.\n\nNote: If you get an error similar to this `Custom element doesn't exist` you will have to reload cleaning the cache.\n\n## Config\n| Name          | Accepted values      | Description                          | Default                                             |\n|---------------|----------------------|--------------------------------------|-----------------------------------------------------|\n| darkMode      | `boolean`            | Changes card colors to dark or light | Home assistant dark mode state                      |\n| language      | `string`\u003csup\u003e1\u003c/sup\u003e | Changes card language                | Home assistant language or english if not supported |\n| showAzimuth   | `boolean`            | Displays azimuth in the footer       | `false`                                             |\n| showElevation | `boolean`            | Displays elevation in the footer     | `false`                                             |\n| timeFormat    | `'12h'`/`'24h'`      | Displayed time format                | Locale based on Home assistant language             |\n| title         | `string`             | Card title                           | Doesn't display a title by default                  |         |\n\n(\u003csup\u003e1\u003c/sup\u003e) Supported languages: `da`, `de`, `en`, `es`, `et`, `fi`, `fr`, `hu`, `it`, `nl`, `pl`, `pt-BR`, `ru`, `sl`, `sv`\n\n## Known issues\n- Home assistant seems to provide next events instead today's one \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAitorDB%2Fhome-assistant-sun-card","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAitorDB%2Fhome-assistant-sun-card","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAitorDB%2Fhome-assistant-sun-card/lists"}