{"id":25692447,"url":"https://github.com/johannes-mueller/sunset","last_synced_at":"2026-02-12T21:03:08.432Z","repository":{"id":86588889,"uuid":"424374008","full_name":"johannes-mueller/sunset","owner":"johannes-mueller","description":"Mimic twilight to get yourself accustomed to the evening for better sleep","archived":false,"fork":false,"pushed_at":"2025-01-14T18:03:27.000Z","size":74,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-22T03:52:18.556Z","etag":null,"topics":["comfort","dusk","home-assistant","hue","redshift","sleep","sunset","twilight"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johannes-mueller.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null}},"created_at":"2021-11-03T20:40:52.000Z","updated_at":"2025-01-13T21:45:16.000Z","dependencies_parsed_at":"2023-08-30T05:02:12.464Z","dependency_job_id":"c1360d0a-9f8a-47e7-8372-1474e2ff6523","html_url":"https://github.com/johannes-mueller/sunset","commit_stats":null,"previous_names":["johannes-mueller/sunset"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/johannes-mueller/sunset","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johannes-mueller%2Fsunset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johannes-mueller%2Fsunset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johannes-mueller%2Fsunset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johannes-mueller%2Fsunset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johannes-mueller","download_url":"https://codeload.github.com/johannes-mueller/sunset/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johannes-mueller%2Fsunset/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29381043,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T20:34:40.886Z","status":"ssl_error","status_checked_at":"2026-02-12T20:23:00.490Z","response_time":55,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["comfort","dusk","home-assistant","hue","redshift","sleep","sunset","twilight"],"created_at":"2025-02-24T23:09:11.893Z","updated_at":"2026-02-12T21:03:08.414Z","avatar_url":"https://github.com/johannes-mueller.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![pytest](https://github.com/johannes-mueller/sunset/actions/workflows/pytest.yml/badge.svg)](https://github.com/johannes-mueller/sunset/actions/workflows/pytest.yml)\n\n# Sunset\n\nGet yourself accustomed to the evening for better sleep.\n\n\n## Synopsis\n\nDuring sunset the sunlight turns more and more reddish.  The reddish light will\nmake our body produce hormones that promote sleep.  That's why in offices there\nare usually very hot, i.e. white lights.  At home in the evening a more reddish\nlight would be more appropriate.  This extension for\n[Homeassistant](https://home-assistant.io) takes care of that.\n\n\n## Features\n\nYou can configure three times in your `configuration.yaml`.\n\n  * `evening_time`: the time when the redshift will start\n  * `night_time`: the time when the redshift has reached the final color\n    temperature.\n  * `morning_time`: the time when the color temperature will get back to the\n    day time level.\n\n  * `day_color_temp`: the color temperature at daytime in Kelvin\n  * `night_color_temp`: the color temperature at nighttime in Kelvin\n\nBesides the color temperature Sunset can also manipulate the brightness of\nthe lights.  In contrast to the color temperature it does not shift the\nbrightness continuously but drops the brightness of all lights at a given\ntime.  This is meant to be a soft reminder that it is time for you to go to\nbed.\n\n  * `bed_time`: The time when the brightness should be dropped or 'null' to\n     disable brightness manipulation.\n  * `night_brightness`: The brightness after bed time (default 127)\n\n\n### Color temperature translation behavior\n\nThe component takes over the color temperature of all the lights available in\nthe system.  Between `morning_time` and `evening_time` the color temperature\nwill be set to the level of `day_color_temp`.  Once `evening_time` is reached\nthe color temperature will slowly transition to `night_color_temp`.  The\n`night_color_temp` value will be reached exactly at `night_time` and maintained\nduring the night.  Once `morning_time` is reached the color temperature will\ninstantaneously go back to `day_color_temp`.\n\n\n### Manually overriding the color temperature and the brightness\n\nYou can manually override the color temperature and the brightness for a\ncertain light or group of lights just by adjusting it in a usual way, e.g. the\nweb interface.  The color temperature of this light will then not be changed as\nlong as the light remains switched on.  Once the light goes off and on again,\nits color temperature and the brightness will be again governed by Sunset.\n\n\n### Forbidding Sunset to touch a specific light\n\nThere are the services `sunset.dont_touch` and `sunset.handle_again`. They both\ntake a `device_id` an `area_id` or an `entity_id` as parameter.  As you would\nguess from the names `sunset.dont_touch` makes Sunset not manipulate a certain\nlight, whereas `sunset.handle_again` makes Sunset control the light again.\n\nLights have to be specified as lists of entities, an area or a device.\n\nBe aware that the lights not to be touched are not persistent.  They are\nforgotten as soon as the component is restarted.  So it is just meant as a\ntemporary measure.\n\n\n### Activating and deactivating\n\nYou can use the services `sunset.activate_redshift` and\n`sunset.deactivate_redshift` to activate and deactivate the redshift\naltogether.  The `sunset.deactivate_redshift` service takes an optional\n`color_temp` parameter to apply a certain color temperature to all lights.  If\nit is not given the color temperature is not changed on deactivation.\n\nSimilarly you can use the services `sunset.activate_brightness` and\n`sunset.deactivate_brightness` to deactivate the dimming.\n\n### Planned features\n\n* Shift the color temperature back in the morning over a defined time.  As of now\n  the back shift to day temperature happens instantaneously.\n\n* Configure lights that are generally ignored by Sunset.\n\nNo ETAs given.\n\n\n## Status\n\nHacked it like a couple of months ago and deployed it on my system.  So far it seems to\nwork fine.\n\n\n## Installation\n\nFor now you need to clone the repo and copy or symlink the directory\n`custom_components/sunset` to your `.homeassistant/custom_components`.  When\nrestarting Sunset should automatically step in.\n\n\n## Support\n\nAs always, bug reports and pull requests welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohannes-mueller%2Fsunset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohannes-mueller%2Fsunset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohannes-mueller%2Fsunset/lists"}