{"id":15413382,"url":"https://github.com/simonwep/hue-scheduler","last_synced_at":"2026-01-07T14:05:37.433Z","repository":{"id":208443216,"uuid":"718746746","full_name":"simonwep/hue-scheduler","owner":"simonwep","description":"Schedule scenes to be turned on after flipping a light switch ✨💡","archived":false,"fork":false,"pushed_at":"2024-12-31T15:28:54.000Z","size":70,"stargazers_count":0,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-02T04:24:51.955Z","etag":null,"topics":["automation","philips-hue","philips-hue-lights","rust-application","smart-home","smart-lighting","smart-lights"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/simonwep.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":"2023-11-14T18:05:57.000Z","updated_at":"2024-12-31T15:28:58.000Z","dependencies_parsed_at":"2024-02-07T19:29:01.758Z","dependency_job_id":"8e9bfc83-4f1a-4df2-a03b-5e39b8febd61","html_url":"https://github.com/simonwep/hue-scheduler","commit_stats":{"total_commits":21,"total_committers":1,"mean_commits":21.0,"dds":0.0,"last_synced_commit":"255b70ab4eb835e8f8f3d419c81bb854d48789b4"},"previous_names":["simonwep/hue-scheduler"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonwep%2Fhue-scheduler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonwep%2Fhue-scheduler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonwep%2Fhue-scheduler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonwep%2Fhue-scheduler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonwep","download_url":"https://codeload.github.com/simonwep/hue-scheduler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245960818,"owners_count":20700781,"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":["automation","philips-hue","philips-hue-lights","rust-application","smart-home","smart-lighting","smart-lights"],"created_at":"2024-10-01T16:56:52.031Z","updated_at":"2026-01-07T14:05:37.357Z","avatar_url":"https://github.com/simonwep.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbr/\u003e\n\n\u003ch3 align=\"center\"\u003e\n    ⏱️ Better Philips Hue Automation 🪄\n\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/simonwep/hue-scheduler/actions?query=workflow%3AMain\"\u003e\u003cimg\n     alt=\"CI Status\"\n     src=\"https://github.com/simonwep/hue-scheduler/workflows/Main/badge.svg\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n### Summary\n\nPhilips hue automations have one large disadvantage - if the light isn't reachable when the automation is supposed to run, it never does.\nThis app checks every time a light is reachable again, if it corresponds to a scene and sets this scene.\nOpen an [issue](https://github.com/simonwep/hue-scheduler/issues) if you find anything missing :)\n\nWhat's even better is, that you can keep using your physical switches without replacing them!\n\n### Installation\n\nCurrently, the only way to install this app is to clone this repository and build it on the platform of your choice.\n[Pre-compiled binaries](https://github.com/simonwep/hue-scheduler/issues/6) are planned, but not prioritized since platforms may vary heavily.\n\n1. Download the [rust](https://www.rust-lang.org/tools/install) compiler.\n2. Clone this repo via `git clone https://github.com/simonwep/hue-scheduler`.\n3. Copy `.env.example` to `.env` and fill out missing values.\n4. Run `cargo build --release`.\n5. You can now execute `/target/release/hue-scheduler` as you want, a [service](https://linuxhandbook.com/create-systemd-services/) is recommended.\n   Make sure to specify the working directory where your `.env` lies.\n\n\u003e [!TIP]\n\u003e After installation and setup (e.g. the app is running) nothing needs to be done anymore.  \n\u003e Anything else is configured in your Philips Hue app!\n\n#### Installing as system service\n\nYou will probably want to run this as a service in the background, for this you could use `.service` file like this (assuming you downloaded and compiled the source under `/home/ubuntu/hue-scheduler`):\n\n```\n[Unit]\nDescription=Philips hue automation\nAfter=network.target\n\n[Service]\nExecStart=/home/ubuntu/hue-scheduler/target/release/hue-scheduler\nWorkingDirectory=/home/ubuntu/hue-scheduler\nUser=ubuntu\nRestart=always\n\n[Install]\nWantedBy=multi-user.target\n```\n\nYou can then start the service via:\n\n```sh\nsudo systemctl enable hue-scheduler\n```\n\nAnd to make it automatically start on reboot:\n\n```sh\nsudo systemctl enable hue-scheduler\n```\n\n### Usage\n\nWhen which scene should be turned on is solely specified by the name of your scenes.\nThe format is as follows: `{name of your scene} ({timestamp}-{timestamp}, ...)`, where `{timestamp}` can be:\n\n- In the 24h format: `12h`, `13:45h`, `0h`, `9:20h`\n- In the 12h format: `3AM`, `8PM`, `11PM`\n- A variable: `sunrise`, `sunset` (depending on `HOME_LATITUDE` and `HOME_LONGITUDE` in your `.env`)\n\n#### Examples\n\nExample scene names with time-frames:\n\n- **Natural light (8AM-10:30h, 17h-sunset)** _- The \"Natural light\" scene should be turned on from 8:00 AM to 10:30 AM and from 5:00 PM until sunset._\n- **Night light (sunset-11PM)** _- The \"Night light\" scene should be turned on from sunset until 11:00 PM._\n- **Wake up (sunrise-8:30h)** _- The \"Wake up\" scene should be turned on from sunrise until 8:30 AM._\n- **Work (8:30h-17h)** _- The \"Work\" scene should be turned on from 8:30 AM until 5:00 PM._\n- **Sleep (11PM-8AM)** _- The \"Sleep\" scene should be turned on from 11:00 PM until 8:00 AM._\n\n#### Working with \"always-on\" lights\n\nSome lights may always be reachable and should be turned on when a scene is activated due to another light that is controlled by a physical switch.\nTo mark a light to be turned on/off as well whenever the corresponding scene is activated/deactivated, prepend a `(att)` for \"attached\" to the lights name.\n\nNow, if you flip the physical switch and the light is turned off the lights that are always \"on\" (connected to a power source) will be turned off as well.\nSince it takes some time for the hue bridge to recognize no longer reachable lights this may take up to a minute.\nStill better than doing it manually ;)\n\n### Screenshots\n\nThis is how it will usually look like in the app.\nA scene will be picked up and turned on if all corresponding lights _became_ (e.g. were not) reachable again.\nThe timeframe for that (and much more) can be configured in the `.env` file.\n\n\u003cp float=\"left\" align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/simonwep/hue-scheduler/assets/30767528/d0d84e46-4dcf-4846-9063-f5052ab69b98\" width=\"250\" alt=\"Screenshot\"/\u003e\n  \u003cimg src=\"https://github.com/simonwep/hue-scheduler/assets/30767528/40c40248-09bf-4db9-b7eb-44ae78de194d\" width=\"250\" alt=\"Screenshot\"/\u003e\n  \u003cimg src=\"https://github.com/simonwep/hue-scheduler/assets/30767528/788572ea-ce6a-4976-aee1-a49393e9b24d\" width=\"250\" alt=\"Screenshot\"/\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonwep%2Fhue-scheduler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonwep%2Fhue-scheduler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonwep%2Fhue-scheduler/lists"}