{"id":19362404,"url":"https://github.com/alancunningham/octopus_agile_trigger","last_synced_at":"2026-03-05T20:23:56.682Z","repository":{"id":231861621,"uuid":"782448172","full_name":"AlanCunningham/octopus_agile_trigger","owner":"AlanCunningham","description":"Toggle the state of Philips Hue plugs based on the current Octopus Agile price.","archived":false,"fork":false,"pushed_at":"2024-12-08T22:20:07.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T15:21:18.208Z","etag":null,"topics":["hue","octopus","octopus-agile"],"latest_commit_sha":null,"homepage":"","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/AlanCunningham.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":"2024-04-05T10:19:18.000Z","updated_at":"2024-10-09T17:43:37.000Z","dependencies_parsed_at":"2024-12-08T23:19:58.582Z","dependency_job_id":"9f45b2f6-c491-4609-9754-a94a86a7741d","html_url":"https://github.com/AlanCunningham/octopus_agile_trigger","commit_stats":null,"previous_names":["alancunningham/octopus_agile_trigger"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlanCunningham%2Foctopus_agile_trigger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlanCunningham%2Foctopus_agile_trigger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlanCunningham%2Foctopus_agile_trigger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlanCunningham%2Foctopus_agile_trigger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlanCunningham","download_url":"https://codeload.github.com/AlanCunningham/octopus_agile_trigger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250435210,"owners_count":21430237,"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":["hue","octopus","octopus-agile"],"created_at":"2024-11-10T07:28:15.518Z","updated_at":"2026-03-05T20:23:51.627Z","avatar_url":"https://github.com/AlanCunningham.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Octopus Agile Trigger\n\nA small script that toggles the state of Philips Hue plugs based on the current Octopus Agile price.\n\n## Overview\nThis is intended to be run every half an hour on a cronjob.  When the price drops below a given threshold,\nit turns on a Philips Hue plug.  I then have a Google Home automation which uses the Hue plug state as a trigger\nto run other automations in the house (e.g. turn on the car charger, dishwasher, and send a broadcast via Google\nspeakers etc). When the price goes back above the threshold, it turns the Hue plug off.\n\nSimilarly, when the price goes below 0, the state of another Hue plug is set, which can trigger another automation.\n\n## Installation\n\nClone the project and install the dependencies into a python virtual environment:\n```\n# Clone the repository\n$ git clone git@github.com:AlanCunningham/octopus_agile_trigger.git\n\n# Create a python virtual environment\n$ python3 -m venv venv\n\n# Activate the virtual environment\n$ source venv/bin/activate\n\n# Install the python dependencies using the requirements.txt file provided\n(venv) $ pip install -r requirements.txt\n```\n\nOpen the settings.py and enter:\n- Your Philips Hue Bridge IP address\n- You [Distribution Network Operator Code](https://en.wikipedia.org/wiki/Distribution_network_operator)\n- The names of the Hue plugs you want to toggle when the price drops below a given threshold and for\nplunge pricing\n- You preferred price threshold in pence\n\nThen run the application\n```\n(venv) $ python main.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falancunningham%2Foctopus_agile_trigger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falancunningham%2Foctopus_agile_trigger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falancunningham%2Foctopus_agile_trigger/lists"}