{"id":24265926,"url":"https://github.com/grantlemons/light-control","last_synced_at":"2025-03-05T01:25:51.929Z","repository":{"id":91594722,"uuid":"361266148","full_name":"grantlemons/light-control","owner":"grantlemons","description":"Code to mess around with my smartthings connected lights utilizing the pysmartthings library.","archived":false,"fork":false,"pushed_at":"2022-02-07T04:52:04.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-15T11:25:18.108Z","etag":null,"topics":["python39","smartthings","smartthings-api"],"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/grantlemons.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":"2021-04-24T21:02:55.000Z","updated_at":"2022-01-09T03:18:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"cf1a1286-c42e-43b5-a2b7-0cfe4fb20779","html_url":"https://github.com/grantlemons/light-control","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/grantlemons%2Flight-control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grantlemons%2Flight-control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grantlemons%2Flight-control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grantlemons%2Flight-control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grantlemons","download_url":"https://codeload.github.com/grantlemons/light-control/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241947256,"owners_count":20047154,"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":["python39","smartthings","smartthings-api"],"created_at":"2025-01-15T10:55:06.914Z","updated_at":"2025-03-05T01:25:51.924Z","avatar_url":"https://github.com/grantlemons.png","language":"Python","readme":"# This is python code to mess around with my lights\n\nIn order to use it, the first thing one needs to do is [get a smartthings personal access token](https://account.smartthings.com/tokens).\nSecondly, one must copy the [.env.example](./.env.example) file into a [.env file](./.env).\nCopy your token and put it in your .env file (example can be found [here](./.env.example).)\n\n## Running it\nTo get it working, go into [LightControl.py](./LightControl.py), and run the program.\nThis will give an output of all devices and their states. Find your desired device and add it to your [.env file](./.env) as the value for `DEVICE_NAME`.\n\nComment the line `loop.run_until_complete( listDevices() )` and uncomment the line `#weirdRandomLights(my_lights_object, device_name)`\n\nRun the program again and it should turn on and off the device specified in a semi-random manner.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrantlemons%2Flight-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrantlemons%2Flight-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrantlemons%2Flight-control/lists"}