{"id":24142312,"url":"https://github.com/jan200101/shellypy","last_synced_at":"2025-09-19T11:31:12.010Z","repository":{"id":57466747,"uuid":"210129756","full_name":"Jan200101/ShellyPy","owner":"Jan200101","description":"Python library to interact with Shelly devices ","archived":false,"fork":false,"pushed_at":"2024-03-17T19:12:12.000Z","size":78,"stargazers_count":22,"open_issues_count":12,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-14T06:51:33.007Z","etag":null,"topics":["python","python2","python3","shelly","shelly-plugs","shelly2"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jan200101.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-22T10:36:32.000Z","updated_at":"2024-10-06T22:14:28.000Z","dependencies_parsed_at":"2023-01-22T07:15:21.873Z","dependency_job_id":null,"html_url":"https://github.com/Jan200101/ShellyPy","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jan200101%2FShellyPy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jan200101%2FShellyPy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jan200101%2FShellyPy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jan200101%2FShellyPy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jan200101","download_url":"https://codeload.github.com/Jan200101/ShellyPy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233566900,"owners_count":18695290,"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":["python","python2","python3","shelly","shelly-plugs","shelly2"],"created_at":"2025-01-12T04:56:53.969Z","updated_at":"2025-09-19T11:31:06.722Z","avatar_url":"https://github.com/Jan200101.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ShellyPy\nnot to be confused with [pyShelly](https://github.com/StyraHem/pyShelly)  \nPython 2 and 3 Wrapper around the Shelly HTTP api\n\n\n## why\nother packages like [pyShelly](https://github.com/StyraHem/pyShelly) only support CoAP or MSQT, neither I am comfortable with using in personal projects\n\n\n## examples\n#### relay\na simple working example for the Shelly 1 that turns a relay on \n```python\nimport ShellyPy\n\ndevice = ShellyPy.Shelly(\"192.168.0.5\")\n\ndevice.relay(0, turn=True)\n```\n[examples/toggle_relay.py](examples/toggle_relay.py)\n\n#### monitor\na simple working example for the Shelly 1 that request monitor information \n```python\nimport ShellyPy\n\ndevice = ShellyPy.Shelly(\"192.168.68.121\")\n\ndeviceMeter = device.meter(0)   #request meter information\nprint(deviceMeter['power'])     #print power information\nprint(deviceMeter['total'])     #print total information\n```\nother examples are available as well [examples/meter.py](examples/meter.py)\n\n## devices\n#### supported\n- Shelly1\n- Shelly1PM\n- Shelly2\n- Shelly2.5\n- Shelly4Pro (untested)\n- Shelly Plug (untested)\n- Shelly PlugS (untested)\n- Shelly Bulb (untested)\n- Shelly H\u0026T (untested)\n- Shelly Smoke (untested)\n- Shelly EM (untested)\n- Shelly flood (untested)\n\n#### unsupported\n- Shelly Sense (documentation is inaccurate, incomplete)\n- Shelly RGBW (documentation is incomplete)\n\n## applicability\nthis wrapper is best used in closed networks where other solutions are either not an option or not desired  \ngive your shelly devices static IP adresses for best results\n\n\n## license\nthis project is licensed under the [MIT License](LICENSE)  \nfeel free to do whatever you want with it\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjan200101%2Fshellypy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjan200101%2Fshellypy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjan200101%2Fshellypy/lists"}