{"id":22071492,"url":"https://github.com/zonque/hass-colorclock","last_synced_at":"2025-03-23T19:17:11.285Z","repository":{"id":66926928,"uuid":"122970713","full_name":"zonque/hass-colorclock","owner":"zonque","description":"A Home Assistant component to control the color of lights based on the current time","archived":false,"fork":false,"pushed_at":"2018-10-15T09:21:13.000Z","size":128,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T02:05:13.495Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zonque.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-26T13:02:23.000Z","updated_at":"2021-02-01T15:01:52.000Z","dependencies_parsed_at":"2023-02-23T04:30:27.317Z","dependency_job_id":null,"html_url":"https://github.com/zonque/hass-colorclock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonque%2Fhass-colorclock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonque%2Fhass-colorclock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonque%2Fhass-colorclock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonque%2Fhass-colorclock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zonque","download_url":"https://codeload.github.com/zonque/hass-colorclock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245153896,"owners_count":20569408,"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":[],"created_at":"2024-11-30T20:31:50.905Z","updated_at":"2025-03-23T19:17:11.253Z","avatar_url":"https://github.com/zonque.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hass-colorclock\nHome Assistant scene component that uses one, two or three lights to show the current hour, minute and second as RGB color,\npicked from the HSV color circle.\n\n## The HSV circle\n\nThe HSV color circle is used to map the time values into colors.\n\n![HSV](images/colorclock.png)\n\n## Installation\n\n* If it doesn't exist yet, create a sub-folder in your configuration directory called `custom_components/scene`\n* Download the [colorclock.py](colorclock.py) file and copy it to this sub-folder\n\n## Prerequisites\n\nThis component requires at hass \u003e= 0.66.\n\n## Configuration\n\nAdd the following snippet to your `configuration.yaml`, or any file that is included by it:\n\n```\nscene:\n  - platform: colorclock\n    hour_light: light.RGB1\n    minute_light: light.RGB2\n    second_light: light.RGB3\n    angle_offset: 270\n    24h_mode: false\n    ccw: false\n```\n\n### Parameters\n\n* `hour_light`, `minute_light` and `second_light` reference light entities in your configuration that have support for RGB values.\nAll are optional, so you can leave off the ones you don't want.\n\n* By default, zero-values are mapped to the top of the circle, so `00:00:00` would map to red on all lights. The optional configuration option\n`angle_offset` can be set to a value between 0 and 359 to rotate the circle at your will. So for instance, setting this option to 240 would\nturn the lights to blue at midnight.\n\n* By setting the optional `24h_mode` boolean variable to `true`, the hour hand will make one full turn in 24 hours rather than in 12 hours.\n\n* Setting `ccw` to `true` will make the hands move counter-clockwise.\n\nNote that the color of the lights is only changed if the lights are already switched on.\n\n### Automation\n\nAs scenes are one-shot events in Home Assistant, we also need an automation to trigger an update in regular intervals. The necessary update\nfrequency depends on whether or not you configured a light to display seconds. If you have, you should update the clock every second of\ncourse. Otherwise, once or twice a minute should be enough. Below is an example automation for the update action.\n\n```\nautomation:\n  - alias: Enable color clock\n    trigger:\n      platform: time\n      seconds: '/1'\n    action:\n      service: scene.turn_on\n      entity_id: scene.color_clock\n```\n\n## License\n\nGPLv2\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzonque%2Fhass-colorclock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzonque%2Fhass-colorclock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzonque%2Fhass-colorclock/lists"}